i want to know how to create 3 second picture pause at 30 seconds intervals of a video with ffmpeg.
the picture is one that i will add of course not from the video.
+ Reply to Thread
Results 1 to 3 of 3
I would use overlay to combine video with picture and modify alpha channel coefficient in 30 seconds intervals, side to this perhaps modifying fps (PTS) on same principle - AFAIR there is new ffmpeg filter that may help to achieve this https://ffmpeg.org/ffmpeg-filters.html#sendcmd_002c-asendcmd or https://ffmpeg.org/ffmpeg-filters.html#toc-zmq_002c-azmq
Last edited by pandy; 20th May 2016 at 03:54.
Pandy has a good suggestion and overlay may work better than just combining because ffmpeg doesn't like to add audio/no audio sequences together. It is possible to create video with your image that has blank audio by first creating blank audio:
ffmpeg -f lavfi -i "aevalsrc=0|0:d=5" output.wav
"C:\pathtoFFMpeg\ffmpeg" -loop 1 -f image2 -i "C:\PathToImage\img00003.jpg" -i "C:\PathToAudio\output.wav" -map 0:0 -map 1:0 -shortest -acodec aac -vcodec libx264 -r 30 -t 4 "C:\PathToNewImageWAudio\img00005_IMG2VID_wAudio3.FLV"
a=directshowsource("C:\Users\Bud\Desktop\img00001_IMG2VID_wAudio2.flv",pixel_type="rgb24").Spline36Resize(720,480).trim(1,120).ChangeFPS(30) b=directshowsource("C:\Users\Bud\Desktop\img00003_IMG2VID_wAudio2.flv",pixel_type="rgb24").Spline36Resize(720,480).trim(1,120).ChangeFPS(30) c=directshowsource("C:\Users\Bud\Desktop\clip.mp4",pixel_type="rgb24").lanczosResize(720,480).trim(1,120).ChangeFPS(30) d=directshowsource("C:\Users\Bud\Desktop\img00005_IMG2VID_wAudio2.flv",pixel_type="rgb24").Spline36Resize(720,480).trim(1,120).ChangeFPS(30) aa = a ba = b ca = c da = d vid=aa+ba+ca+da newvid = vid.ChangeFPS(30)newvid
(All the above created by Media Utility)