Benutzer-Werkzeuge

Webseiten-Werkzeuge


untertitel_in_filmen

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
untertitel_in_filmen [2021-10-26 20:54:33] – [allgemeines zu FFmpeg und Untertitelspuren] manfreduntertitel_in_filmen [2022-08-10 23:04:20] (aktuell) manfred
Zeile 28: Zeile 28:
 der PAL-Film "''Film.vob''" (von einer DVD) enthält eine Video-Spur, 6 Ton-Spuren und 14 Untertitel-Spuren; der PAL-Film "''Film.vob''" (von einer DVD) enthält eine Video-Spur, 6 Ton-Spuren und 14 Untertitel-Spuren;
 mit diesem Kommando werden 4 Tonspuren in der Reihenfolge (2, 1, 6, 4) und allen Untertitelspuren (alle bleiben in der Originalreihenfolge, nur die 8. wird an den Anfang gesetzt) in das MP4-Format übersetzt, welches sowohl Blu-Ray- als auch HTML5-kompatibel ist: mit diesem Kommando werden 4 Tonspuren in der Reihenfolge (2, 1, 6, 4) und allen Untertitelspuren (alle bleiben in der Originalreihenfolge, nur die 8. wird an den Anfang gesetzt) in das MP4-Format übersetzt, welches sowohl Blu-Ray- als auch HTML5-kompatibel ist:
-  > ffmpeg -nostdin -fflags +genpts -r 25 -i Film.vob -map 0:v -c:v libx264 -profile:v high -preset veryslow -tune film -x264opts ref=4:b-pyramid=strict:bluray-compat=1:weightp=0:vbv-maxrate=17500:vbv-bufsize=17500:level=3.1:slices=4:b-adapt=2:direct=auto:colorprim=bt709:transfer=bt709:colormatrix=bt709:keyint=50:aud:subme=9:nal-hrd=vbr -crf 18 -vf scale=768x576,pad=max(iw\\,ih*(4/3)):ow/(4/3):(ow-iw)/2:(oh-ih)/2,setsar=1/1 -keyint_min 2-8 -map 0:a:1 -c:a libfdk_aac -b:a 160k -map 0:a:0 -c:a libfdk_aac -b:a 160k -map 0:a:5 -c:a libfdk_aac -b:a 160k -map 0:a:3 -c:a libfdk_aac -b:a 160k -map 0:s:7 -c:s copy -map 0:s:0 -c:s copy -map 0:s:1 -c:s copy -map 0:s:2 -c:s copy -map 0:s:3 -c:s copy -map 0:s:4 -c:s copy -map 0:s:5 -c:s copy -map 0:s:6 -c:s copy -map 0:s:8 -c:s copy -map 0:s:9 -c:s copy -map 0:s:10 -c:s copy -map 0:s:11 -c:s copy -map 0:s:12 -c:s copy -map 0:s:13 -c:s copy -f mp4 -y Film.mp4+  > ffmpeg -nostdin -fflags +genpts -r 25 -i Film.vob -map 0:v -c:v libx264 -profile:v high -preset veryslow -tune film -x264opts ref=4:b-pyramid=strict:bluray-compat=1:weightp=0:vbv-maxrate=17500:vbv-bufsize=17500:level=3.1:slices=1:b-adapt=2:direct=auto:colorprim=bt709:transfer=bt709:colormatrix=bt709:keyint=50:aud:subme=9:nal-hrd=vbr -crf 18 -vf scale=768x576,pad=max(iw\\,ih*(4/3)):ow/(4/3):(ow-iw)/2:(oh-ih)/2,setsar=1/1 -keyint_min 2-8 -map 0:a:1 -c:a libfdk_aac -b:a 160k -map 0:a:0 -c:a libfdk_aac -b:a 160k -map 0:a:5 -c:a libfdk_aac -b:a 160k -map 0:a:3 -c:a libfdk_aac -b:a 160k -map 0:s:7 -c:s copy -map 0:s:0 -c:s copy -map 0:s:1 -c:s copy -map 0:s:2 -c:s copy -map 0:s:3 -c:s copy -map 0:s:4 -c:s copy -map 0:s:5 -c:s copy -map 0:s:6 -c:s copy -map 0:s:8 -c:s copy -map 0:s:9 -c:s copy -map 0:s:10 -c:s copy -map 0:s:11 -c:s copy -map 0:s:12 -c:s copy -map 0:s:13 -c:s copy -f mp4 -y Film.mp4
  
 Die Option "''-nostdin''" verhindert, dass ''ffmpeg'' seine Arbeit bei Eingabe von ''[Q]'' beendet. Die Option "''-nostdin''" verhindert, dass ''ffmpeg'' seine Arbeit bei Eingabe von ''[Q]'' beendet.
Zeile 357: Zeile 357:
  
 ich möchte die Bildspur noch in einem ganz bestimmten Format haben und werde deshalb noch ein paar Optionen für den Video-Encoder übergeben (diese Parameter sind nicht zwingend nötig und müssen immer auf den jeweiligen Film neu abgestimmt werden => //das Skript [[https://github.com/FlatheadV8/Filmwandler/releases|Filmwandler]] tut das im Hintergrund automatisch//): ich möchte die Bildspur noch in einem ganz bestimmten Format haben und werde deshalb noch ein paar Optionen für den Video-Encoder übergeben (diese Parameter sind nicht zwingend nötig und müssen immer auf den jeweiligen Film neu abgestimmt werden => //das Skript [[https://github.com/FlatheadV8/Filmwandler/releases|Filmwandler]] tut das im Hintergrund automatisch//):
-  > export AVC_OPTS="-profile:v high -preset veryslow -tune film -x264opts ref=4:b-pyramid=strict:bluray-compat=1:weightp=0:vbv-maxrate=17500:vbv-bufsize=17500:level=3.1:slices=4:b-adapt=2:direct=auto:colorprim=bt709:transfer=bt709:colormatrix=bt709:keyint=50:aud:subme=9:nal-hrd=vbr -crf 18 -vf scale=768x576,pad='max(iw\,ih*(4/3)):ow/(4/3):(ow-iw)/2:(oh-ih)/2',setsar='1/1' -keyint_min 2-8"+  > export AVC_OPTS="-profile:v high -preset veryslow -tune film -x264opts ref=4:b-pyramid=strict:bluray-compat=1:weightp=0:vbv-maxrate=17500:vbv-bufsize=17500:level=3.1:slices=1:b-adapt=2:direct=auto:colorprim=bt709:transfer=bt709:colormatrix=bt709:keyint=50:aud:subme=9:nal-hrd=vbr -crf 18 -vf scale=768x576,pad='max(iw\,ih*(4/3)):ow/(4/3):(ow-iw)/2:(oh-ih)/2',setsar='1/1' -keyint_min 2-8"
  
 auch setze ich aus Paranoia noch ein paar Optionen, die es ermöglichen einen beschädigten Film ggf. trotzdem zu bearbeiten, auch gebe ich deshalb die FPS-Zahl für das Quellmaterial (''-r 25'') an (diese Parameter sind nicht zwingend nötig): auch setze ich aus Paranoia noch ein paar Optionen, die es ermöglichen einen beschädigten Film ggf. trotzdem zu bearbeiten, auch gebe ich deshalb die FPS-Zahl für das Quellmaterial (''-r 25'') an (diese Parameter sind nicht zwingend nötig):
Zeile 504: Zeile 504:
 Stream size                              : 10.3 MiB (79%) Stream size                              : 10.3 MiB (79%)
 Writing library                          : x264 core 155 Writing library                          : x264 core 155
-Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / slices=/ nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=0 / keyint=50 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=17500 / vbv_bufsize=17500 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00+Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / slices=/ nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=0 / keyint=50 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=17500 / vbv_bufsize=17500 / crf_max=0.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
 Color range                              : Limited Color range                              : Limited
 Color primaries                          : BT.709 Color primaries                          : BT.709
/home/http/wiki/data/attic/untertitel_in_filmen.1635281673.txt · Zuletzt geändert: von manfred