Ffmpeg
From wikinotes
Tutorials
ffmpeg zero to hero https://ffmpegfromzerotohero.com/
General Usage
conversion/composition
ffmpeg <global-flags> \ <inputfile flags> -i /path/to/file.mov \ <inputfile flags> -i /path/to/file.mov \ <outputfile flags> /path/to/outputfile.movconcatenation
Concat Demuxer (multiple files, same size/format, avoid re-encode).
echo " file /path/fileA.mov file /path/fileB.mov " > /tmp/concat ffmpeg -f concat -i /tmp/concat -c copy output.movffmpeg -codecs # list all codecs ffmpeg -devices # list all devices ffmpeg -demuxers # list all demuxers ffmpeg -formats # list all formats ffmpeg -decoders # list all deocders ffmpeg -encoders # list all encoders ffmpeg -bsfs # list all bit-stream filterstrim video
ffmpeg -i in.mkv -ss 00:00:00 -t 00:01:10 out.mkv
for html5 video
ps>ffmpeg.exe -i in.mkv \
-y -strict experimental \
-acodec aac \
-ac 2 \
-ab 160k \
-vcodec libx264 \
-s 640x480 \
-pix_fmt yuv420p \
-preset slow \
-profile:v baseline -level 30 \
-maxrate 10000000 \
-bufsize 10000000 \
-b 1200k \
-f mp4 \
-threads 0 \
out.mp4
<!DOCTYPE html>
<html lang="en">
<body>
<video width="640x480" controls>
<source src="my/video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>
filters
Examples
ffmpeg record from usb ffmpeg record window