I have a video (lots of videos, actually) that does not have square pixels.
if I "ffmpeg -i vid" it shows:
Code:
Duration: 00:00:06.0, start: 0.000000, bitrate: 9594 kb/s
Stream #0.0(eng): Video: mpeg4, yuv420p, 640x486, 24.00 fps(r)
Stream #0.1(eng): Data: rtp / 0x20707472
if I "tcprobe -i vid" it shows:
Code:
import frame size: -g 720x480 [720x576] (*)
aspect ratio: 4:3 (*)
frame rate: -f 29.970 [25.000] frc=4 (*)
if I "mplayer -identify vid" it shows:
Code:
VIDEO: [mp4v] 640x486 24bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
ID_FILENAME=/path/vid.mp4
ID_DEMUXER=mov
ID_VIDEO_FORMAT=mp4v
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=486
ID_VIDEO_FPS=24.000
ID_VIDEO_ASPECT=0.0000
ID_LENGTH=6.04
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
ID_VIDEO_CODEC=ffodivx
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 486 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.32:1 - prescaling to correct movie aspect.
ID_VIDEO_ASPECT=1.3169
VO: [xv] 640x486 => 640x486 Planar YV12
V: 1.2 29/ 29 8% 1% 0.0% 0 0
... but if I play the file with mplayer & screen grab, I see the window (not including title bar or border) is about 767x486.
How do I find the actual size of what should be played back without doing a screen grab?