Log in

View Full Version : mpeg2dec for v2.5


WarpEnterprises
7th January 2003, 08:48
mainly @dividee: could you please re-compile your mpeg2dec for v2.5 as it seems to me as one of the best-tested around and therefor quite helpful for switching to v2.5 (as reference and 'working for sure')?
(of course only with YUY2-output)

Thanks.

Guest
7th January 2003, 15:13
Here you go:

frank
7th January 2003, 19:24
:( Convolution3D, YUY2 version, crashes.
Should I use ConvertToYV12 and Convolution3D YV12?

sh0dan
7th January 2003, 19:28
"Convolution3D, YUY2 version" is an 2.0 plugin, and cannot be used in 2.5. So, yes, do the convertion stuff! :)

Guest
7th January 2003, 19:42
I'm working on a quick hack to make dividee's version deliver YV12.

Assault
7th January 2003, 19:42
@ Frank
I think you don't have to do the conversion because Convolution3DYV12 works in both YUY2 and YV12 colourspace. Please correct me if I'm wrong.

Regards
Assault

EDIT: Ok I was wrong. Convolution3dYV12 works only in YV12 colourspace. :rolleyes: :rolleyes:

Dali Lama
7th January 2003, 20:20
Originally posted by neuron2
I'm working on a quick hack to make dividee's version deliver YV12.

neuron2 is there any reason why you plan to do this? Is there something wrong with MarcFD's MPEG2Dec3? I did read the thread you started about it, but I thought the issues were fixed?

Bye,

Dali

WarpEnterprises
7th January 2003, 21:22
my main reason why I like dividee's version is the MISSING of options.
IMO it should take the mpeg and decode it as authentic as possible.

sh0dan
7th January 2003, 21:39
Originally posted by neuron2
Here you go:

*cough* AvisynthPluginInit *cough* :D

sh0dan
7th January 2003, 21:43
Originally posted by WarpEnterprises
my main reason why I like dividee's version is the MISSING of options.
IMO it should take the mpeg and decode it as authentic as possible.

I don't think it does anything to your MPEG's unless you specify it.

But, I think the problem is rather (lack of) documentation. I see there are many options. 1) I don't understand half of what they do. 2) The syntax is ... well ... let's say ... alternative. 3) Half of the things you must know about it, you have to dig through several large threads to figure out.

cweb
7th January 2003, 21:44
Actually the issues have not been fixed. I am still doing some
more testing, this time I have installed the latest avisynth 2.5
alpha dll. I did an avisynth2 encode of an MPEG2 clip fixed with Pvastrumento.
Curiously this one gave me no problems and I converted this to KVCD
(an MPEG1 encoding using Tmpgenc) and XviD. I will keep testing.

Originally posted by Dali Lama
neuron2 is there any reason why you plan to do this? Is there something wrong with MarcFD's MPEG2Dec3? I did read the thread you started about it, but I thought the issues were fixed?

Bye,

Dali

Guest
7th January 2003, 22:28
Originally posted by sh0dan
*cough* AvisynthPluginInit *cough* :D Now the great sh0dan has made me feel silly!

Will do, boss.

Guest
7th January 2003, 22:34
Originally posted by Dali Lama
neuron2 is there any reason why you plan to do this? Is there something wrong with MarcFD's MPEG2Dec3? I did read the thread you started about it, but I thought the issues were fixed?
I believe some are still reporting problems with mpeg2dec3. In any case, the change will be very slight to mpeg2dec to make it deliver YV12 (nothing like the massive overhaul that was done for mpeg2dec3). This will allow us to have a "reference" version that is well-tested and reliable. I want it to help me track down some strange problems I am having. Didn't see any harm in making it available.

Guest
10th January 2003, 00:17
It turns out that the reported problems with mpeg2dec3_094 were due to other issues and not bugs in the DLL. Therefore, I have put on the back burner a YV12 version of dividee's filter.

However, I have rebuilt the YUY2 version with AvisynthPluginInit2() as requested by sh0dan. I have attached it.

MaTTeR
10th January 2003, 00:34
Donald,

The problems your speaking of were actually an issue with AVS 2.5 or different filters? I haven't heard MarcFD mention anything about it yet so was just curious.

Guest
10th January 2003, 00:39
Originally posted by MaTTeR
The problems your speaking of were actually an issue with AVS 2.5 or different filters? I haven't heard MarcFD mention anything about it yet so was just curious. The two guys that reported problems have both now attributed them to other issues in their respective threads. I have not experienced any problems with MarcFD's version 094, so the urgency appears to be no longer there. Anyway, MarcFD is fully capable of fixing any bugs that might come to light.

CruNcher
10th January 2003, 08:59
"Repeating Frame" bug is not occouring in this Version as described in this thread http://forum.doom9.org/showthread.php?s=&threadid=39941&pagenumber=4

but its slower :(

HarryM
10th January 2003, 10:40
Mpeg2Dec3 from Marc is buggy??? I use v0.94 still.
This bug is only 'field decomb' related or 'frame - non interlaced' too? I dont use interlaced material.:cool:

Marc FD
10th January 2003, 17:26
hi.

compile an avs 2.5 mpeg2dec version is not a bad idea, i did it myself two months ago, didn't tought someone would found it usefull ^^.

about YV12, it's the bigger change in MPEG2Dec3, so i don't think you can add it so easily IMHO. i think the minor bug is related to my conversion btw.

Guest
11th January 2003, 02:33
Originally posted by Marc FD
i think the minor bug is related to my conversion btw. Marc, what is the minor bug you refer to? A list of the known bugs in 094 would be useful. Thank you.

Marc FD
11th January 2003, 12:14
well, the repeating frame bug some user encoutered on rare streams.
that's the only know bug of MPEG2Dec3 ^^.

Wilbert
15th January 2003, 10:48
I have put on the back burner a YV12 version of dividee's filter.
It would be very nice if you could make a YV12 version. Last evening I tried to encode Gladiator with mpeg2dec3 v0.94 but it crashed two times in the second pass (VirtualdubMod 1.4.13.1, Win2000, Athlon XP, Koepi's built 12-03-02). I had those problems in the past and the only version that is working properly is v0.93.

trbarry
16th January 2003, 17:27
I have put on the back burner a YV12 version of dividee's filter.

Donald -

Actually I'd like a YV12 version of that too, or at least of MPEG2DEC2 (very similar) if you had time. Marc's version has been restructured somewhat and is harder for me to pilfer the needed code. ;) But there are still a few optimization and enhancements I'd like to make someday. I just don't have the time right now.

- Tom

cweb
17th January 2003, 10:01
"Rare" streams sounds funny to me :)

Seriously though, it did happen to me on a BBC Prime (satellite) stream. I hope the BBC isn't 'rare' :)

Odd as it seems, it is not happening often to me. So when it happens
I switch to the other mpeg2dec compiled for avisynth 2.5 (and convert to YV12). In one case it seems that the recording was indeed corrupted
and mpeg2dec gave an error too. I did fix it with Pvastrumento and the
result could be converted also with your mpeg2dec3. Funny how this never happened to me before.

Thanks anyway for investigating the bug. I hope it gets killed.

Originally posted by Marc FD
well, the repeating frame bug some user encoutered on rare streams.
that's the only know bug of MPEG2Dec3 ^^.

Guest
18th February 2003, 14:50
Originally posted by exorcism
okay maybe I'm missin somethin here but this mpeg2dec doesn't work for me under avisynth 2.5 In what way does it not work for you? We're not mind readers. Make sure you get the version linked on this thread.

gigah72
19th February 2003, 15:31
hi,

i have a problem with mpeg2dec for avisynth 2.5. i use the version from 07.01.2003.
if use this function:

function rmPal(clip c) {
c = c.AssumeFrameBased.SeparateFields.AssumeFrameBased
MergeChroma( c, c.BlendFields(), 1 )
AssumeFieldBased()
return Weave()
}

on a capture in yuy2 and no conversation to yv12, i get an access violation. if i do use converttoyv12 and convert(back)toyuy2 instead a crash the entire clip is "shifted" to green.

can someone help ?

g.

Guest
19th February 2003, 15:38
Please post the full script.

gigah72
20th February 2003, 03:02
yes, sorry. better to see the complete script:

---BEGINN
LoadPlugin("d:\avs-dll\mpeg2dec.dll")
AVISource("E:\pvcrwork\capture.avi",false)
ConvertToYV12()
#here some stuff
rmPal()
#here, too
#Trim(160480,0).FadeIn(25).Trim(0,127480).FadeOut(50)
ConvertToYUY2()
#avsmon monitorfilter, to see what's happening
function rmPal(clip c) {
c = c.AssumeFrameBased.SeparateFields.AssumeFrameBased
MergeChroma( c, c.BlendFields(), 1 )
AssumeFieldBased()
return Weave()
}
---END

everything is green, and without the convert.. the crash happens.

gigah72

Guest
20th February 2003, 03:37
MergeChroma() is apparently broken in Avisynth 2.5. Please inform sh0dan.

purephase
20th February 2003, 03:53
LoadPlugin("C:\Plugins\MPEG2DEC.dll")
LoadPlugin("C:\Plugins\Convolution3DYV12.dll")

Using both (of which mpeg2dec is latest for avisynth 2.5, same with convolution) gives me green screens in vdubmod (latest prerelease, and the latest stable).

I've tried MPEG2DEC3, and get the same results.

I know this has to be working for other people, so I'm not sure what I'm doing wrong here. I've scaled down the avs file so it only does:

BicubicResize(576,320,0,0.75)
Convolution3d(preset="movieHQ")

Nothing else. Simple, I know. But I can't figure out why this isn't working.

Guest
20th February 2003, 04:09
I've never used Convolution3DYV12(), but if it supports only YV12, you can't use it with mpeg2dec.dll because the latter delivers only YUY2. You can try this:

LoadPlugin("C:\Plugins\MPEG2DEC.dll")
LoadPlugin("C:\Plugins\Convolution3DYV12.dll")
mpeg2source(...)
ConvertToYV12()
BicubicResize(576,320,0,0.75)
Convolution3d(preset="movieHQ")

But why not use mpeg2dec3, which delivers YV12?

purephase
20th February 2003, 04:29
I've tried both, with the same results.

Even using mpeg2dec without convolution results in the same problem.

I tried the convert with mpeg2dec, which resulting in the same green input. I've tried different versions of vdubmod and re-installing avisynth 25 a number of times. This is really weird.

Thanks though.

trbarry
20th February 2003, 18:39
If you happen to be using my version of DVD2AVI make sure you are not specifying crop or resize when creating the d2v file. After opening the vobs be sure to select Crop&Resize and click Reset. This can confuse some version of MPEG2DEC.

Also, if you are on a P4 using various version of MPEG2DEC you might try editing the .d2v file and setting IDCT=2. IDCT=5 can also confuse some version of MPEG2DEC.

- Tom

Joe Daring
20th February 2003, 19:29
Hi ALL

@Gigah72 and Neuron2

You know I'm using the same rmPAL function you are talking about in my script... you posted in my LONG thread some days ago ;-)

I just want to tell you that I'm using AVISynth 2.5 and EXACTLY the same MPEG2DEC.DLL you are using, and the rmPAL function in my script works fine: it does the job it is meant to do.

Only difference is that I call the function AFTER I define it... don't know if it does matter, anyway...

As I explained in my post, while asking for help with tape capture's processing, I actually don't know EXACTLY how it works, even if I can imagine the logic behind it, and I just wished to know if it (the rmPAL function) was doing anything bad to my video file and, just in case it does, if there was another method to do the same function.

I had a suggestion to just try Telecide() with or without the "Blend" function, instead of this rmPAL trick, but it didn't work for the specific PAL artifact I'm (and I believe you are...) talking about...

@Neuron2... I have found some good pages about the interlace issues, and I'm starting to learn something, finally ;-)

...thank you for stimulating me a bit more!

BTW... I tryed Telecide() and FieldDeinterlace() with my captures, and with both of them I got rid of the interlace, but end-up with lots of ghosting... TomsMoComp did a good job, instead... no interlace and no ghosts... just, I still haven't figured wether the (1,5,1) or the (0,5,1) setting is better... if there is any difference at all...

Uh Oh! Post is becoming long again... better stop NOW! :-)

Regards everybody!

Joe Daring
Italy

Guest
20th February 2003, 20:38
Originally posted by Joe Daring
BTW... I tryed Telecide() and FieldDeinterlace() with my captures, and with both of them I got rid of the interlace, but end-up with lots of ghostingUse blend=false to avoid the ghosting.

kilg0r3
23rd February 2003, 17:59
Originally posted by neuron2
I've never used Convolution3DYV12()

:confused: what do You use to filtering grainy movie?

Guest
23rd February 2003, 18:06
Originally posted by kilg0r3
:confused: what do You use to filtering grainy movie? I have digital satellite; I don't capture "grainy" material. Anyway, unless it was really bad I would leave it as is anyway. Overly smoothed material looks artificial to me.

deXtoRious
23rd February 2003, 20:46
I'm sorry for asking such a dumb question, but this is the first time when I'm using Avisynth directly (without any GUI). I intend to encode a vob file in WM9 using Nic's encoder. My script is:

LoadPlugin("MPEG2Dec3.dll")
MPEG2Source("f:\video\dvd\test.d2v")
WavSource("f:\video\dvd\test.wav")

I get this: "Cannot load plugin MPEG2Dec3.dll". What am I doing wrong?

Assault
23rd February 2003, 22:07
@deXtoRious
you forgot the path for mpeg2dec3. ;) Your script should look like this:
LoadPlugin("f:\...\mpeg2dec3.dll")
MPEG2Source("f:\video\dvd\test.d2v")
WavSource("f:\video\dvd\test.wav")

Regards
Assault

deXtoRious
24th February 2003, 22:39
Thanx, but now I have a new error in the same script. It shows:
Unrecognized exception!, Line 2 (it's the line with the MPEG2SOURCE command)...

Assault
24th February 2003, 22:55
Hmm could you please post your complete script? I think it should consist of more than these three lines or am I wrong?

Wilbert
25th February 2003, 10:02
Is your problem Q2.9 (http://www.avisynth.org/index.php?page=AviSynthFaq)?

deXtoRious
27th February 2003, 18:59
No, I'm already using DVD2AVI 1.76 and I'm using mpeg2dec3.dll (not mpeg2dec.dll).

Actually, those three lines are the whole "script". I just need it to use Nic's WM9 encoder.

RMCF
27th February 2003, 22:44
I am exactly with the same problem. Basically any mpeg decoder which does Yuv12 gives me that error as well. Mpeg2dec.dll works as normal.

Regards

deXtoRious
27th February 2003, 23:02
At least I know that I'm not doing something VERY stupid ;) I'll try Nic's direct MPEG2 decoder plugin today, maybe that'll help :rolleyes:

RMCF
27th February 2003, 23:15
Let me know if it works for you, because it does not for me.

Yv12 is harder to come by than I thought :)

deXtoRious
2nd March 2003, 22:38
Sorry for not replying so long, my computer went down. I'll probably try it until tommorrow...