View Full Version : mencoder - how to get info about the video file
MaxSt
16th December 2006, 01:10
I'm thinking about writing a small specialized GUI for mencoder, and I would need to get some information (resolution, aspect ratio, etc) about the source file before the convertion.
Is there a way mencoder could simply read the source file and print the properties into stdout?
Thank you.
killerhex
16th December 2006, 03:48
you can add mediainfo
MaxSt
16th December 2006, 07:41
I don't think that's a good idea.
I would prefer using mencoder.
DarkZell666
16th December 2006, 15:36
Simply set mencoder to encode the first 2 or 3 frames ?
There are switches to set mencoder so start at frame <f> and encode <n> frames IIRC.
Edit: just found the "-frames n" switch, it encodes the first n frames and quits.
MaxSt
17th December 2006, 22:40
That gave me the idea...
Apparently if I skip "-oac" and "-ovc" options, mencoder prints the source video info, and then exits with error message!
That is enough:
mencoder.exe source.avi -o zzz.avi
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.