Skip to main content
36 events
when toggle format what by license comment
Sep 2, 2020 at 17:39 comment added llogan @AbhayKoradiya Need to see your command.
Sep 2, 2020 at 15:40 comment added Abhay Koradiya getting error Invalid stream specifier: "[v]" Stream map '"[v]"' matches no streams.
Nov 5, 2019 at 20:12 history edited llogan CC BY-SA 4.0
added trimmed video input w/ audio crossfade example
Jun 14, 2019 at 19:41 history edited llogan CC BY-SA 4.0
added gif and crossfade
Aug 3, 2018 at 19:35 history edited llogan CC BY-SA 4.0
added requested example for arbitrary input sizes
Aug 2, 2018 at 19:37 comment added Shubham AgaRwal Tear of joy ( ͡↑ ͜ʖ ͡↑) thanks man @LordNeckbeard i tried every possible convention nearest was -map [5:a] but you finally updated the answer. Master
Aug 2, 2018 at 18:50 comment added llogan @Killer Added an example that has audio.
Aug 2, 2018 at 18:50 history edited llogan CC BY-SA 4.0
added requested example adding audio
Aug 2, 2018 at 11:58 comment added Shubham AgaRwal @7sega7 add scale=1280:720,setdar=16/9 for each image to scale and maintain aspect ratio
Aug 2, 2018 at 11:52 comment added Shubham AgaRwal @LordNeckbeard Thanks for the great answer once again. we can add setdar=16/9 to prevent aspect ratio related issues. Can you suggest me a solution to map audio stream as well in the same script i am getting weird responses each time i am mapping it via complex filter
Sep 13, 2017 at 16:11 history edited llogan CC BY-SA 3.0
removed ugly ffmpeg crossfade example. will add a better one later.
Apr 26, 2017 at 1:37 comment added llogan @7sega7 I'd have to see your command and console output to see what exactly is going on. You can use a pastebin site and provide the link here.
Apr 24, 2017 at 15:01 comment added 7sega7 @LordNeckbeard How can I do it withouth the error from scale is not the same or SAR is not the same? There is a parameter that permit create a video with images with different scales and SAR?
Mar 16, 2017 at 0:33 comment added Jim Miller Spoke too soon on the ffmpeg crossfade approach. It works for the original 1 sec / 0.5 sec, but when I try to do 2 sec / 0.5, it gives me image times of 2, 3.5, and 3.5 sec for the following 3 image merge: /usr/local/bin/ffmpeg -y -loop 1 -t 2 -i file1.png -loop 1 -t 2 -i file2.png -loop 1 -t 2 -i file3.png -filter_complex "[1:v][0:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(if(gte(T,0.5),1,T/0.5)))'[b1v]; [2:v][1:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(if(gte(T,0.5),1,T/0.5)))'[b2v]; [0:v][b1v][1:v][b2v][2:v]concat=n=5:v=1:a=0,format=yuv420p[v]" -map "[v]" out.mp4 ideas?
Mar 13, 2017 at 20:58 comment added Jim Miller The ffmpeg approach is working nicely for me; thanks! One tip for newcomers to the page; in the concat=n=9 part of the command, the 9 comes from the 5 images in the example + 4 transitions between the images. If you're handling a different number of images, you'll need to adjust that accordingly.
Sep 27, 2016 at 14:10 comment added jrkt @LordNeckbeard I've created a question asking the above about combining the blend and zoompan filters into one command superuser.com/questions/1128563/…. I could really use some help.
Sep 26, 2016 at 17:35 comment added jrkt Thanks for replying. I am trying to include a specific zoompan filter for each image so I can apply that filter at the same time. How would I also include that in the command above that uses the blend filter? Where would I put it? One example of a zoompan I'm trying to include is: zoompan=z='min(zoom+0.0005,1.5)':x='if(gte(zoom,1.5),x,x-1)':y='y'
Sep 23, 2016 at 14:06 comment added jrkt I tried adding that and it still won't work.. I have opened a new question if you wouldn't mind looking at it @LordNeckbeard? superuser.com/questions/1127542/…
Sep 23, 2016 at 2:17 comment added llogan @JonStevens [0:v]setsar=1[sar0];[1:v][sar0]blend...
Sep 22, 2016 at 19:22 comment added jrkt How would you implement the setting of the SAR and DAR within the filter_complex? For example I need to add the additional filter "setsar=sar=1/1,setdar=dar=16/9" to this line in the filter_complex: "[1:v][0:v]blend=all_expr='A*(if(gte(T,0.5),1,T/0.5))+B*(1-(‌​if(gte(T,0.5),1,T/0.‌​5)))'[b1v];". Where would I place this additional filter? I have tried to place it after the "[0:v]" and I get the ffmpeg error, "Too many inputs specified for the "setsar" filter."
Sep 12, 2016 at 21:02 history edited llogan CC BY-SA 3.0
simplify and add melt example
Aug 25, 2016 at 22:59 comment added Web User @LordNeckbeard sorry I am unfamiliar with melt. Can you point me to it?
Aug 23, 2016 at 5:31 comment added llogan @WebUser Transitions are probably going to be easier using melt.
Aug 17, 2016 at 17:37 comment added Web User @LordNeckbeard I need to combine a set of images, video clips and an audio track to create a single video file (preferably ogg, but that is less relevant at this point). In addition, I need to create some transition effects between adjacent images. Is there any way to script this whole task using ffmpeg and/or other command line tools? The goal is to automate the task via a command line interface.
Aug 7, 2016 at 13:12 comment added Nisarg @LordNeckbeard Yea thats what i did :) but it still takes 1 to 2 mintues, can we still reduce this i mean by managing inputs ?
Aug 6, 2016 at 16:06 comment added llogan @Nisarg That does not appear to be the complete output and I'm not sure what command it is from of the two you displayed earlier. Anyway, try adding -preset ultrafast.
Aug 6, 2016 at 8:51 comment added Nisarg @LordNeckbeard Yes Please check this
Aug 6, 2016 at 4:30 comment added Nisarg @LordNeckbeard Yea sure please look at this
Aug 5, 2016 at 12:42 comment added Nisarg @LordNeckbeard Its taking too much time to generate video, can we reduce it ?
May 19, 2016 at 8:27 comment added cincplug @LordNeckbeard, thanks for this answer, I used it for another example. Have I understood well that number following -t in -loop 1 -t 1 -i 001.png defines the duration of individual frames, and that numbers following T/ within filter_complex block defines the transition's duration? And is the frame duration in this example counted including transition's duration or not?
May 18, 2016 at 16:43 comment added llogan @jankigadhiya Make a new question. Include your full ffmpeg command and the complete console/log output.
May 18, 2016 at 6:52 comment added Janki Gadhiya your solution is not working in android it gives error No such filter can you please help??
Jul 30, 2015 at 23:21 history edited llogan CC BY-SA 3.0
add crossfade
Oct 31, 2014 at 12:50 vote accept user384847
Oct 31, 2014 at 12:36 vote accept user384847
Oct 31, 2014 at 12:50
Oct 30, 2014 at 23:09 history answered llogan CC BY-SA 3.0