[MPlayer-users] Get dimensions and duration of raw h.264 video

Marlon Smith marlon.smith10 at gmail.com
Tue Feb 7 22:28:52 CET 2012


Hi everyone,

I'd like to use mplayer to find the dimensions (width + height) and
duration (either in # of frames or seconds) or a raw h.264 video.

I encoded the video using mencoder.  There is no container, just raw
h.264.

I've tried using doing this:

mplayer -vo null -ao null -frames 0 -identify

and looking at the ID_VIDEO_WIDTH and ID_VIDEO_HEIGHT fields, but they
report the wrong dimensions!

Does anyone have any ideas?

Thanks!

Marlon


More information about the MPlayer-users mailing list