[MEncoder-users] file information

The Wanderer inverseparadox at comcast.net
Wed Mar 28 23:51:53 CEST 2007


Tobias Brockamp wrote:

> 
> Am 28.03.2007 um 12:58 schrieb Nico Sabbi:
> 
>> Tobias Brockamp wrote:
>> 
>>> Hi,
>>> 
>>> how can i can get information from a videofile with mencoder. I
>>>  need  infos about the length from the video- and audiostream.
>> 
>> -identify, but it's not always accurate
> 
> Hmm, -identtify only works with mplayer not mencoder, and the infos
> does not contain the info i need. When encoding a file with
> mencoder, the last two lines shows up infos about the video- and
> audiostream (see below marked red).

It is not marked in red - at least not for people using sane (i.e.,
non-HTML-etc.) mail readers, and possibly for everyone (if the mailing
list strips out HTML and/or non-text markup, which I think it does). On
my system, it is displayed in the same way as all other E-mail text
except URLs: black on gray.

I've tripped across this assumption recently elsewhere as well (in that
context, the sender was using Outlook). I'm starting to find it
irritating...

 > how can i get this info without making an  encode?

Assuming that you're talking about these lines:

> Video stream:   74.545 kbit/s  (9318 B/s)  size: 44727 bytes  4.800  secs  120 frames
> 
> Audio stream:  132.870 kbit/s  (16608 B/s)  size: 75492 bytes  4.545  secs

the only way I know of is to run 'mencoder -oac copy -ovc copy -o
/dev/null'. This will take a not insignificant amount of time, but much
less than really doing anything with the file, and should produce
exactly the same output as if you had transcoded the file in full.

If you're not willing to expend that much time and that much CPU load,
then you're very likely SOL. Unless I'm very much mistaken, there is no
general way to obtain the information you're looking for without
processing the file.

-- 
       The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.



More information about the MEncoder-users mailing list