unkomprimiertes YUV422p10 entrauschen und in HEVC exportieren

  • Hi zusammen

    Ich habe ein Video mit Resolve geschnitten und in unkomprimiertes Video zwischengespeichert. Das soll jetzt noch entrauscht und in HEVC ge-coded werden:

    Nur leider wirft auch AviSynth direkt einen Fehler: LWLibAvVideoSource failed to make a frame

    Mit MPC-HC kann ich das Vid aber ohne Problem abspielen.

    Kommt LSMASH mit dem 422 Material nicht zurecht ?

  • Zitat

    in unkomprimiertes Video zwischengespeichert.

    Kann man da nicht in ein verlustfreies Format speichern? Unkomprimiert hört sich immer falsch an.

    Zitat

    Kommt LSMASH mit dem 422 Material nicht zurecht ?

    LSMash kommt nicht mit unkomprimiert klar.

    Wenn es der reine RAW Stream wäre könnte man http://avisynth.nl/index.php/RawSource26 verwenden.

    Aber unkomprimiert in mov container, hört sich nach was an, was man nicht will. :)

  • Theoretisch sollte es auch als mov mit YUV (AJA Video Systems Xena) klappen. Anscheinent mag AviSynth avi lieber.

    Ich würde das exportierte Mov von Resolve, nur als Test, mit VDub 2 (43602) zu avi mit dem Blackmagic-Codec 4:2:2 10bit (v210, No change) wandeln.

    Sehe gerade, dass bei Resolve, avi uncompressed die beste Einstellung ist. Go Pro sollte man vermeiden.

    Eine 2 TB-HDD (1 TB-SSD), wäre da sicherlich nicht schlecht. Alternativ bliebe unter dem Reiter „Avid AAF" nur der sehr gute DNxHD-4:2:2-Codec.

    ist aber auch mov. Nicht den DNxHR wählen, denn dieser ist ein reiner 4k-Codec.

    Wahnsinn, eine Farb-Finish-Software kostenlos. Das macht AviSynth nicht, schätze ich.

    Leider steht die gute Bildrauschreduktion nur in der Bezahlversion zur Verfügung. Sonst bräuchte man AviSynth gar nicht mehr.

    Bis auf die gute Entfernung von Sägezähnen, an den Bildkanten.

    Im Jahr 2002, hatte solch eine Farb-Finish-Software noch 12.000 Euro gekostet. Damals stürzte das Adobe-Schnittsystem am Tag noch 3x ab.

    Jedenfalls nach Angaben meiner Kollegen.

    BT.2100:

    Scheinbar wurde vor einiger Zeit von der EBU-Kommission BT.2100 freigegeben. Das sind 85% vom RGB-Farbraum.

    BT.2130 (90%) soll voraussichtlich erst in 2 bis 3 Jahren folgen. Allerdings nur im Profibereich. Leider gibt es dazu keine näheren Informationen.

    BT.2100 steht bereits jetzt in den Profi-Schnittprogrammen zur Verfügung.

    Komische Sache. Was soll man jetzt mit BT.2100, wenn alle Fernseher zurzeit nur BT.2020 wiedergeben?

  • Hallo :)
    So, ich hab jetzt das Vid mal in .mkv gemuxed. Der oben genannte Fehler ist jetzt weg. VirtualDub zeigt mir ein Bild.

    Dennoch scheint Avisynth mit der weiteren Verarbeitung nicht so ganz klar zu kommen ...

    Ich versuche das ganze mit dfttest zu entrauschen ... und der erwartet (soweit mit bekannt) nun mal Stacked-Video:

    Da bekomme ich aber die Meldung:
    Input Clip must be native 16 bit ...

  • ... das hier hingegen funktioniert zwar, was Avisynth da allerdings ausgibt, passt dem x265 nicht. Das resultierende Video ist unbrauchbar ...

    screen.jpg

  • Ja, aber es liegt nicht am dither_out ...
    ... sondern daran das x265 nicht (automatisch) mit 4:2:2 Material klar kommt ... so wird 'n Schuh draus :D

    Man beachte den "--input-csp 2" Schalter.

    Code
     "C:\Program Files (x86)\Video Tools\avs2pipemod-1.1.1\avs2pipemod64.exe" -rawvideo "03.avs" | "C:\Program Files\x265\x265-3.0_14.exe" --preset slow --crf 25 --psy-rd 2.0 --rd 5 --psy-rdoq 10.0 --aq-mode 2 --me star --no-open-gop --no-sao --input-res 1920x1080 --input-depth 16 --input-csp 2 --fps 30000/1001 --output "01.h265" --input -
  • LSMASH kommt damit klar, man muss nur die richtige Version nutzen. Probiere mal diese DLL hier.

    Das Avisynth Script so anpassen:

    Hier ein Testencode Log:

    Spoiler anzeigen

    -------------------------- System Environment --------------------------

    StaxRip : 2.0.4.2

    Windows : Windows 10 Enterprise LTSC 2019 1809

    Language : German (Germany)

    CPU : Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz

    GPU : NVIDIA GeForce GTX 1070 Ti

    Resolution : 1920 x 1080

    DPI : 96

    ------------------------ MediaInfo Source File ------------------------

    uncomp.mov

    General

    Complete name : uncomp.mov

    Format : MPEG-4

    Format profile : QuickTime

    Codec ID : qt 0000.02 (qt )

    File size : 527 MiB

    Duration : 1 s 43 ms

    Overall bit rate : 4 241 Mb/s

    Writing application : Lavf57.25.100

    Video

    ID : 1

    Format : YUV

    Codec ID : v210

    Codec ID/Hint : AJA Video Systems Xena

    Duration : 1 s 43 ms

    Bit rate mode : Constant

    Bit rate : 4 242 Mb/s

    Width : 3 840 pixels

    Height : 2 160 pixels

    Display aspect ratio : 16:9

    Frame rate mode : Constant

    Frame rate : 23.976 (24000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:2

    Bit depth : 10 bits

    Scan type : Progressive

    Compression mode : Lossless

    Bits/(Pixel*Frame) : 21.333

    Stream size : 527 MiB (100%)

    Language : English

    Color primaries : BT.2020

    Transfer characteristics : PQ

    Matrix coefficients : BT.2020 non-constant

    Other

    ID : 2

    Type : Time code

    Format : QuickTime TC

    Duration : 1 s 43 ms

    Time code of first frame : 00:45:00:00

    Time code, striped : Yes

    Language : English

    Default : No

    --------------------------- AviSynth Script ---------------------------

    LoadPlugin("StaxRip.2.0.4.2-beta\Apps\Plugins\both\L-SMASH-Works\LSMASHSource.dll")

    LSMASHVideoSource("uncomp.mov", format = "YUV422P10")

    ConvertToYV12()

    -------------------------- Script Properties --------------------------

    Source Frame Count : 25

    Source Frame Rate : 23.976024

    Source Duration : 00:00:01.0430000

    Target Frame Count : 25

    Target Frame Rate : 23.976024

    Target Duration : 00:00:01.0430000

    ---------- Video encoding using x265 3.1+11-de920e0 Wolfberry ----------

    "StaxRip.2.0.4.2-beta\Apps\Support\avs2pipemod\avs2pipemod64.exe" -y4mp uncomp_temp\uncomp.avs | "StaxRip.2.0.4.2-beta\Apps\Encoders\x265\x265.exe" --crf 16 --preset slow --qcomp 0.7 --no-open-gop --chromaloc 2 --no-info --input-depth 10 --no-strong-intra-smoothing --level-idc 5.1 --aq-mode 1 --me umh --hdr --output-depth 10 --repeat-headers --deblock -3:-3 --no-open-gop --uhd-bd --hdr-opt --min-keyint 1 --keyint 24 --colorprim bt2020 --transfer smpte2084 --colormatrix bt2020nc --range limited --bframes 4 --hrd --vbv-bufsize 35000 --vbv-maxrate 40000 --max-cll "1000,400" --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1)" --frames 25 --y4m --output uncomp_temp\uncomp_out.hevc -

    avs2pipemod[info]: writing 25 frames of 24000/1001 fps, 3840x2160,

    sar 0:0, YUV-420-planar-10bit progressive video.

    y4m [info]: 3840x2160 fps 24000/1001 i420p10 unknown frame count

    raw [info]: output file: uncomp_temp\uncomp_out.hevc

    x265 [info]: HEVC encoder version 3.1+19-c4b098f973e6

    x265 [info]: build info [Windows][GCC 9.2.0][64 bit] 10bit

    x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2

    x265 [info]: Main 10 profile, Level-5.1 (High tier)

    x265 [info]: Thread pool created using 8 threads

    x265 [info]: Slices : 1

    x265 [info]: frame threads / pool features : 3 / wpp(34 rows)

    x265 [info]: Coding QT: max CU size, min CU size : 64 / 8

    x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra

    x265 [info]: ME / range / subpel / merge : umh / 57 / 3 / 3

    x265 [info]: Keyframe min / max / scenecut / bias: 1 / 24 / 40 / 5.00

    x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2

    x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0

    x265 [info]: References / ref-limit cu / depth : 4 / on / on

    x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1

    x265 [info]: Rate Control / qCompress : CRF-16.0 / 0.70

    x265 [info]: VBV/HRD buffer / max-rate / init : 35000 / 40000 / 0.900

    x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00

    x265 [info]: tools: rskip signhide tmvp lslices=4 deblock(tC=-3:B=-3) sao

    avs2pipemod[info]: finished, wrote 25 frames [100%].

    avs2pipemod[info]: total elapsed time is 1.879 sec.

    x265 [info]: frame I: 2, Avg QP:17.17 kb/s: 39921.23

    x265 [info]: frame P: 5, Avg QP:18.29 kb/s: 38522.14

    x265 [info]: frame B: 18, Avg QP:20.38 kb/s: 25648.39

    x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%

    x265 [info]: consecutive B-frames: 28.6% 0.0% 0.0% 28.6% 42.9%

    encoded 25 frames in 78.55s (0.32 fps), 29364.97 kb/s, Avg QP:19.70

    Start: 14:11:55

    End: 14:13:15

    Duration: 00:01:20

    General

    Complete name : uncomp_temp\uncomp_out.hevc

    Format : HEVC

    Format/Info : High Efficiency Video Coding

    File size : 3.65 MiB

    Video

    Format : HEVC

    Format/Info : High Efficiency Video Coding

    Commercial name : HDR10

    Format profile : Main 10@L5.1@High

    Width : 3 840 pixels

    Height : 2 160 pixels

    Display aspect ratio : 16:9

    Frame rate : 23.976 (24000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:0 (Type 2)

    Bit depth : 10 bits

    Color range : Limited

    Color primaries : BT.2020

    Transfer characteristics : PQ

    Matrix coefficients : BT.2020 non-constant

    Mastering display color primaries : Display P3

    Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2

    Maximum Content Light Level : 1000 cd/m2

    Maximum Frame-Average Light Level : 400 cd/m2

    --------------------- Muxing using mkvmerge 37.0.0 ---------------------

    "StaxRip.2.0.4.2-beta\Apps\Support\MKVToolNix\mkvmerge.exe" -o uncomp.mkv uncomp_temp\uncomp_out.hevc --attach-file cover.jpg --global-tags uncomp_temp\uncomp_tags.xml --ui-language en

    mkvmerge v37.0.0 ('Leave It') 64-bit

    Automatic MIME type recognition for 'cover.jpg': image/jpeg

    'uncomp_temp\uncomp_out.hevc': Using the demultiplexer for the format 'HEVC/H.265'.

    'uncomp_temp\uncomp_out.hevc' track 0: Using the output module for the format 'HEVC/H.265 (unframed)'.

    The file 'uncomp.mkv' has been opened for writing.

    'uncomp_temp\uncomp_out.hevc' track 0: Extracted the aspect ratio information from the HEVC video data and set the display dimensions to 3840/2160.

    The cue entries (the index) are being written...

    Multiplexing took 0 seconds.

    Start: 14:13:16

    End: 14:13:17

    Duration: 00:00:00

    General

    Complete name : uncomp.mkv

    Format : Matroska

    Format version : Version 4 / Version 2

    File size : 3.85 MiB

    Duration : 1 s 43 ms

    Overall bit rate : 31.0 Mb/s

    Encoded date : UTC 2019-09-14 12:13:16

    Writing application : mkvmerge v37.0.0 ('Leave It') 64-bit

    Writing library : libebml v1.3.9 + libmatroska v1.5.2

    Cover : Yes

    Attachments : cover.jpg

    Video

    ID : 1

    Format : HEVC

    Format/Info : High Efficiency Video Coding

    Commercial name : HDR10

    Format profile : Main 10@L5.1@High

    Codec ID : V_MPEGH/ISO/HEVC

    Duration : 1 s 43 ms

    Bit rate : 29.4 Mb/s

    Width : 3 840 pixels

    Height : 2 160 pixels

    Display aspect ratio : 16:9

    Frame rate mode : Constant

    Frame rate : 23.976 (23976/1000) FPS

    Original frame rate : 23.976 (24000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:0 (Type 2)

    Bit depth : 10 bits

    Bits/(Pixel*Frame) : 0.148

    Stream size : 3.65 MiB (95%)

    Default : Yes

    Forced : No

    Color range : Limited

    Color primaries : BT.2020

    Transfer characteristics : PQ

    Matrix coefficients : BT.2020 non-constant

    Mastering display color primaries : Display P3

    Mastering display luminance : min: 0.0001 cd/m2, max: 1000 cd/m2

    Maximum Content Light Level : 1000 cd/m2

    Maximum Frame-Average Light Level : 400 cd/m2

    ----------------------------- Job Complete -----------------------------

    Start: 14:11:55

    End: 14:13:17

    Duration: 00:01:21


  • (...) Ich würde das exportierte Mov von Resolve, nur als Test, mit VDub 2 (43602) zu avi mit dem Blackmagic-Codec 4:2:2 10bit (v210, No change) wandeln. (...)

    Ich stehe momentan vor einem etwas anderen, aber zumindest ähnlichen Problem wie der Threadersteller und wüsste gern, wie man an diesen ominösen Blackmagic-Codec kommt Pro Jo – bei mir wird er in VirtualDub2 unter Video -> Compression jedenfalls nicht namentlich angezeigt. Habe auch bereits die neueste Version von Desktop Video Setup sowie Resolve installiert, in der Hoffnung, dass der Codec dort mitgeliefert wird. Aber auch nach der Installation der Software taucht nichts Entsprechendes in VirtualDub2 auf.

  • Der Blackmagic-Codec 4:2:2 10bit (v210), sollte eigentlich schon in VDub2 unter Compression angezeigt werden.

    Der Codec wird automatisch von der BM Desktop Video-Software mitinstalliert.

    Das lese ich zum ersten Mal, dass der BM 10 Bit-Codec nicht automatisch eingespielt wurde.

    Die Windows Firewall lässt normalerweise den Codec ohne Probleme durch.

    Einen Virenscanner, hast du vermutlich auch nicht bei der Installation von Desktop Video laufen lassen.

    Ich wüsste jetzt nicht, welches Programm den Codec nicht durchlässt. Resolve verhindert den Codec nicht. VDub2 liegt auf LW C:?

    Normalerweise ist das egal. Vor ca. 15 Jahren traten da noch Probleme mit dem „Kodi-Pack“ auf, Das dürfte aber in der Zwischenzeit behoben worden sein.

    Probleme gab es auch mit dem Download-Programm „JDownloader2". Das ist zwar eine gute Downloadsoftware, greift aber tief in das OS ein.

    Aber selbst bei meinem guten Büro-PC, ist das kein Problem, der Codec wird einwandfrei angezeigt.

    Wird bei dir überhaupt ein BM-Codec angezeigt, und welcher? Ein Screen-Shot vom Compressions-Fenster von VDub2, wäre nicht schlecht.

    Es ist auch unwahrscheinlich, dass deine PC-Hardware zu langsam ist. Auf jeden Fall müsste der 10 Bit-Codec zumindest angezeigt werden.

    BM-Codec-10-bit-422_Pro-Jo.gif

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!