get data video files with script?
get data video files with script?
hi
get data video files with script?
example
get(video_bitrate, $file)
get(video_width, $file)
get(video_height, $file)
get(video_duration, $file)
get(video_codec, $file)
etc...
possible???
get data video files with script?
example
get(video_bitrate, $file)
get(video_width, $file)
get(video_height, $file)
get(video_duration, $file)
get(video_codec, $file)
etc...
possible???
newbie or not...........
Re: get data video files with script?
Yes, you can paste the following into the XY address bar for more information if you are interested:
Here are a couple quick examples:
you can also do it via 3rd party Mediainfo command line app, do a search of the forum it is explained many times how to use that.
Code: Select all
::help "idh_scripting_comref.htm#idh_sc_property";
Code: Select all
text property("System.Video.FrameWidth");
text property("System.Video.FrameHeight");
Re: get data video files with script?
text <prop 'System.Video.FrameWidth'>x<prop 'System.Video.FrameHeight'>bitrate:<prop 'System.Video.TotalBitrate'>
i found only width,size,bitrate i cant find duration and codec.
thanks for support.
i found only width,size,bitrate i cant find duration and codec.
thanks for support.
newbie or not...........
Re: get data video files with script?
Cheats way of duration: text property("*Length"); or on Windows 10 text property("#27");
you may need to go the Mediainfo route for Codec identification.
you may need to go the Mediainfo route for Codec identification.
Re: get data video files with script?
MediaInfo can be used something like this:
Code: Select all
text runret("Mediainfo.exe --inform=Video;%CodecID% ""<curitem>""");
Re: get data video files with script?
I would probably recommend using Mediainfo for bitrate too, it can be done something like this:
Code: Select all
text runret("Mediainfo.exe --Inform=General;%OverallBitRate/String% ""<curitem>""");
Re: get data video files with script?
""
"video format" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Format%");
"video bitrate" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%BitRate%");
"video duration" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Duration%");
"video width" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Width%");
"video height" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Height%");
"**video seq size" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%StreamSize%");
that values great. thanks for help.
"video format" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Format%");
"video bitrate" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%BitRate%");
"video duration" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Duration%");
"video width" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Width%");
"video height" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%Height%");
"**video seq size" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;%StreamSize%");
that values great. thanks for help.
newbie or not...........
Re: get data video files with script?
"****" text runret("D:\MediaInfo3\Mediainfo.exe ""<curitem>"" --inform=Video;'%StreamSize%':'%Width%':'%Height%':'%BitRate%':'%Duration%'");
newbie or not...........
Re: get data video files with script?
You might find the output of these variables nicer:
%StreamSize/String%
%BitRate/String%
%Duration/String%
or outputting on separate lines could be done something like this:
%StreamSize/String%
%BitRate/String%
%Duration/String%
or outputting on separate lines could be done something like this:
Code: Select all
text replace(runret("d:\MediaInfo3\Mediainfo.exe --Inform=Video;%StreamSize/String%:%Width/String%:%Height/String%:%BitRate/String%:%Duration/String% ""<curitem>"""), ":", <crlf>);
possible array feature script?
hi dears
dear xyplorer possible array etc:
4600:857:yes:75:disable:4563
how can string to array
arrayCustom(1);text arrayCustom(4);
possible array feature script?
dear xyplorer possible array etc:
4600:857:yes:75:disable:4563
how can string to array
arrayCustom(1);text arrayCustom(4);
possible array feature script?
newbie or not...........
Re: possible array feature script?
I think what you want to do it just access each item, which can be done like this for example:
Code: Select all
$string = "4600:857:yes:75:disable:4563";
echo gettoken($string, 1, ":");
echo gettoken($string, 2, ":");