Moin,
ich habe ein paar Videos, die ziemlich viel Platz belegen (5-6GB/Folge, siehe Mediainfo). Ich möchte die gerne neu kodieren, um Speicherplatz zu sparen. Jetzt bin ich in dem Thema nicht sehr bewandert und habe mal die 4 großen LLMs befragt, welches die besten Einstellungen wären, die Videos mit av1 neu zu kodieren.
Hier die Ergebnisse:
Chatpgpt: 972,2MB
Le Chat: 3,9GB (Video lässt sich zwar abspielen, aber ich kann nicht an eine bestimmte Stelle springen, da das Bild sonst schwarz wird)
Claude: 2 GB
Gemini: 2,7GB
Hier die verwendeten Einstellungen:
Chatgpt:
Le Chat:
Claude:
Gemini:
Dann habe ich nochmal Handbrake mit dem Preset Fast 1080p 30 und den Standardeinstellungen (ich musste allerdings die zweite Audiospur und die Untertitel manuell hinzufügen) verwendet. Hier ist die Datei 1,9Gb groß. Allerdings bekomme ich es nicht hin, dass die Untertitel korrekt eingebundene werden. Keine Ahnung, was ich hier falsch mache.
Was noch komisch ist, wenn ich mit Mediainfo die neuen Dateien auslesen, stehen dort teilweise noch die alten Werte drinnen (außer bei dem Handbrake Video). Woran mag das liegen?
Vom Gefühl her würde ich sagen, dass die ganzen Videos auf meinem LG 34GN850-B (34" WQHD) recht ähnlich aussehen. Auf meinem 4k TV hab ich sie aber noch nicht angeschaut, das würde ich heute im Laufe des Tages irgendwann machen. Die Dateien sollen am Ende auf meinem NAS liegen und per Jellyfin im lokeln Netzwerk verfügbar sein.
Jedenfalls wollte ich, bevor ich jetzt planlos weiter experimentiere und Terrabytes an Videos neu berechne, mal Nachfragen, auf was ich eigentlich generell achten sollte und welche von den LLMs vorgeschlagenen Optionen eigentlich sinnvoll sind oder weggelassen werden können.
Besten Dank!
ich habe ein paar Videos, die ziemlich viel Platz belegen (5-6GB/Folge, siehe Mediainfo). Ich möchte die gerne neu kodieren, um Speicherplatz zu sparen. Jetzt bin ich in dem Thema nicht sehr bewandert und habe mal die 4 großen LLMs befragt, welches die besten Einstellungen wären, die Videos mit av1 neu zu kodieren.
Hier die Ergebnisse:
Chatpgpt: 972,2MB
Le Chat: 3,9GB (Video lässt sich zwar abspielen, aber ich kann nicht an eine bestimmte Stelle springen, da das Bild sonst schwarz wird)
Claude: 2 GB
Gemini: 2,7GB
Hier die verwendeten Einstellungen:
Chatgpt:
ffmpeg -i test.mkv \
-map 0:v:0 \
-map 0:a:0 \
-map 0:a:1 \
-map 0:s \
-c:v av1_nvenc \
-preset p7 \
-profile:v main10 \
-pix_fmt p010le \
-rc vbr \
-cq 33 \
-b:v 0 \
-maxrate 0 \
-bf 7 \
-spatial_aq 1 \
-temporal_aq 1 \
-aq-strength 10 \
-g 240 \
-c:a:0 libopus -b:a:0 96k \
-c:a:1 libopus -b:a:1 320k \
-af:a:1 "aformat=channel_layouts=5.1" \
-ar 48000 \
-c:s copy \
chatgpt.mkv
-map 0:v:0 \
-map 0:a:0 \
-map 0:a:1 \
-map 0:s \
-c:v av1_nvenc \
-preset p7 \
-profile:v main10 \
-pix_fmt p010le \
-rc vbr \
-cq 33 \
-b:v 0 \
-maxrate 0 \
-bf 7 \
-spatial_aq 1 \
-temporal_aq 1 \
-aq-strength 10 \
-g 240 \
-c:a:0 libopus -b:a:0 96k \
-c:a:1 libopus -b:a:1 320k \
-af:a:1 "aformat=channel_layouts=5.1" \
-ar 48000 \
-c:s copy \
chatgpt.mkv
Le Chat:
ffmpeg -i test.mkv \
-map 0:v:0 -c:v av1_nvenc \
-preset p7 \
-tune ll \
-rc vbr \
-cq 23 \
-b:v 0 \
-map 0:a:0 -c:a:0 libopus \
-b:a:0 128k \
-vbr on \
-compression_level 10 \
-map 0:a:1 -c:a:1 libopus \
-b:a:1 384k \
-vbr on \
-compression_level 10 \
-filter:a:1 "aformat=channel_layouts=5.1" \
-map 0:s -c:s copy \
-y lechat.mkv
-map 0:v:0 -c:v av1_nvenc \
-preset p7 \
-tune ll \
-rc vbr \
-cq 23 \
-b:v 0 \
-map 0:a:0 -c:a:0 libopus \
-b:a:0 128k \
-vbr on \
-compression_level 10 \
-map 0:a:1 -c:a:1 libopus \
-b:a:1 384k \
-vbr on \
-compression_level 10 \
-filter:a:1 "aformat=channel_layouts=5.1" \
-map 0:s -c:s copy \
-y lechat.mkv
Claude:
ffmpeg -i test.mkv \
-c:v av1_nvenc -preset p7 -tune hq -rc vbr -cq 28 -b:v 0 -multipass 2 \
-c:a:0 libopus -b:a:0 128k -vbr on -compression_level 10 \
-filter:a:1 "aformat=channel_layouts=5.1" -c:a:1 libopus -b:a:1 384k -vbr on -compression_level 10 \
-c:s copy \
-map 0 \
claude.mkv
-c:v av1_nvenc -preset p7 -tune hq -rc vbr -cq 28 -b:v 0 -multipass 2 \
-c:a:0 libopus -b:a:0 128k -vbr on -compression_level 10 \
-filter:a:1 "aformat=channel_layouts=5.1" -c:a:1 libopus -b:a:1 384k -vbr on -compression_level 10 \
-c:s copy \
-map 0 \
claude.mkv
Gemini:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i test.mkv \
-c:v av1_nvenc -preset p7 -tune hq -rc vbr -cq 24 -b:v 0 -maxrate 8M -bufsize 16M \
-filter_complex "[0:a:0]channelmap=channel_layout=stereo[a1];[0:a:1]channelmap=channel_layout=5.1[a2]" \
-map 0:v -map "[a1]" -map "[a2]" -map 0:s \
-c:a libopus -b:a:0 128k -b:a:1 320k -mapping_family:a:1 1 \
-c:s copy \
gemini.mkv
-c:v av1_nvenc -preset p7 -tune hq -rc vbr -cq 24 -b:v 0 -maxrate 8M -bufsize 16M \
-filter_complex "[0:a:0]channelmap=channel_layout=stereo[a1];[0:a:1]channelmap=channel_layout=5.1[a2]" \
-map 0:v -map "[a1]" -map "[a2]" -map 0:s \
-c:a libopus -b:a:0 128k -b:a:1 320k -mapping_family:a:1 1 \
-c:s copy \
gemini.mkv
Dann habe ich nochmal Handbrake mit dem Preset Fast 1080p 30 und den Standardeinstellungen (ich musste allerdings die zweite Audiospur und die Untertitel manuell hinzufügen) verwendet. Hier ist die Datei 1,9Gb groß. Allerdings bekomme ich es nicht hin, dass die Untertitel korrekt eingebundene werden. Keine Ahnung, was ich hier falsch mache.
Was noch komisch ist, wenn ich mit Mediainfo die neuen Dateien auslesen, stehen dort teilweise noch die alten Werte drinnen (außer bei dem Handbrake Video). Woran mag das liegen?
General
Unique ID :
Complete name :
Format : Matroska
Format version : Version 4
File size : 972 MiB
Duration : 48 min 14 s
Overall bit rate : 2 818 kb/s
Frame rate : 23.976 FPS
Writing application : Lavf62.3.100
Writing library : Lavf62.3.100
ErrorDetectionType : Per level 1
Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : Main@L4.0
Codec ID : V_AV1
Duration : 48 min 14 s
Bit rate : 12.4 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.250
Stream size : 4.19 GiB
Writing library : Lavc62.11.100 av1_nvenc
Default : Yes
Forced : No
Color range : Limited
Audio #1
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 48 min 14 s
Bit rate : 768 kb/s
Channel(s) : 6 channels
Channel layout : L R C Lb Rb LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 32 bits
Compression mode : Lossy
Stream size : 265 MiB (27%)
Writing library : Lavc62.11.100 libopus
Language : German
Default : Yes
Forced : No
Audio #2
ID : 3
Format : Opus
Codec ID : A_OPUS
Duration : 48 min 14 s
Bit rate : 3 973 kb/s
Channel(s) : 6 channels
Channel layout : L R C Lb Rb LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 32 bits
Compression mode : Lossy
Stream size : 1.34 GiB
Writing library : Lavc62.11.100 libopus
Language : English
Default : No
Forced : No
Text #1
ID : 4
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 249 b/s
Frame rate : 0.001 FPS
Count of elements : 4
Stream size : 87.7 KiB (0%)
Title : forced
Language : German
Default : Yes
Forced : No
Text #2
ID : 5
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 40.4 kb/s
Frame rate : 0.381 FPS
Count of elements : 1102
Stream size : 13.9 MiB (1%)
Language : German
Default : No
Forced : No
Text #3
ID : 6
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 38.2 kb/s
Frame rate : 0.370 FPS
Count of elements : 1068
Stream size : 13.1 MiB (1%)
Language : English
Default : No
Forced : No
Unique ID :
Complete name :
Format : Matroska
Format version : Version 4
File size : 972 MiB
Duration : 48 min 14 s
Overall bit rate : 2 818 kb/s
Frame rate : 23.976 FPS
Writing application : Lavf62.3.100
Writing library : Lavf62.3.100
ErrorDetectionType : Per level 1
Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : Main@L4.0
Codec ID : V_AV1
Duration : 48 min 14 s
Bit rate : 12.4 Mb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.250
Stream size : 4.19 GiB
Writing library : Lavc62.11.100 av1_nvenc
Default : Yes
Forced : No
Color range : Limited
Audio #1
ID : 2
Format : Opus
Codec ID : A_OPUS
Duration : 48 min 14 s
Bit rate : 768 kb/s
Channel(s) : 6 channels
Channel layout : L R C Lb Rb LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 32 bits
Compression mode : Lossy
Stream size : 265 MiB (27%)
Writing library : Lavc62.11.100 libopus
Language : German
Default : Yes
Forced : No
Audio #2
ID : 3
Format : Opus
Codec ID : A_OPUS
Duration : 48 min 14 s
Bit rate : 3 973 kb/s
Channel(s) : 6 channels
Channel layout : L R C Lb Rb LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 32 bits
Compression mode : Lossy
Stream size : 1.34 GiB
Writing library : Lavc62.11.100 libopus
Language : English
Default : No
Forced : No
Text #1
ID : 4
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 249 b/s
Frame rate : 0.001 FPS
Count of elements : 4
Stream size : 87.7 KiB (0%)
Title : forced
Language : German
Default : Yes
Forced : No
Text #2
ID : 5
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 40.4 kb/s
Frame rate : 0.381 FPS
Count of elements : 1102
Stream size : 13.9 MiB (1%)
Language : German
Default : No
Forced : No
Text #3
ID : 6
Format : PGS
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 48 min 9 s
Bit rate : 38.2 kb/s
Frame rate : 0.370 FPS
Count of elements : 1068
Stream size : 13.1 MiB (1%)
Language : English
Default : No
Forced : No
General
Complete name :
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/iso2/avc1/mp41)
File size : 1.91 GiB
Duration : 48 min 14 s
Overall bit rate : 5 670 kb/s
Frame rate : 23.976 FPS
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Writing application : HandBrake 20250906052339-dddf75f75-makepkg 2025100401
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 48 min 14 s
Bit rate : 5 303 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 (24000/1001) FPS
Minimum frame rate : 23.974 FPS
Maximum frame rate : 23.981 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.107
Stream size : 1.79 GiB (94%)
Writing library : x264 core 165 r3222 b35605a
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1,00:0,00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22,0 / qcomp=0,60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0,0 / nal_hrd=none / filler=0 / ip_ratio=1,40 / aq=1:1,00
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 2894224
Codec configuration box : avcC
Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 48 min 14 s
Source duration : 48 min 14 s
Bit rate mode : Constant
Bit rate : 163 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 56.4 MiB (3%)
Source stream size : 56.4 MiB (3%)
Title : Stereo
Language : German
Default : Yes
Alternate group : 1
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 48 min 14 s
Source duration : 48 min 14 s
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 66.6 MiB (3%)
Source stream size : 66.6 MiB (3%)
Title : 5.1
Language : English
Default : No
Alternate group : 1
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Complete name :
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42 (mp42/iso2/avc1/mp41)
File size : 1.91 GiB
Duration : 48 min 14 s
Overall bit rate : 5 670 kb/s
Frame rate : 23.976 FPS
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Writing application : HandBrake 20250906052339-dddf75f75-makepkg 2025100401
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 48 min 14 s
Bit rate : 5 303 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 (24000/1001) FPS
Minimum frame rate : 23.974 FPS
Maximum frame rate : 23.981 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.107
Stream size : 1.79 GiB (94%)
Writing library : x264 core 165 r3222 b35605a
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1,00:0,00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=22,0 / qcomp=0,60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0,0 / nal_hrd=none / filler=0 / ip_ratio=1,40 / aq=1:1,00
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
mdhd_Duration : 2894224
Codec configuration box : avcC
Audio #1
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 48 min 14 s
Source duration : 48 min 14 s
Bit rate mode : Constant
Bit rate : 163 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 56.4 MiB (3%)
Source stream size : 56.4 MiB (3%)
Title : Stereo
Language : German
Default : Yes
Alternate group : 1
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Audio #2
ID : 3
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 48 min 14 s
Source duration : 48 min 14 s
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 6 channels
Channel layout : C L R Ls Rs LFE
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 66.6 MiB (3%)
Source stream size : 66.6 MiB (3%)
Title : 5.1
Language : English
Default : No
Alternate group : 1
Encoded date : 2021-01-30 10:28:42 UTC
Tagged date : 2021-01-30 10:28:42 UTC
Vom Gefühl her würde ich sagen, dass die ganzen Videos auf meinem LG 34GN850-B (34" WQHD) recht ähnlich aussehen. Auf meinem 4k TV hab ich sie aber noch nicht angeschaut, das würde ich heute im Laufe des Tages irgendwann machen. Die Dateien sollen am Ende auf meinem NAS liegen und per Jellyfin im lokeln Netzwerk verfügbar sein.
Jedenfalls wollte ich, bevor ich jetzt planlos weiter experimentiere und Terrabytes an Videos neu berechne, mal Nachfragen, auf was ich eigentlich generell achten sollte und welche von den LLMs vorgeschlagenen Optionen eigentlich sinnvoll sind oder weggelassen werden können.
Besten Dank!