Komprimierung/kodieren von Video-Datein

Vinc211

Kabelverknoter(in)
Moin,

ich habe zwei Videos die 22 Minuten lang sind: 1280x720p mit 24Bildern pro Sekunde. Beide Sind MKV mit dem Codec MPEG-4 AVC / H.264 Farbmodus YUV4:2:0 Planar. Audiospur und Untertitel sind nicht der rede Wert.
Beides Videos sind Zeichentrick in der selben Qualität, nur das eine ist 700MB und das andere 100MB groß.

Ich habe das 700MB Video schon neu kodiert mit kleiner Bitrate, höherer Komprimierung etc. doch komm ich an die Qualität und Größe nicht ran.
Ich weiß leidern icht welche Infos fehlen da ich kaum mit Bildbearbeitung etc arbeite aber ich liefer gern alles nach.

Mfg Vinc
 
Moin,

die Komprimierbarkeit von Videos hängt grob von der Menge an Bewegung, dem allgemeinen Bildinhalt und der Menge an Filmkorn -bei Zeichentrick/Animes dem Maß des Ditherings- ab.
Damit beide Videos die selbe Größe besitzen musst du nur die Zielbitrate berechnen und ein 2-Pass Encoding (oder mehre Durchgänge) durchführen. Dass das qualitativ nicht sinnvoll ist sollte einleuchten.

Um die Größe bei gleicher Qualität zu senken besteht nur die Möglichkeit die Komprimierung zu erhöhen. me, me-range, subme, ref, mixed-refs, bframes, b-pyramid und trellis sind die Stellschrauben bei x264.
 
Okay die hälfte davon hab ich verstanden.

Mir sagen me, me-range, subme, ref, mixed-refs, bframes, b-pyramid und trellis leider überhaupt nix.

Kann ich die anderen Videos im nachhinein noch weiter komprimieren und welchen nachteil hat eine höhere Komprimierung? Ich mein man könnte hier schließlich knapp 85% Speicherplatz sparen.
 
me ist die Einstellung für die Art der Bewegungssuche, me-range der Radius der Bewegungssuche. subme ist die Subpixelbewegungssuche, ref die Anzahl der Referenzframes, ...
Mit den genannten Einstellungen lässt sich die Komprimierung ohne Qualitätsänderung beeinflussen. Bei selbser Qualität sinkt die benötigte Bitrate und infolge dessen die Dateigröße. Nachteil ist der höhere Rechenaufwand.

Darüber hinaus lässt sich auch einfach die Bitrate herunterregeln ... mit (massiver) sichtbarer Qualitätsverschlechterung.


Das hängt natürlich auch alles davon ab wie gut der Ausgangsencode ist, was man selbst wahrnimmt (ein ungeschultes Auge sieht nicht alles; Displaybstand; ...) und wie viel Qualität man bereit ist einzubüsen.

Beispielhaft:
Source:
Source.png
CRF17, mit höheren Einstellungen wird es noch einmal 11 MB kleiner:
CRF_standard.png
General
Unique ID : 33382943762478558616060829301925596525 (0x191D5233C43E49DC97E6965E7C95CD6D)
Complete name : C:\Users\Desktop\CRF_standard.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 269 MiB
Duration : 1mn 30s
Overall bit rate mode : Variable
Overall bit rate : 25.1 Mbps
Encoded date : UTC 2015-12-14 21:06:40
Writing application : Lavf55.37.100
Writing library : Lavf55.37.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3.1
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 30s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 142 r2409
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x131 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=230 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=17.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1mn 30s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
Hier ein 2-Pass mit 15000 kbit/s:
15000_2pass.png
General
Unique ID : 339749449109430340539065950258439876428 (0xFF995D1F909C4ABC77F8DBD5B1336F4C)
Complete name : C:\Users\Desktop\15000_2pass.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 168 MiB
Duration : 1mn 30s
Overall bit rate mode : Variable
Overall bit rate : 15.6 Mbps
Encoded date : UTC 2015-12-14 22:53:50
Writing application : Lavf55.37.100
Writing library : Lavf55.37.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 30s
Nominal bit rate : 15.0 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.679
Writing library : x264 core 142 r2409
Encoding settings : cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x1:0x131 / me=umh / subme=11 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=230 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=2pass / mbtree=1 / bitrate=15000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=15000 / vbv_bufsize=24000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.60
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1mn 30s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
2-Pass mit 9000 kbit/s:
9000_2pass.png
General
Unique ID : 325402358865481590014868980426248731023 (0xF4CE36F602C5327D4A5EABD31C8AB98F)
Complete name : C:\Users\Desktop\9000_2pass.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 105 MiB
Duration : 1mn 30s
Overall bit rate mode : Variable
Overall bit rate : 9 732 Kbps
Encoded date : UTC 2015-12-14 22:33:16
Writing application : Lavf55.37.100
Writing library : Lavf55.37.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 30s
Nominal bit rate : 9 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.407
Writing library : x264 core 142 r2409
Encoding settings : cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x1:0x131 / me=umh / subme=11 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=230 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=2pass / mbtree=1 / bitrate=9000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=9000 / vbv_bufsize=24000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.60
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1mn 30s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
2-Pass mit 5000 kbit/s:
5000_2pass.png
General
Unique ID : 274975778713840195799614152289825559801 (0xCEDE689B5C601F1FDA7A1A27E60794F9)
Complete name : C:\Users\Desktop\5000_2pass.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 61.8 MiB
Duration : 1mn 30s
Overall bit rate mode : Variable
Overall bit rate : 5 754 Kbps
Encoded date : UTC 2015-12-14 22:22:19
Writing application : Lavf55.37.100
Writing library : Lavf55.37.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 30s
Nominal bit rate : 5 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.226
Writing library : x264 core 142 r2409
Encoding settings : cabac=1 / ref=8 / deblock=1:1:1 / analyse=0x1:0x131 / me=umh / subme=11 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=230 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=2pass / mbtree=1 / bitrate=5000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=5000 / vbv_bufsize=24000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:0.60
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1mn 30s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
2-Pass mit 2000 kbit/s:
2000_2pass_standard.png
General
Unique ID : 132020206523256458391183975925376785854 (0x63522ABA01A47F5151890B1C8B4A9DBE)
Complete name : C:\Users\Desktop\2000_2pass_standard.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 30.0 MiB
Duration : 1mn 30s
Overall bit rate mode : Variable
Overall bit rate : 2 793 Kbps
Encoded date : UTC 2015-12-14 21:02:58
Writing application : Lavf55.37.100
Writing library : Lavf55.37.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 30s
Nominal bit rate : 2 000 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.091
Writing library : x264 core 142 r2409
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x1:0x131 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=230 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=2000 / vbv_bufsize=24000 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : Yes
Forced : No

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1mn 30s
Bit rate mode : Variable
Channel(s) : 2 channels
Sampling rate : 44.1 KHz
Bit depth : 16 bits
Default : Yes
Forced : No
 
Zuletzt bearbeitet:
Kann ich die anderen Videos im nachhinein noch weiter komprimieren und welchen nachteil hat eine höhere Komprimierung?
Schau Dir im Kabel-TV EuroNews und ARD an und Du weisst, dass man alles auch zu Tode komprimieren kann. Im Grunde hast Du das doch selber schon erfahren.

Wenn die Videos unwichtig sind, dann komprimiere sie halt einfach mit einer festen Zieldatenrate und freue Dich an den 3 Cent gespartem Plattenplatz (weitere 2 Cent sind druch einfaches Löschen ohne Zeitaufwand zusätzlich einsparbar). Wenn sie wichtig sind, Du obiges Posting nicht komplett verstanden hast und auch keine Lust hast, Dich mit viel Zeitaufwand einzuarbeiten (beides keine Schande aber zwingend nötig, um das individuelle Optimum aus jedem Film heraus zu holen), dann lass es einfach und investiere zur Not das Weihnachtsgeld in eine neue Festplatte.
 
@soth: Danke für die Antwort. Hat mich auf jedenfall weiter gebracht. Die feste Bitrate ist eben genau nicht das was ich möchte um entsprechend keinen Qualitätsverlust zu haben. Ich werde mal mit den genannten Einstellungen ausprobieren und sehen wie viel ich an Platz gewinnen kann, ohne sichtbar an Qualität zu verlieren.

@fotoman: Ich verstehe nicht wieso man so eine Antwort zusammentippert, wenn es zum einen am Ziel vorbei und zum anderen so sinnlos ist. Ich wollte einfach wissen wie es möglich ist.
 
Zurück