[FFmpeg-user] ffmpeg still to video question part 2

ffmpeg at jrbtechnical.com ffmpeg at jrbtechnical.com
Mon Aug 6 04:56:11 CEST 2012


Thanks to Phil and Carl for your help last week, I didn't realize you
could specify both input and output frame rates.

This is what I am currently using:

ffmpeg -r 5 -f image2 -i ENX%2d.jpg -vcodec libx264 -vprofile high -preset
veryslow -r 30000/1001 -b 1000k ENXtest13.mp4

ffmpeg version git-2012-08-02-96cb143 Copyright (c) 2000-2012 the FFmpeg
developers
  built on Aug  1 2012 23:30:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264
--enable-nonfree --enable-version3
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 47.100 / 54. 47.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'ENX%2d.jpg':
  Duration: 00:00:08.20, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 978x550 [SAR 96:96 DAR 489:275],
5 fps, 5 tbr, 5 tbn, 5 tbc
Please use -b:a or -b:v, -b is ambiguous
[libx264 @ 0x19613e0] using SAR=1/1
[libx264 @ 0x19613e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x19613e0] profile High, level 4.2
[libx264 @ 0x19613e0] 264 - core 125 r2 d9d2288 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1
ref=16 deblock=1:0:0 analyse=0x3:0x133 me=umh subme=10 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2
b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc_lookahead=60 rc=abr mbtree=1 bitrate=1000
ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'ENXtest13.mp4':
  Metadata:
    encoder         : Lavf54.22.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 978x550
[SAR 1:1 DAR 489:275], q=-1--1, 1000 kb/s, 30k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
frame=  240 fps= 14 q=32766.0 Lsize=     560kB time=00:00:07.94 bitrate=
578.1kbits/s dup=199 drop=0
video:558kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.505258%
[libx264 @ 0x19613e0] frame I:1     Avg QP:29.53  size:100339
[libx264 @ 0x19613e0] frame P:35    Avg QP:28.10  size:  8509
[libx264 @ 0x19613e0] frame B:204   Avg QP:31.74  size:   844
[libx264 @ 0x19613e0] consecutive B-frames:  0.4%  0.0%  0.0% 16.7%  2.1% 
0.0% 11.7% 46.7% 22.5%
[libx264 @ 0x19613e0] mb I  I16..4: 41.9% 17.6% 40.4%
[libx264 @ 0x19613e0] mb P  I16..4:  0.1%  0.2%  0.2%  P16..4: 12.8%  1.0%
 1.8%  0.1%  0.1%    skip:83.7%
[libx264 @ 0x19613e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  4.2%  0.2%
 0.1%  direct: 0.5%  skip:95.0%  L0:30.7% L1:68.8% BI: 0.5%
[libx264 @ 0x19613e0] final ratefactor: 22.43
[libx264 @ 0x19613e0] 8x8 transform intra:19.9% inter:33.8%
[libx264 @ 0x19613e0] direct mvs  spatial:98.5% temporal:1.5%
[libx264 @ 0x19613e0] coded y,uvDC,uvAC intra: 55.5% 52.3% 45.3% inter:
1.8% 2.2% 2.0%
[libx264 @ 0x19613e0] i16 v,h,dc,p: 87% 11%  1%  0%
[libx264 @ 0x19613e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6%  9% 18% 10%  9% 
8% 11% 11% 17%
[libx264 @ 0x19613e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 13% 10%  9%  8% 
8% 10% 11% 18%
[libx264 @ 0x19613e0] i8c dc,h,v,p: 63% 20% 11%  7%
[libx264 @ 0x19613e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x19613e0] ref P L0: 38.9%  2.5%  7.0%  1.7%  1.5%  4.7%  1.3% 
0.6%  0.2% 10.4%  1.3% 24.7%  2.7%  1.0%  1.3%  0.2%
[libx264 @ 0x19613e0] ref B L0: 61.5%  3.3%  2.2%  1.3%  1.6%  0.8%  1.0% 
0.4%  0.5%  0.5%  0.4%  0.3%  2.0% 24.1%  0.2%
[libx264 @ 0x19613e0] ref B L1: 79.6% 20.4%
[libx264 @ 0x19613e0] kb/s:569.68

And the output is ok, but the filesize is a bit large.  If I try and lower
the bitrate, then things in the images start to fall apart real fast.

The images all have the same background (topographic map for weather
radar), and for the most part only the radar image changes from each still
to still. It's a set of 41 stills that output to about a 8 second video,
560KB for the last test file.

Is there anything else that I could possibly do that might keep the same
quality I have now, but bring the file size down?

I don't really use ffmpeg extensively, so I am not familiar with all the
bells and whistles.

Thanks again for your time and help!

John










More information about the ffmpeg-user mailing list