[FFmpeg-user] Encode single pictures to movies

Tom Mackey tfmackey at gmail.com
Fri Feb 1 01:14:07 CET 2013


Lou,

Thanks for your prompt reply.  * *As all the images were a little different
I used
mogrify -resize 1920x1080  as I wanted to show the image on HD tv.
The size of the images after this were around 1600 x1080 as they were in 4
x3 format

The output of ls -l is

ls -l img*.jpg
-rw-rw-r-- 1 name name 194172 2013-01-31 22:30 img1.jpg
-rw-rw-r-- 1 name name 238917 2013-01-31 20:56 img2.jpg
-rw-rw-r-- 1 name name 222021 2013-01-31 20:56 img3.jpg
-rw-rw-r-- 1 name name 178924 2013-01-31 20:56 img4.jpg
-rw-rw-r-- 1 name name 256311 2013-01-31 20:56 img5.jpg
-rw-rw-r-- 1 name name 468532 2013-01-31 20:56 img6.jpg
I can't see any difference that causes it not to include 4,5 and 6



The output from the console is

 ffmpeg -f image2 -r 1/5 -i img%d.jpg out.mp4
ffmpeg version git-2013-01-31-b999774 Copyright (c) 2000-2013 the FFmpeg
developers
  built on Jan 31 2013 22:02:45 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3
--enable-x11grab
  libavutil      52. 17.100 / 52. 17.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.100 /  3. 35.100
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[image2 @ 0xa727360] max_analyze_duration 5000000 reached at 5000000
microseconds
Input #0, image2, from 'img%d.jpg':
  Duration: 00:00:30.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p, 1608x1080 [SAR 1:1 DAR 67:45],
0.20 fps, 1 tbr, 0.20 tbn, 0.20 tbc
[libx264 @ 0xa7288a0] using SAR=1/1
[libx264 @ 0xa7288a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0xa7288a0] profile High, level 4.0
[libx264 @ 0xa7288a0] 264 - core 129 r2245 bc13772 - H.264/MPEG-4 AVC codec
- Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1
ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00
mixed_ref=1 me_range=16 chroma_me=1 trellis=1 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=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=1 scenecut=40
intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out.mp4':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1608x1080
[SAR 1:1 DAR 67:45], q=-1--1, 16384 tbn, 0.20 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> libx264)
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:1608x1080 fmt:yuvj420p to
size:1686x1080 fmt:yuvj420p
Input stream #0:0 frame changed from size:1686x1080 fmt:yuvj420p to
size:1601x1080 fmt:yuvj420p
Input stream #0:0 frame changed from size:1601x1080 fmt:yuvj420p to
size:1596x1080 fmt:yuvj420p
Input stream #0:0 frame changed from size:1596x1080 fmt:yuvj420p to
size:1536x1080 fmt:yuvj420p
Input stream #0:0 frame changed from size:1536x1080 fmt:yuvj420p to
size:1548x1080 fmt:yuvj420p
frame=    3 fps=3.0 q=17.0 Lsize=     780kB time=00:00:05.00
bitrate=1278.1kbits/s dup=0 drop=3
video:779kB audio:0kB subtitle:0 global headers:0kB muxing overhead
0.104386%
[libx264 @ 0xa7288a0] frame I:1     Avg QP:18.91  size:286464
[libx264 @ 0xa7288a0] frame P:2     Avg QP:15.60  size:255402
[libx264 @ 0xa7288a0] mb I  I16..4:  9.4% 82.9%  7.7%
[libx264 @ 0xa7288a0] mb P  I16..4: 31.2% 38.9% 29.8%  P16..4:  0.0%  0.0%
 0.0%  0.0%  0.0%    skip: 0.0%
[libx264 @ 0xa7288a0] 8x8 transform intra:53.6% inter:23.1%
[libx264 @ 0xa7288a0] coded y,uvDC,uvAC intra: 65.5% 78.1% 59.2% inter:
69.6% 92.9% 85.7%
[libx264 @ 0xa7288a0] i16 v,h,dc,p: 76% 17%  5%  1%
[libx264 @ 0xa7288a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 25%  5%  5%
 7%  6%  6%  8%
[libx264 @ 0xa7288a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 26% 11%  5%  5%
 6%  6%  5%  6%
[libx264 @ 0xa7288a0] i8c dc,h,v,p: 37% 27% 28%  7%
[libx264 @ 0xa7288a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0xa7288a0] ref P L0: 51.9%  3.8% 44.2%
[libx264 @ 0xa7288a0] kb/s:425.21


Thanks


More information about the ffmpeg-user mailing list