This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

mpeg2 mkv to x264 mp4 always heavy artifacts
#4
Debug output already contains a details MediaInfo output:
General Count : 331 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Unique ID : 16122812076564479656541002724922483739 Unique ID : 16122812076564479656541002724922483739 (0xC2124021221F55AACF5DD17BB25E41B) Count of video streams : 1 Count of audio streams : 1 Count of menu streams : 1 Video_Format_List : MPEG Video Video_Format_WithHint_List : MPEG Video Codecs Video : MPEG Video Video_Language_List : English Audio_Format_List : AC-3 Audio_Format_WithHint_List : AC-3 Audio codecs : AC-3 Audio_Language_List : Czech Complete name : C:\Users\Filip\Desktop\Youtube filmy\serie2\1.mkv Folder name : C:\Users\Filip\Desktop\Youtube filmy\serie2 File name extension : 1.mkv File name : 1 File extension : mkv Format : Matroska Format : Matroska Format/Url : https://matroska.org/downloads/windows.html Format/Extensions usually used : mkv mk3d mka mks Commercial name : Matroska Format version : Version 2 File size : 2300138153 File size : 2.14 GiB File size : 2 GiB File size : 2.1 GiB File size : 2.14 GiB File size : 2.142 GiB Duration : 2969200 Duration : 49 min 29 s Duration : 49 min 29 s 200 ms Duration : 49 min 29 s Duration : 00:49:29.200 Duration : 00:49:29:05 Duration : 00:49:29.200 (00:49:29:05) Overall bit rate mode : VBR Overall bit rate mode : Variable Overall bit rate : 6197328 Overall bit rate : 6 197 kb/s Frame rate : 25.000 Frame rate : 25.000 FPS Frame count : 74230 Stream size : 1877345 Stream size : 1.79 MiB (0%) Stream size : 2 MiB Stream size : 1.8 MiB Stream size : 1.79 MiB Stream size : 1.790 MiB Stream size : 1.79 MiB (0%) Proportion of this stream : 0.00082 IsStreamable : Yes Encoded date : UTC 2021-01-10 15:17:58 File creation date : UTC 2021-01-10 15:17:58.773 File creation date (local) : 2021-01-10 16:17:58.773 File last modification date : UTC 2021-01-10 15:37:04.347 File last modification date (local) : 2021-01-10 16:37:04.347 Writing application : MakeMKV v1.15.3 win(x64-release) Writing application : MakeMKV v1.15.3 win(x64-release) Writing library : libmakemkv v1.15.3 (1.3.10/1.5.2) win(x64-release) Writing library : libmakemkv v1.15.3 (1.3.10/1.5.2) win(x64-release) Video Count : 379 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 StreamOrder : 0 ID : 1 ID : 1 ID in the original source medium : 224 ID in the original source medium : 224 (0xE0) Unique ID : 1 Format : MPEG Video Format : MPEG Video Commercial name : MPEG-2 Video Format version : Version 2 Format profile : Main@Main Format settings : CustomMatrix / BVOP Format settings, BVOP : Yes Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, Matrix : Custom Format_Settings_Matrix_Data : 10111112121213131313141414141415151515151516161616161616171717171717171718181819181818191A1A1A1A191B1B1B1B1B1C1C1C1C1E1E1E1F1F21 Format settings, GOP : Variable Format settings, picture structure : Frame Internet media type : video/MPV Codec ID : V_MPEG2 Codec ID/Info : MPEG 1 or 2 Video Codec ID/Url : http://ffdshow-tryout.sourceforge.net/ Duration : 2969200.000000 Duration : 49 min 29 s Duration : 49 min 29 s 200 ms Duration : 49 min 29 s Duration : 00:49:29.200 Duration : 00:49:29:05 Duration : 00:49:29.200 (00:49:29:05) Bit rate mode : VBR Bit rate mode : Variable Bit rate : 6000280 Bit rate : 6 000 kb/s Maximum bit rate : 8500000 Maximum bit rate : 8 500 kb/s Width : 720 Width : 720 pixels Height : 576 Height : 576 pixels Sampled_Width : 720 Sampled_Height : 576 Pixel aspect ratio : 1.067 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Frame rate mode : CFR Frame rate mode : Constant Frame rate : 25.000 Frame rate : 25.000 FPS Frame count : 74230 Standard : PAL Color space : YUV Chroma subsampling : 4:2:0 Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Interlaced Scan type : Interlaced Scan order : TFF Scan order : Top Field First Compression mode : Lossy Compression mode : Lossy Bits/(Pixel*Frame) : 0.579 Delay : 0 Delay : 00:00:00.000 Delay, origin : Container Delay, origin : Container Delay_Original : 3600000 Delay_Original : 1 h 0 min Delay_Original : 1 h 0 min 0 s 0 ms Delay_Original : 1 h 0 min Delay_Original : 01:00:00.000 Delay_Original_Settings : drop_frame_flag=0 / closed_gop=1 / broken_link=0 Delay_Original_DropFrame : No Delay_Original_Source : Stream Time code of first frame : 01:00:00:00 Time code source : Group of pictures header Stream size : 2227004232 Stream size : 2.07 GiB (97%) Stream size : 2 GiB Stream size : 2.1 GiB Stream size : 2.07 GiB Stream size : 2.074 GiB Stream size : 2.07 GiB (97%) Proportion of this stream : 0.96820 Language : en Language : English Language : English Language : en Language : eng Language : en Default : No Default : No Forced : No Forced : No Buffer size : 229376 Original source medium : DVD-Video intra_dc_precision : 10 Audio Count : 312 Count of stream of this kind : 1 Kind of stream : Audio Kind of stream : Audio Stream identifier : 0 StreamOrder : 1 ID : 2 ID : 2 ID in the original source medium : 189-128 ID in the original source medium : 189 (0xBD)128 (0x80) Unique ID : 2 Format : AC-3 Format : AC-3 Format/Info : Audio Coding 3 Format/Url : https://en.wikipedia.org/wiki/AC3 Commercial name : Dolby Digital Commercial name : Dolby Digital Format settings, Endianness : Big Codec ID : A_AC3 Duration : 2969024.000000 Duration : 49 min 29 s Duration : 49 min 29 s 24 ms Duration : 49 min 29 s Duration : 00:49:29.024 Duration : 00:49:52:30 Duration : 00:49:29.024 (00:49:52:30) Bit rate mode : CBR Bit rate mode : Constant Bit rate : 192000 Bit rate : 192 kb/s Channel(s) : 2 Channel(s) : 2 channels Channel positions : Front: L R Channel positions : 2/0/0 Channel layout : L R Samples per frame : 1536 Sampling rate : 48000 Sampling rate : 48.0 kHz Samples count : 142513152 Frame rate : 31.250 Frame rate : 31.250 FPS (1536 SPF) Frame count : 92782 Compression mode : Lossy Compression mode : Lossy Delay : 0 Delay : 00:00:00.000 Delay, origin : Container Delay, origin : Container Delay relative to video : 0 Delay relative to video : 00:00:00.000 Stream size : 71256576 Stream size : 68.0 MiB (3%) Stream size : 68 MiB Stream size : 68 MiB Stream size : 68.0 MiB Stream size : 67.96 MiB Stream size : 68.0 MiB (3%) Proportion of this stream : 0.03098 Title : Stereo Language : cs Language : Czech Language : Czech Language : cs Language : ces Language : cs Service kind : CM Service kind : Complete Main Default : Yes Default : Yes Forced : No Forced : No Original source medium : DVD-Video bsid : 8 Dialog Normalization : -27 Dialog Normalization : -27 dB compr : -0.28 compr : -0.28 dB dynrng : -7.66 dynrng : -7.66 dB dsurmod : 0 acmod : 2 lfeon : 0 dialnorm_Average : -27 dialnorm_Average : -27 dB dialnorm_Minimum : -27 dialnorm_Minimum : -27 dB dialnorm_Maximum : -27 dialnorm_Maximum : -27 dB dialnorm_Count : 570 compr_Average : -4.12 compr_Average : -4.12 dB compr_Minimum : -10.10 compr_Minimum : -10.10 dB compr_Maximum : 0.53 compr_Maximum : 0.53 dB compr_Count : 532 dynrng_Average : 9.43 dynrng_Average : 9.43 dB dynrng_Minimum : -23.55 dynrng_Minimum : -23.55 dB dynrng_Maximum : 22.76 dynrng_Maximum : 22.76 dB dynrng_Count : 570 Menu Count : 100 Count of stream of this kind : 1 Kind of stream : Menu Kind of stream : Menu Stream identifier : 0 Chapters_Pos_Begin : 94 Chapters_Pos_End : 100 00:00:00.000 : en:Chapter 01 00:01:13.960 : en:Chapter 02 00:11:57.440 : en:Chapter 03 00:19:43.600 : en:Chapter 04 00:25:56.560 : en:Chapter 05 00:37:37.640 : en:Chapter 06
The used Vapoursynth script:
# Imports import os import sys import ctypes # Loading Support Files Dllref = ctypes.windll.LoadLibrary("C:/Program Files/Hybrid/64bit/vsfilters/Support/libfftw3f-3.dll") import vapoursynth as vs core = vs.get_core() # Import scripts folder scriptPath = 'C:/Program Files/Hybrid/64bit/vsscripts' sys.path.append(os.path.abspath(scriptPath)) # Loading Plugins core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/GrainFilter/AddGrain/AddGrain.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/NEO_FFT3DFilter/neo-fft3d.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/DenoiseFilter/DFTTest/DFTTest.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/EEDI3.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/ResizeFilter/nnedi3/vsznedi3.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/libmvtools.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/temporalsoften.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/scenechange.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/Support/fmtconv.dll") core.std.LoadPlugin(path="C:/Program Files/Hybrid/64bit/vsfilters/SourceFilter/LSmashSource/vslsmashsource.dll") # Import scripts import havsfunc # source: 'C:\Users\Filip\Desktop\Youtube filmy\serie2\1.mkv' # current color space: YUV420P8, bit depth: 8, resolution: 720x576, fps: 25, color matrix: 470bg, yuv luminance scale: limited, scanorder: top field first # Loading C:\Users\Filip\Desktop\Youtube filmy\serie2\1.mkv using LWLibavSource clip = core.lsmas.LWLibavSource(source="C:/Users/Filip/Desktop/Youtube filmy/serie2/1.mkv", format="YUV420P8", cache=0, prefer_hw=0) # making sure input color matrix is set as 470bg clip = core.resize.Point(clip, matrix_in_s="470bg",range_s="limited") # making sure frame rate is set to 25 clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1) # Setting color range to TV (limited) range. clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1) # setting field order to what QTGMC should assume (top field first) clip = core.std.SetFrameProp(clip=clip, prop="_FieldBased", intval=2) # Deinterlacing using QTGMC clip = havsfunc.QTGMC(Input=clip, Preset="Super Fast", TFF=True) # new fps: 50 # make sure content is preceived as frame based clip = core.std.SetFieldBased(clip, 0) clip = core.fmtc.resample(clip=clip, kernel="lanczos", w=2048, h=1536, interlaced=False, interlacedd=False) # adjusting output color from: YUV420P16 to YUV420P8 for x264Model (i420@8) clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P8, range_s="limited") # set output frame rate to 50.000fps clip = core.std.AssumeFPS(clip=clip, fpsnum=50, fpsden=1) # Output clip.set_output()
looks fine.
So:
a. does the source mkv play fine in MPC-HC, VLC?
b. does the Vapoursynth Preview look fine? In case it doesn't it might be an issue with the decoder, and either turning on the hardware decoding of LWLibavSource (Filtering->Vapoursynth->Misc->Source->Libav hardware decoding mode) might help.
c. if the source plays fine and the preview also has no issues, I'll need a short sample which allows to reproduce the issue.

My guess is that it's not a decoder problem since during passthrough the decoder isn't used.

Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Offline between (including) 29th of June and 5th of July => RockHarz Festival
Reply


Messages In This Thread
RE: mpeg2 mkv to x264 mp4 always heavy artifacts - by Selur - 27.01.2021, 18:47

Forum Jump:


Users browsing this thread: 1 Guest(s)