ffmpeg -framerate 1 -pattern_type glob -i '*.png' \
-c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
Kategorie: ffmpeg
Konvertiere in MP4-Audio mit FFMPEG
ffmpeg -i source.aif -c:v copy -c:a aac target.mp4
FFMPEG: create movie from jpegs
ffmpeg -framerate 10 -pattern_type glob -i "*.jpg" -c:v libx264 -pix_fmt yuv420p ../output.mp4
ffmpeg: merge videos together
$ cat mylist.txt
.
file '/path/to/file1'
file '/path/to/file2'
file '/path/to/file3'
$ ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4
Video Picture Stitcher
#!/bin/bash
echo "--------------------------------"
echo "Video Picture Stitcher V1.0"
echo "requ. ffmpeg"
echo "--------------------------------"
echo "What is the name of your input movie (with suffix:mov/mp4/mkv but without spaces)?"
read theSource
echo "How should the output named?"
read theTarget
echo "Please wait .."
ffmpeg -hide_banner -loglevel error -i ./SourceMovie/$theSource -r 0.009 -s 640x360 -f image2 ./Stills/$theTarget-%03d.jpeg
ls -lR ./Stills/$theTarget* | wc -l
echo "Files created."
echo "... Stitching."
ffmpeg -framerate 10 -pattern_type glob -i "./Stills/$theTarget*.jpeg" ./Stitched/$theTarget.mp4
echo ".... Finished."
Video Contact Sheet Printer (Updt.)
Muxing Audio- and Video-Container together
ffmpeg -i video.ts -i audio.ts -c:v copy -c:a aac output.mp4
Benchmarks:
3,2 GHz 6-Core Intel Core i7
frame=36438 fps=1348 q=-1.0 size= 413952kB time=00:24:17.47 bitrate=2326.7kbits/s speed=53.9x
2,5 GHz 8-Core Apple M2
frame=166781 fps=2123 q=-1.0 Lsize= 1730859kB time=01:51:11.25 bitrate=2125.4kbits/s speed=84.9x
3,3 GHz 10-Core Apple M2 Pro
frame=13229 fps=2204 qfframe=201471 fps=2310 q=-1.0 Lsize= 2117942kB time=02:14:19.06 bitrate=2152.9kbits/s speed=92.4x