[FFmpeg-devel] [PATCH][RFC] variable frame sizes

Eric Buehl eric.buehl
Thu May 21 17:28:19 CEST 2009


This seems to work as well.  Did you have a sample for which this didn't
work?

$ ./ffmpeg -i d.mp4 -s 100x100 e.mp4 -s 150x150 -newvideo
FFmpeg version SVN-r18886, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-pthreads --enable-libfaac --enable-libx264
--enable-decoders --enable-gpl --enable-libfaad --enable-nonfree
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.29. 0 / 52.29. 0
  libavformat   52.33. 0 / 52.33. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on May 20 2009 12:27:25, gcc: 4.3.2 20081105 (Red Hat 4.3.2-7)

Seems stream 0 codec frame rate differs from container frame rate: 2997.00
(2997/1) -> 23.98 (24000/1001)

Seems stream 1 codec frame rate differs from container frame rate: 2997.00
(2997/1) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'd.mp4':
  Duration: 00:00:12.13, start: 0.000000, bitrate: 541 kb/s
    Stream #0.0(eng): Video: mpeg4, yuv420p, 200x200 [PAR 16:9 DAR 16:9],
23.98 tbr, 23.98 tbn, 2997 tbc
    Stream #0.1(eng): Video: mpeg4, yuv420p, 400x400 [PAR 16:9 DAR 16:9],
23.98 tbr, 23.98 tbn, 2997 tbc
Output #0, mp4, to 'e.mp4':
    Stream #0.0(eng): Video: mpeg4, yuv420p, 100x100 [PAR 16:9 DAR 16:9],
q=2-31, 200 kb/s, 24k tbn, 23.98 tbc
    Stream #0.1(eng): Video: mpeg4, yuv420p, 150x150 [PAR 16:9 DAR 16:9],
q=2-31, 200 kb/s, 24k tbn, 23.98 tbc
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  291 fps=  0 q=2.0 Lq=2.0 size=     462kB time=12.14 bitrate=
311.7kbits/s
video:456kB audio:0kB global headers:0kB muxing overhead 1.312181%



More information about the ffmpeg-devel mailing list