Skip to main content

FFmpeg - Eine Blu-Ray oder DVD Transcodieren

Zuerst mittels MakeMKV oder ähnlichem die Blu-Ray oder DVD Rippen.

Transkodierung einer gerripten DVD

Beispiel 1

Software Encoding

ffmpeg -i title_t00.mkv -map_metadata 0 -c:v libx264 -b:v 4000K -c:a aac -b:a 256K title_t00.mp4

NVDEC (NVIDIA Decoder) und NVENC (NVIDIA Encoder)

ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i title_t00.mkv -map_metadata 0 -c:v h264_nvenc -b:v 4000K -c:a aac -b:a 256K title_t00.mp4

Beispiel 2

ffmpeg -i The_Hunger_Games.mkv -map 0 -c:v libx264 -b:v 4000K -c:a copy -c:s copy The_Hunger_Games.mp4

Zusammenführen mehrerer Inputs zu einem Output

ffmpeg -hwaccel cuda -hwaccel_output_format cuda -f concat -safe 0 -i concat.txt -c:v h264_nvenc -b:v 4000K -c:a aac -b:a 256K concatenated.mp4
Inhalt der concat.txt

file 'file:Food_Wars_III/DVD_1/title_t01.mkv'
file 'file:Food_Wars_III/DVD_1/title_t02.mkv'
file 'file:Food_Wars_III/DVD_1/title_t03.mkv'
file 'file:Food_Wars_III/DVD_1/title_t04.mkv'
file 'file:Food_Wars_III/DVD_1/title_t05.mkv'
file 'file:Food_Wars_III/DVD_1/title_t06.mkv'

Transkodierung einer gerippten Blu-ray

Nvidia HW Acceleration
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "Food Wars III - Volume 4_t06.mkv" -map_metadata 0 -c:v h264_nvenc -b:v 8000K -c:a aac -b:a 256K "Food Wars III - Volume 4_t06.mp4"
AMD HW Acceleration

Hinweis: Dieser Befehl steuert die Video Acceleration API (VAAPI) an und funktioniert daher nur unter Linux. Beispiele die unter Windows funktionieren gerne in die Kommentare!

ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i Food\ Wars!\ The\ Fourth\ Plate\ -\ Staffel\ 4\ -\ Vol.1_t06.mkv -map 0 -map -0:a -map 0:a:2 -map 0:a:0 -c:v hevc_vaapi -b:v 3500K -c:a aac -b:a 256K -c:s copy Food\ Wars!\ The\ Fourth\ Plate\ -\ Staffel\ 4\ -\ Vol.1_t06_new.mkv