I've compiled ffmpeg for my iphone, but the files it produces are
different on the mac than on the iphone, even though I compile both
from the same sources. Example:

ffmpeg in.mov -y out.mov

results on the mac:

FFmpeg version SVN-r21185, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jan 13 2010 15:01:06 with gcc 4.0.1 (Apple Inc. build 5493)
  configuration:
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.47. 0 / 52.47. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0

Seems stream 1 codec frame rate differs from container frame rate:
1200.00 (1200/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'IMG_3012.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    year            : 2010-01-04T16:20:07+0100
    year-eng        : 2010-01-04T16:20:07+0100
  Duration: 00:00:05.76, start: 0.000000, bitrate: 820 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, mono, s16, 63 kb/s
    Stream #0.1(und): Video: h264, yuv420p, 480x360, 752 kb/s, 30 fps,
30 tbr, 600 tbn, 1200 tbc
Output #0, mov, to 'out.MOV':
    Stream #0.0(und): Video: mpeg4, yuv420p, 480x360, q=2-31, 200
kb/s, 30 tbn, 30 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame=  173 fps=169 q=14.0 Lsize=     271kB time=5.71 bitrate= 388.7kbits/s
video:220kB audio:46kB global headers:0kB muxing overhead 1.711222%

On the iphone:

FFmpeg version SVN-r21185, Copyright (c) 2000-2010 Fabrice Bellard, et al.
  built on Jan 13 2010 15:07:00 with gcc 4.2.1 (Apple Inc.  build 5575) (dot 11)
  configuration: --enable-small --disable-zlib --enable-static
--disable-shared --prefix=../arm/release --enable-cross-compile
--arch=arm --target-os=darwin
--cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc
--as='gas-preprocessor.pl
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc'
--sysinclude=/usr/local/include
--sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk
--cpu=arm1176jzf-s --extra-cflags='-arch armv6' --extra-ldflags='-arch
armv6 -L
  libavutil     50. 7. 0 / 50. 7. 0
  libavcodec    52.47. 0 / 52.47. 0
  libavformat   52.46. 0 / 52.46. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 8. 0 /  0. 8. 0

Seems stream 1 codec frame rate differs from container frame rate:
1200.00 (1200/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/var/mobile/Applications/B7141EC5-7DFB-401D-8903-B23EF877CDAE/demoa.app/IMG_3012.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    year            : 2010-01-04T16:20:07+0100
    year-eng        : 2010-01-04T16:20:07+0100
  Duration: 00:00:05.76, start: 0.000000, bitrate: 820 kb/s
    Stream #0.0(und): Audio: aac, 44100 Hz, mono, s16, 63 kb/s
    Stream #0.1(und): Video: h264, yuv420p, 480x360, 752 kb/s, 30 fps,
30 tbr, 600 tbn, 1200 tbc
Output #0, mov, to
'/var/mobile/Applications/B7141EC5-7DFB-401D-8903-B23EF877CDAE/Documents/out.mov':
    Stream #0.0(und): Video: mpeg4, yuv420p, 480x360, q=2-31, 200
kb/s, 30 tbn, 30 tbc
    Stream #0.1(und): Audio: aac, 44100 Hz, mono, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame=  173 fps=  3 q=24.8 Lsize=     567kB time=5.71 bitrate= 812.8kbits/s
video:516kB audio:46kB global headers:0kB muxing overhead 0.797724%

As you can see the iPhone video is bigger than the mac video; it is
also of less quality. Hoe can I make ffmpeg behave the same on both
systems?
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to