Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (65)

Sur d’autres sites (13936)

  • FFMPEG : Cut Video AND Include Ending Video/Image

    7 novembre 2016, par user3273784

    I am using this command line to add a five second image on end of video :

    ffmpeg -i "f:\output\input.mov" -loop 1 -t 5 -i "f:\output\taff.jpg" -f lavfi -t 5 -i anullsrc -filter_complex "[0:v] [0:a] [1:v] [2:a] concat=n=2:v=1:a=1 [v] [a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" f:\output\output.mp4

    It works great, but sometimes I want to cut the video and then add the five seconds. So, make a 120 second video 110 seconds, then add the 5 second ending.

    Possibly in one command line ? I’ve tried to break it into two, by starting with cutting the video, but then I get an "Unable to parse option value "-1" pixel format" error if I try to re-encode the video I cut with ffmpeg using this :

    ffmpeg -i f:\output\input.mov -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:01:50.000 f:\output\output.mov

    That output video will then give an error if I try to run the first command line against it.

    All feedback appreciated on shortening a video, and then adding ending.

    Cheers !
    Ryan

  • FFmpeg : How to convert horizontal video 16:9 to vertical video 9:16, with blurred background on top and bottom sides

    13 janvier 2016, par gomezo

    I know there is a post to do the contrary :
    FFmpeg : How to convert vertical video with black sides, to video 16:9, with blurred background sides

    but i can’t figure out how to do this with ffmpeg

    here is the input :

    and here is the expected result (the background video should be zoomed with the same aspect ratio, cropped to 9/16 and blurred) :

    Thanks for your help !

  • Output video file of ffmpeg command video and audio doesn't match

    6 juillet 2022, par Barry

    i'm trying to trim a video file using ffmpeg using this command
ffmpeg -i input.mp4 -ss 00:05:20 -t 00:10:00 -c:v copy -c:a copy output.mp4 . The problem is when i open the output video, the audio starts normally but the video appears only 5 seconds after. I tried removing the -c copy option and output is accurate but the process is very slow. So my question is how to make output video/audio match when using -c copy option, or how to make the process faster when not using -c copy option. It's my first time using this so i don't know much about video/audio encoding, i am just trying to extract a video clip from a php script.