Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
Registered User
Join Date: Jul 2019
Posts: 42
|
PDeinterlace - A wrapper function to handle the fields of an MPEG video file
Released as part of pvsfunc
PDeinterlacer (class) is a convenience wrapper for deinterlacing clips. Its unique feature is it can handle mixed scan-type videos. It will always return a progressive and CFR (constant frame-rate) video. It's similar to a retail DVD player as it deinterlaces only if the frame is marked as interlaced, no metrics or guessing is involved. This is to my knowledge the first efficient way to edit mixed-scan-type video content directly inside VapourSynth without using any other tools other than DGIndex. This completely removes the need for tools like Wibbly & Wobbly. EDIT: Please be aware that I have updated pvsfunc, now most of the PDeinterlacer logic is now in PSourcer instead. This mean's, you need to load your file paths to clips with PSourcer rather than directly. This is because PSourcer applies fixes/proper fps/proper flags e.t.c for videos, especially for videos that are supported by DGIndex/D2V (MPEG-1 and 2). I made this change to allow people to use the fixed clips without having to run it through the deinterlacer Requirements: - DGIndex v1.5.8 (please do not use D2VWitch e.t.c) - Python 3 (I recommend >= 3.7) - pvsfunc >= 3.1.1 (available via pip) - pyd2v >= 1.0.3 (available via pip) - havsfunc (QTGMC) (available on vsrepo for windows) Deinterlacing methods: - core.d2v.Source clips will use the main deinterlacing that I created this for - core.ffms2.Source clips will use a similar deinterlacing but heavily stripped-down (possibly inefficient). It only handles constant frame-rate videos but still supports mixed scan-type (I believe, I have no AVC mixed scan-type to test). There's various options and settings and information on usage can be found at the pvsfunc GitHub page. If you want a base example script, with a couple of extras added in to boost the speed of nothing to something, then feel free to use: https://gist.github.com/rlaPHOENiX/8...c9cdf3369b7a40 Rip tools like Wibbly & Wobbly, and thanks to Donald A. Graft for the amazing DGMpgDec! Last edited by PRAGMA; 9th May 2020 at 13:07. |
![]() |
![]() |
![]() |
#8 | Link | |
Registered User
Join Date: Jul 2019
Posts: 42
|
Quote:
I pushed the DGIndex v1.5.8 (official) codebase to my GitHub as a mirror, with a ported readme in markdown. Feel free to try and upgrade it or make it compilable, the whole community could come together and get a nice port of this going. |
|
![]() |
![]() |
![]() |
#9 | Link | |
Registered User
Join Date: Jul 2019
Posts: 42
|
Quote:
Do note, that the script checks if the D2V was made by `DGIndexProjectFile16` which is v1.5.8 exactly, this is to make sure the script doesn't use outdated D2V files. If the port you want to use has good accuracy, and it's open-source, then link me to the source and download page and I can take a look and add a whitelist to its version magic if its different. |
|
![]() |
![]() |
![]() |
#10 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,384
|
Quote:
Last edited by videoh; 16th April 2020 at 15:46. |
|
![]() |
![]() |
![]() |
#11 | Link |
Registered User
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 311
|
There is also https://github.com/ShiftMediaProject/VSNASM, just plug-in into VS2019 and it should work. At least it worked with VS2017 in the past.
|
![]() |
![]() |
![]() |
#12 | Link |
Useful n00b
Join Date: Jul 2014
Posts: 1,384
|
Here is DGMPGDec built with VS 2019 and including a Tools directory containing the assemblers you need. The project correctly references the Tools directory so things build right out of the box. Enjoy.
http://rationalqm.us/dgmpgdec/DGMPGDec_VS2019.rar EDIT: Temporarily removed from site to check licensing issues for the assemblers. Last edited by videoh; 17th April 2020 at 16:28. |
![]() |
![]() |
![]() |
#13 | Link | |
Registered User
Join Date: Jul 2019
Posts: 42
|
Quote:
Edit: Wouldnt it be a good idea to replace `dgmpgdec158.zip` with this one since its ultimately the same version and less people will run into compiling issues? |
|
![]() |
![]() |
![]() |
#14 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,384
|
Quote:
![]() EDIT: Temporarily removed the link to get street legal. OK, I can redistribute nasm as long as I include the license file. I cannot redistribute masm. Fortunately, you can download MASM 6.15 directly from Microsoft: http://download.microsoft.com/downlo...N-US/vcpp5.exe Extract ml.exe and ml.err and place them in the Tools folder. Last edited by videoh; 18th April 2020 at 17:08. |
|
![]() |
![]() |
![]() |
#15 | Link | |
Useful n00b
Join Date: Jul 2014
Posts: 1,384
|
Quote:
http://rationalqm.us/dgmpgdec/DGMPGDec_VS2019.rar |
|
![]() |
![]() |
![]() |
Tags |
d2v, deinterlace, dvd, mpeg, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|