FFMPEG editing

 FFMPEG

https://www.skillsugar.com/ffmpeg-how-to-join-multiple-videos-together

ffmpeg -f concat -safe 0 -i list.txt output.mp4

     -f concat – this forces ffmpeg to use concat mode for the output file.
    -safe 0 – this is needed if absolute paths are provided as the input.
    -i list.txt – the path to the list of input files, if your current working directory is where this file is you can supply the file name only.
    output.mp4 – the path for the output file.

https://www.videoproc.com/resource/ffmpeg-commands.htm


ffmpeg -i input.wav -vn -ar 44100 -ac 2 -b:a 192k output.mp3

ffmpeg -i input.mp4 -vn output.mp3

ffmpeg -i input.mp4 -an mute-output.mp4


hhmmss timeformat cutting:

ffmpeg -i input.mp4 -ss 00:01:54 -to 00:06:53 -c copy output.mp4


scaler esolution

ffmpeg -i input.mp4 -vf scale=1920:1080 output.mp4

audio+video
ffmpeg -i audio.mp3 -i video.mp4 video_audio_mix.mkv


join videos
ffmpeg -f concat -i file-list.txt -c copy output.mp4 (txt fle , file 111.mp4 file 222.mp4...)

doublespeed video
ffmpeg -i input.mp4 -vf "setpts=0.5*PTS" output.mp4

compress
ffmpeg -i input.mp4 -vf scale=1280:-1 -c:v libx264 -preset veryslow -crf 24 output.mp4

https://www.videoproc.com/resource/ffmpeg-commands.htm


ffmpeg -ss 00:00:20 -i input.mp4 -to 10 -r 10 -vf scale=200:-1 output.gif

audiocompress ffmpeg -i input.mp3 -ab 128k output.mp3


slideshow ffmpeg -r 1/5 -i img%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p output.mp4


Kommentit