[mythtv-users] Identifying video parameters

Robert McNamara robert.mcnamara at gmail.com
Tue Apr 28 15:33:56 UTC 2009


On Tue, Apr 28, 2009 at 8:31 AM,  <bob_pub_mailbox-mytv at yahoo.com> wrote:
>
> Is there an easy way to identify video and audio parameters on a recording?
>
> I am using
> mplayer -identify <filename>
> which prints parameters on the screen, but then it tries to play the video.
>
> Is there an option or other program to just print the params?
>
> Here is the sample output that I am getting from one of my recordings (trimmed of a bunch of extra lines...)
> VIDEO MPEG2(pid=65) AUDIO A52(pid=68) NO SUBS (yet)!  PROGRAM N. 1
> ID_VIDEO_ID=65
> ID_AUDIO_ID=68
> VIDEO:  MPEG2  704x480  (aspect 2)  29.970 fps  15000.0 kbps (1875.0 kbyte/s)
> ID_FILENAME=American Experience - 2009-04-13, 9-00 PM - We Shall Remain-After the Mayflower.mpg
> ID_DEMUXER=mpegts
> ID_VIDEO_FORMAT=0x10000002
> ID_VIDEO_BITRATE=15000000
> ID_VIDEO_WIDTH=704
> ID_VIDEO_HEIGHT=480
> ID_VIDEO_FPS=29.970
> ID_VIDEO_ASPECT=0.0000
> ID_AUDIO_FORMAT=8192
> ID_AUDIO_BITRATE=0
> ID_AUDIO_RATE=0
> ID_AUDIO_NCH=0
> ID_LENGTH=974.28
> ID_SEEKABLE=1
>
> Thanks,
>
> Bob
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>

ffmpeg -i filename

or

mplayer -identify -frames 0 -vo null filename

I prefer the ffmpeg approach, myself.

Robert


More information about the mythtv-users mailing list