View Full Version : PD2V - A wrapper for dealing with scan, fields, VFR/CFR on MPEG sources
PRAGMA
13th April 2020, 07:03
Released as part of pvsfunc (https://github.com/rlaphoenix/pvsfunc)
EDIT: This project has been reworked solely for MPEG-1/2 videos, and renamed to PD2V.
PD2V (class) is a convenience wrapper for loading MPEG-1/2 sources and dealing with scan, fields, deinterlacing, variable FPS, and such. Its unique feature is it can handle mixed scan-type videos. It will always return a progressive video, with the ability to convert VFR (variable frame rate) to 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.
Requirements:
- Python (http://python.org) 3 (I recommend >= 3.8)
- DGIndex (http://rationalqm.us/dgmpgdec/dgmpgdec.html) v1.5.8 or newer (please do not use D2VWitch e.t.c)
- MKVToolNix (https://mkvtoolnix.download/) if you plan on using contained MPEG sources
- pvsfunc (https://github.com/rlaphoenix/pvsfunc) 3.1.1 or newer
- Optionally havsfunc (https://github.com/HomeOfVapourSynthEvolution/havsfunc) for QTGMC (available on vsrepo for windows)
sl1pkn07
14th April 2020, 02:32
windows centric is not cool
PRAGMA
14th April 2020, 04:36
windows centric is not cool
? I actually use Linux lol
This is cross-os :)
Edit:
Fun fact, I use your amazing arch linux AUR repo's for VapourSynth stuff, and I appreciate them!
sl1pkn07
15th April 2020, 13:45
what dgindex you use? through wine? or the modoki port (2010)
PRAGMA
15th April 2020, 17:00
what dgindex you use? through wine? or the modoki port (2010)
Wine v1.5.8
sl1pkn07
15th April 2020, 22:53
thats why i mean is not cool xd
native is love, native is life
greethings and i'm glad you like my AUR (if you found a problem, please slaps me XD)
videoh
15th April 2020, 23:15
Maybe with CPUs so fast now, so that the ASM stuff could be eschewed, DGIndex could be natively ported. It shouldn't be too hard.
PRAGMA
16th April 2020, 09:59
Maybe with CPUs so fast now, so that the ASM stuff could be eschewed, DGIndex could be natively ported. It shouldn't be too hard.
I'm having trouble getting it compiled on Visual Studio 2019, issues with the ASM files compiling causing problems it seems, it can't find NASM, though it can find MASM. Even if I take the BuildConfiguration files from VSNASM, they still have issues being compiled.
I pushed the DGIndex v1.5.8 (official) codebase to my GitHub (https://github.com/rlaPHOENiX/DGIndex) 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.
PRAGMA
16th April 2020, 14:21
thats why i mean is not cool xd
native is love, native is life
greetings and I'm glad you like my AUR (if you found a problem, please slaps me XD)
Btw you can use this port if you wish, just understand the risks of it being inaccurate. D2VWitch I highly recommend to stay away from as it is definitely miles less accurate than DGIndex, way less configurability for my python script end too, so no way to even configure it to be more accurate.
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.
videoh
16th April 2020, 15:24
I'm having trouble getting it compiled on Visual Studio 2019, issues with the ASM files compiling causing problems it seems, it can't find NASM, though it can find MASM. Even if I take the BuildConfiguration files from VSNASM, they still have issues being compiled.
I pushed the DGIndex v1.5.8 (official) codebase to my GitHub (https://github.com/rlaPHOENiX/DGIndex) 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. Looks like you just need NASM. I'd be happy to supply you with NASM or anything else you need. I can even send you a full VS 2019 project that builds fine. Send PM with email address and I'll get you everything right away.
DJATOM
16th April 2020, 15:45
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.
videoh
17th April 2020, 13:05
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.
PRAGMA
17th April 2020, 16:08
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
<3 thanks!!!
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?
videoh
17th April 2020, 16:18
<3 thanks!!!
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? Great idea. I'll have to check on a few things to be sure I'm street legal with re-distributing the assemblers. Maybe should have thought of that before giving up this link. :scared:
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/download/vb60ent/Update/6/W9X2KXP/EN-US/vcpp5.exe
Extract ml.exe and ml.err and place them in the Tools folder.
videoh
18th April 2020, 17:06
Wouldn't 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? Done! My website now links a street legal 2019-buildable source distribution. The Tools directory contains a NASM executable and instructions to download MASM.
http://rationalqm.us/dgmpgdec/DGMPGDec_VS2019.rar
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.