[Libav-user] Slideshow with pictures has grainy effect

Vijay Kumar Kanta viju.kantah at gmail.com
Fri Jun 20 14:14:17 CEST 2014


On 06/20/2014 02:39 PM, Carl Eugen Hoyos wrote:
> Vijay Kumar Kanta <viju.kantah at ...> writes:
>
>> I have a new problem, when I select 10 pictures for
>> slideshow, the final video only included 9. Even
>> the example I gave removes 1 by default.
> Please provide your command line including the
> complete, uncut console output / test the fps
> filter.
>
>> Also, is the order random by ffmpeg or I sent
>> wrong order because they are random in the video.
> Please elaborate, how can I reproduce this?
>
> Please avoid top-posting here, it is considered
> rude.
>
> Carl Eugen
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
Hi,

Sorry, the caret automatically went top in Thunderbird.

Here's the command:

/usr/local/bin/ffmpeg -r 1/5 -i /path/to/pics/img%03d.jpg -i 
/path/to/music/music.mp3 -c:v libx264 -c:a aac -strict experimental -vf 
fps=25   -pix_fmt yuv420p -shortest /path/to/film/out.mp4

Here's the shell output:

ffmpeg version 2.2.2 Copyright (c) 2000-2014 the FFmpeg developers
   built on May 31 2014 16:33:11 with gcc 4.4.5 (Ubuntu/Linaro 
4.4.4-14ubuntu5)
   configuration: --enable-libass --enable-shared --enable-libx264 
--enable-gpl
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from '/path/to/pics/img%03d.jpg':
   Duration: 00:00:00.20, start: 0.000000, bitrate: N/A
     Stream #0:0: Video: mjpeg, yuvj420p(pc), 480x480 [SAR 96:96 DAR 
1:1], 25 fps, 25 tbr, 25 tbn, 25 tbc
Input #1, mp3, from '/path/to/music/music.mp3':
   Metadata:
     title           : Droopy likes ricochet
     artist          : C418
     album           : life changing moments seem minor in pictures
     track           : 12
   Duration: 00:01:36.34, start: 0.025057, bitrate: 128 kb/s
     Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
[swscaler @ 0x85eafa0] deprecated pixel format used, make sure you did 
set range correctly
[libx264 @ 0x860cc40] using SAR=1/1
[libx264 @ 0x860cc40] using cpu capabilities: MMX2 SSE2 SSE3 Cache64
[libx264 @ 0x860cc40] profile High, level 3.0
[libx264 @ 0x860cc40] 264 - core 142 - H.264/MPEG-4 AVC codec - Copyleft 
2003-2014 - 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=1 
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=25 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 '/path/to/film/out.mp4':
   Metadata:
     encoder         : Lavf55.33.100
     Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), 
yuv420p, 480x480 [SAR 1:1 DAR 1:1], q=-1--1, 12800 tbn, 25 tbc
     Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 
fltp, 128 kb/s
Stream mapping:
   Stream #0:0 -> #0:0 (mjpeg -> libx264)
   Stream #1:0 -> #0:1 (mp3 -> aac)
Press [q] to stop, [?] for help
[output stream 0:0 @ 0x860d4e0] 100 buffers queued in output stream 0:0, 
something may be wrong.
frame=  501 fps=9.9 q=28.0 Lsize=     516kB time=00:00:20.06 bitrate= 
210.5kbits/s
video:184kB audio:314kB subtitle:0 data:0 global headers:0kB muxing 
overhead 3.548612%
[libx264 @ 0x860cc40] frame I:4     Avg QP:15.51  size: 40991
[libx264 @ 0x860cc40] frame P:125   Avg QP:16.58  size:   136
[libx264 @ 0x860cc40] frame B:372   Avg QP:24.08  size:    17
[libx264 @ 0x860cc40] consecutive B-frames:  1.0%  0.0%  0.0% 99.0%
[libx264 @ 0x860cc40] mb I  I16..4:  1.6% 95.9%  2.4%
[libx264 @ 0x860cc40] mb P  I16..4:  0.1%  0.6%  0.1%  P16..4: 0.3%  
0.0%  0.0%  0.0%  0.0%    skip:98.9%
[libx264 @ 0x860cc40] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 0.0%  
0.0%  0.0%  direct: 0.0%  skip:100.0%  L0: 0.0% L1:100.0% BI: 0.0%
[libx264 @ 0x860cc40] 8x8 transform intra:91.7% inter:95.5%
[libx264 @ 0x860cc40] coded y,uvDC,uvAC intra: 90.6% 57.6% 43.8% inter: 
0.0% 0.1% 0.0%
[libx264 @ 0x860cc40] i16 v,h,dc,p: 13% 27% 10% 50%
[libx264 @ 0x860cc40] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 28% 21% 5%  4%  
5%  6%  6%  9%
[libx264 @ 0x860cc40] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 25% 14% 6%  6%  
7%  6%  5%  8%
[libx264 @ 0x860cc40] i8c dc,h,v,p: 55% 25% 15%  6%
[libx264 @ 0x860cc40] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x860cc40] ref P L0: 98.6%  0.1%  1.0%  0.3%
[libx264 @ 0x860cc40] kb/s:74.81

There are 6 pictures in the folder, and only 5 made it to the film.

Regards,
~Vijay.



More information about the Libav-user mailing list