PDA

View Full Version : Writing video information to text file


Zarxrax
1st February 2007, 01:30
I have a few hundred video clips, and I would like to be able to have the resolutions and framerates of each clip written to a file, or really any method that will let me quickly find which files may have odd resolutions or framerates. Going through and running MediaInfo on each clip individually would take far too long, so I need some more of a batch process way of checking this.

foxyshadis
1st February 2007, 11:47
Batch file+mediainfo command line? :p

I vaguely remember a software that did basically just this (batch process videos to get info), but I can't find it or what it was called anywhere.

ilovejedd
1st February 2007, 17:57
Doesn't the MediaInfo GUI already allow you this? I think I recall an option to open a folder of videos and save results to html or text file.

Anyhow, the GUI was too messy for me so I use the command line version.
@echo off
:begin
echo %1
"C:\Program Files\MediaInfo\MediaInfo.exe" %1 >> %1.txt
shift
if %1=="" goto end
goto begin
:end
echo Done.
pause

Zarxrax
1st February 2007, 18:45
Thanks, I didn't realize media info could do that :) The gui IS kinda messy :p

ficofico
25th June 2007, 13:44
I want to create a batch file with this information:

MediaInfo "--Inform=Video; %FrameRate%" ; "originale.mp4" > framerate.txt

If I open the shell and paste into, the script it's correct and mediainfo make a txt file named framerate with the framerate number, but if I paste into a .bat file, mediainfo create a txt file named framerate empty. why? How can I "batch" this mediainfo script?

I've created a job that need a batch file with mediainfo.:thanks:

stegre
26th June 2007, 08:59
just try doubling up on the % signs if your using it in a batch, e.g, use:

MediaInfo "--Inform=Video; %%FrameRate%%" ; "originale.mp4" > framerate.txt

Fluffbutt
3rd January 2008, 14:46
?????????????†††??????????????4†††††††›????????†††††›???????????????????†††?????????††††††›?????????††††††›?????????††††††›???????????†††††›?????????????††?????????????????????(????††††††††›?????????††††???????????†††††›??????????????†††?????????????????????????????????????????????????????????????????????†›????????????›?????????††††††›?????????††††††›????????††††††††›?‰???????†††††††??????????????4???›????????†††††????‰????????†††††›???????†††††††???????????4†††?????????????†††††??????????????††?????????????????†††††††???????????????????††††›??4????????††††††???????4??††††††?????????????††††›????????†††††›'????????????†††????????????†††††›??????????†††††›?????????????††???????????

Is all I get out of the command line media info tool!

<it's a bug in the current version.. thanks for the email, mate!!>