VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. hello,
    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.
    thank you.
    Quote Quote  
  2. 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 02:54.
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    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:

    Code:
    ffmpeg -f lavfi -i "aevalsrc=0|0:d=5" output.wav
    Then add it to image:
    Code:
    "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"
    Then use AVISynth to create the insertions:
    Code:
    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
    The problem is if its a long video, every 30 seconds is going to make your avisynth script pretty long. The above script created the following video:

    https://files.secureserver.net/0szTTXnDsk0evj


    (All the above created by Media Utility)
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!