[FFmpeg-trac] #2973(FFprobe:new): 'ffmpeg -i' print SAR instead of PAR
FFmpeg
trac at avcodec.org
Thu Sep 19 16:55:13 CEST 2013
#2973: 'ffmpeg -i' print SAR instead of PAR
-------------------------------------+-------------------------------------
Reporter: jofsey | Type: defect
Status: new | Priority: normal
Component: FFprobe | Version: 2.0.1
Keywords: aspect- | Blocked By:
ratio, sar, par | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
If my knowledge is correct, SAR (Storage Aspect Ratio) is the ratio of
pixel dimensions. For example, a 640 × 480 video has a SAR of 640/480 =
4:3.
Whereas PAR (Pixel Aspect Ratio) is ratio of pixel height and width, and
most of modern videos have square PAR (1:1).
But when I tried to check it with `ffmpeg -i` or ffprobe, I got square SAR
instead of square PAR for all test videos.
How to reproduce:
{{{
% ffprobe 3867805782.mp4
ffprobe version 2.0.1 Copyright (c) 2007-2013 the FFmpeg developers
built on Aug 11 2013 14:52:28 with gcc 4.8.1 (GCC) 20130725 (prerelease)
configuration: --prefix=/usr --disable-debug --disable-static --enable-
avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass
--enable-libbluray --enable-libfreetype --enable-libgsm --enable-
libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-
libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse
--enable-librtmp --enable-libschroedinger --enable-libspeex --enable-
libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-
libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-
cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-
version3 --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.100 / 55. 12.100
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 79.101 / 3. 79.101
libavresample 1. 1. 0 / 1. 1. 0
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '3867805782.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.6.100
Duration: 00:00:07.97, start: 0.000000, bitrate: 428 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 309 kb/s, 29.97 fps,
29.97 tbr, 2997 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 115 kb/s
Metadata:
handler_name : SoundHandler
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2973>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list