====== Videobearbeitung im Terminal ======
===== Videodateien aneinanderhängen ohne recodieren =====
Geht nur fehlerfrei mit Rohformaten wie prores.
FFmpeg Helperfile erstellen
printf "file '%s'\n" ./*.mov > videoliste.txt
Beispielinhalt videoliste.txt
file './file1.mov'
file './file2.mov'
file './file3.mov'
Jetzt mit ffmpeg aneinanderhängen
ffmpeg -f concat -safe 0 -i videoliste.txt -c:v copy -c:a copy ganzgrossesvideo.mov
oder
ffmpeg -f concat -safe 0 -i videoliste.txt -c:v copy -c:a pcm_s16le -ac 2 -ar 48k ganzgrossesvideo.mov
===== Videokonvertieren =====
* [[handbrakeclihelp|HandBrakeCLI Hilfe]]
==== Aus groß mach klein ====
=== HandBrakeCLI ===
HandBrakeCLI -i input.mov -o output.mp4 -f av_mp4 -e x264 -b 1500 -E copy -w 720 -l 360 --crop 0:0:0:0
for i in `ls *.mkv`;do HandBrakeCLI -i $i -o ../MP4/${i/.mkv/.mp4} -f av_mp4 -e x264 -q 20 -a 1,2 -6 stereo,stereo -E faac,faac -B 192,192 -w 1920 -l 1080 --crop 0:0:0:0 -m -O;done
=== ffmpeg ===
ffmpeg -i input.mov -vf scale=w=720:h=360:force_original_aspect_ratio=decrease -c:a copy -preset slow -crf 18 output-720x360.mov
for i in `ls *.mov`;do ffmpeg -i $i -c:a copy -c:v libx264 -preset slow -crf 19 -vf scale=1280:640 ${i/-prores.mov/-1280x640.mov};done
==== Endspurt ====
Tonspur extrahieren
ffmpeg -i input.mov -vn -c:a copy output.wav
Tonspur in aac wandeln
ffmpeg -i input.wav -strict experimental -ac 1 -c:a aac -b:a 96k output.m4a
Videospur im Endformat erstellen
HandBrakeCLI -i input-prores.mov -o output.mp4 -f av_mp4 -e x264 -b 15000 -2 -E ca_aac -B 192 -w 3840 -l 1920 --crop 0:0:0:0