[Dclug] [Ma-linux] How to put a video into a web page -- Summary

Theodore Ruegsegger gruntly at gmail.com
Wed Jul 15 10:25:36 EDT 2009


Nikolas responded to my quest for a tool that can determine a video
file's geometry thus:

> I recommend:
> mplayer -vo null -ao null -identify -frames 0 some_file

That worked, except that it crunched through the entire video, which
took a long time. But it turns out mplayer (I installed mplayer-nogui)
has a -really-quiet option. Together with some filtering I get a
command that works in less than a second:

mplayer -really-quiet -vo null -ao null -identify -frames 0 some-file
2>/dev/null \
    | grep 'ID_VIDEO' | grep 'WIDTH\|HEIGHT'
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480

Thanks very much!
Ted



More information about the Dclug mailing list