Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (57)

Sur d’autres sites (10654)

  • Repeat/loop the video till audio file using ffmpeg

    18 mars 2014, par M. Usman Afzal

    I am using this command to generate the video from silent video and audio but the problem is video is 3 sec and audio is 20 sec and final video generating is 20 sec but video is for 3 sec and the last frame of that video is repeat till end.

    ffmpeg -i v.mp4 -i a.m4a -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 output.mp4

    I just want to repeat the whole video

  • Applying the same filter many times before output [duplicate]

    19 août 2019, par Fabián

    This question already has an answer here :

    In my video there’s an object that has shades of yellow (more orange-like) and has a solid yellow as background.
    I need to output all frames into a png sequence, using a color key filter to replace the yellow from the background :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.125:0[ckout]" -map "[ckout]" colorkey-%d.png

    This removes all the yellow background. However, it leaves some pints of yellow behind, and some items are yellow-themed, so blending isn’t an option for this scenario.

    In the end I need to get rid of 4 specific yellow-colors from the frames : 0xfff31b, 0xfae56b, 0xfaec46 and 0xeee2a0. My idea is to run the same filter for every color.

    So first I tried this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout1];[0:v]colorkey=0xfae56b:0.4:0[ckout2];[0:v]colorkey=0xfaec46:0.4:0[ckout3];[0:v]colorkey=0xeee2a0:0.4:0[ckout4]" -map "[ckout4]" colorkeyrefined-%d.png

    Then this :

    ffmpeg -ss 4 -i original.mp4 -t 2 -filter_complex "[0:v]colorkey=0xfff31b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfae56b:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xfaec46:0.4:0[ckout]" -filter_complex "[0:v]colorkey=0xeee2a0:0.4:0[ckout]" -map "[ckout]" colorkeyrefined-%d.png

    But both display the same error :

    Filter colorkey has an unconnected output.

    Is there a way to apply the colorkey 4 times (with the mentioned values) in one go ?

  • ffmpeg zoompan, zoom to positions X Y

    15 juillet 2021, par MIQUEL CASTRO NAVARRO

    Hi im using ffmpeg to zoom an image to specific point x, y. I want the points x,y to be the final position of the zoom the comand I have right now is :

    


    ffmpeg -y -i zoomInimg.jpg -vf "scale=6198:2350:-1,zoompan=z='min(max(zoom,pzoom)+0.06,10)':d=2400:x=4000 :y=1000 :s=6198x2350" -t 5 zoomIn.mp4


    


    so i want the image to end in points x=4000:y=1000
Is there a formula to do that ?