[FFmpeg-user] aspect ratio is changed with codec copy and sameq

vrparekh at gmail.com vrparekh at gmail.com
Tue Mar 20 17:59:23 CET 2012


Thanks Carl,

one weird thing is when i see details in another video tool, it shows me
sar=4:3
dar=4:3
of original video

but when i use command ffpeg -i sourcefile, it shows me
sar=300:400
dar=1:1

below is command line output of codec copy

ffmpeg.exe -ss 5 -t 150 -i "d:\source.mp4" -acodec
 copy -vcodec copy "d:\output.mp4"
ffmpeg version N-38938-ge01f478 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Mar 19 2012 23:18:25 with gcc 4.6.2
  configuration: --disable-static --enable-shared --enable-gpl
--enable-version3
 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth
--enable-bzli
b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable
-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-l
ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-li
bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-l
ibx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      51. 42.100 / 51. 42.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.101 /  2. 65.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd:\source.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2012-01-26 21:00:03
  Duration: 00:05:00.32, start: 0.000000, bitrate: 539 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p,
400x300 [
SAR 300:400 DAR 1:1], 469 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 60 tbc
    Metadata:
      creation_time   : 2012-01-26 21:00:03
      handler_name    :
    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 32000 Hz, stereo, s16,
64
kb/s
    Metadata:
      creation_time   : 2012-01-26 21:00:03
      handler_name    :
strptime() unavailable on this system, cannot convert the date string.
Output #0, mp4, to 'd:\output.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2012-01-26 21:00:03
    encoder         : Lavf54.2.100
    Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p, 400x300
[SAR 3
00:400 DAR 1:1], q=2-31, 469 kb/s, 29.97 fps, 90k tbn, 90k tbc
    Metadata:
      creation_time   : 2012-01-26 21:00:03
      handler_name    :
    Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 32000 Hz, stereo, 64
kb/
s
    Metadata:
      creation_time   : 2012-01-26 21:00:03
      handler_name    :
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 9001 fps=0.0 q=-1.0 Lsize=   19815kB time=00:05:00.29 bitrate=
540.6kbits
/s
video:17212kB audio:2350kB global headers:0kB muxing overhead 1.294060%


--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/aspect-ratio-is-changed-with-codec-copy-and-sameq-tp4489075p4489550.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.


More information about the ffmpeg-user mailing list