Video editing from terminal

---take number of frames -vframes  ---
ffmpeg -i video.webm -ss 00:00:07.000 -vframes 1 thumb.jpg


---frame from every second---
ffmpeg -i video.webm -vf fps=1 thumb%04d.jpg -hide_banner


https://www.bugcodemaster.com/article/extract-images-frame-frame-video-file-using-ffmpeg



---join videos from list---
ffmpeg -f concat -i input.txt -codec copy output.mp4

input.txt
file 'C:\Users\fabio\Downloads\Super\Sharks\01.mp4'
file 'C:\Users\fabio\Downloads\Super\Sharks\02.mp4'
file 'C:\Users\fabio\Downloads\Super\Sharks\03.mp4'


---scale videos---

ffmpeg -i video_1920.mp4 -vf scale=640:360 video_640.mp4 -hide_banner

---join videos---

https://www.bugcodemaster.com/article/concatenate-videos-using-ffmpeg

Kommentit