[FFmpeg-user] iTunes aspect ratio

Antoine Baqain tonybaqain at gmail.com
Wed Aug 17 23:10:47 CEST 2011


Hello,

Hope my words find you all well.

I need your help in a matter that I can't find a solution through searching
on fixes for it.

I'm on an iMac 3.4GHz i3, 4GB of RAM, and x86_64 arch, and I'm trying to
convert an AVI (DVDRIP as they call it), apparently a torrent movie :), and
I'm using the following command (includes all info about source and output)
:

ffmpeg -y -i "Baby Einstein Baby Da Vinci 9 mos+.avi" -f mp4 -vcodec mpeg4
-b 40000 -acodec libfaac -ab 192k  *-aspect 16:9* output_file.mov
FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers
  built on May 20 2011 15:00:07 with gcc 4.2.1 (Apple Inc. build 5646)
  configuration: --prefix=/opt/local --enable-gpl --enable-postproc
--enable-swscale --enable-avfilter --enable-avfilter-lavf
--enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac
--enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid
--enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree
--mandir=/opt/local/share/man --enable-shared --enable-pthreads
--disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     1.11. 0 /  1.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0

Seems stream 0 codec frame rate differs from container frame rate: 29.98
(65535/2186) -> 29.97 (30000/1001)
Input #0, avi, from 'Baby Einstein Baby Da Vinci 9 mos+.avi':
  Metadata:
    ISFT            : VirtualDubMod 1.5.4.1 (build 2178/release)
  Duration: 00:32:36.88, start: 0.000000, bitrate: 2998 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x544 [PAR 1:1 DAR 45:34], 29.97
tbr, 29.97 tbn, 29.98 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 128 kb/s
Output #0, mp4, to 'output_file.mov':
  Metadata:
    encoder         : Lavf52.64.2
    Stream #0.0: Video: mpeg4, yuv420p, 720x544 [PAR 227:169 DAR
10215:5746], q=2-31, 40 kb/s, 30k tbn, 29.97 tbc
    Stream #0.1: Audio: libfaac, 48000 Hz, 2 channels, s16, 192 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame= 3467 fps=263 q=24.8 Lsize=    8835kB time=121.89 bitrate=
593.8kbits/s
video:6289kB audio:2471kB global headers:0kB muxing overhead 0.848983%

I bolded the aspect that I needed since from source it is 4:3, and I have a
LED screen with 16:9 with apple TV 2.

My problem is that, opening the output file through VLC, it opens with 16:9
aspect ratio, but in iTunes (which reflects Apple TV 2) it opens with 4:3
aspect ratio, please tell me if I'm missing any other option for ffmpeg and
recognized by iTunes / Apple TV 2 that would convert the video with 16:9
aspect ratio.

Regards, Tony.

P.S: please don't tell me to use any application such as hand break or
something, they all use ffmpeg and they output the same as my ffmpeg CMD,
but much slower (UI complicated also when you get into advanced options).


More information about the ffmpeg-user mailing list