Log in

View Full Version : MPEGDecoder.dll (Direct VOB/M2v -> AviSynth)


Pages : 1 2 3 4 [5] 6 7 8 9 10

ookzDVD
12th September 2002, 10:35
@Nic,

I just try to use the .lst file :

MPEGSource("c:\Film.lst")

which contains all the .vob files per line.

but it doesn't work. :(

Tomatschek
12th September 2002, 10:57
Hi nic,
=======

thanx for fast reply. I understand you
and respect that you would like to do
a little break. I only would like to know
if the error will be a result of a wrong
version - please could you upload the right
one. You wrote that you finished 1.3 so you
would not have much to do.

thanx (again)

Thomas
one stupid threat i red in an overclocker forum:
"i could'nt test my system for stability because
it crashes before"

Nic
12th September 2002, 12:15
Hmmm...Try this version 1.31:
http://nic.dnsalias.com/MPEGDecoder.zip

.lst should work now...so should "decss".

Cheers,
-Nic

Tomatschek
12th September 2002, 12:30
hi nic,

thanx for the new link + version,
will try it today evening. Now I
have to experiment a little with
the string 0x0ID's to get the main-
movie. I'll post you my results,
I hope this is o.k. for you?

Thomas

an user says about a stable software
- wow very stable
a developer says about the same software
- what it is stable?-so it has not enougth features yet!

Defiler
12th September 2002, 16:28
If I want this input plugin to give me audio as well, do I need to know the exact stream ids? If so, is there a good tool for enumerating the stream ids in an MPEG-1 or MPEG-2 file? (Not a VOB.)

Nic
12th September 2002, 16:36
This plugin is just for MPEG video! :)

I may try & write a AC3Source AviSynth filter, but apart from that, it will never support full MPEG audio...

-Nic

Suzahara
12th September 2002, 16:55
@Defiler
TMPGEnc can give you stream IDs in its MPEG tools. But as Nic says, this tools doesn't support MPEG audio. But you could always demux it with TMPGEnc and use it other ways.

Defiler
12th September 2002, 18:46
Thanks. That was my first impression, but some of the replies in the thread turned my head. Heh.
I was hoping it could do both video and audio.. I'm always happy to condense more of my toolset into Avisynth. No big deal, though.

Guest
12th September 2002, 19:03
@jdobbs

It appears we don't deserve the courtesy of a response from the author. :(

Stabmaster-Arson
12th September 2002, 23:13
NTFS for win9x will let you use NTFS partitions on win98/ME. So if you want to chekc it out goto www.sysinternals.com , they have a free read only version, or registered full read/write version.

Then your files can have any size.

As for avi file limit, all I know is ive captured avi files 30-40 gigs with no problem.

Nic
13th September 2002, 00:43
It appears we don't deserve the courtesy of a response from the author.

Now what inspires you to say that? Why write that particular statement in such a way?

Of course you deserve the courtesy of an answer, but looking thru this thread now I see:
"Any determiniation on the RFF/TFF support issue? Thank you."

Sorry Donald, I honestly had not seen that post, If I had I would have answered immediately (as I always do, when I can, no matter the question)

The Answer is: Unfortunatly not, As I fear the way I am extracted the frames is at fault, or I have simply made an incorrect setting, but unfortunatly due to work commitments & everything else I havent had time to debug it yet fully. :( Thank you very much for your vob (quite an interesting section of Anime :) ) that displays this problem very cleary.

All I had time to do today was re-add .lst support & remove a seeking bug during my lunch break. I hope to get chance to look into the problem more thoroughly this weekend.

Im sorry I did not answer your question, Id seen jdobbs' post & believed he was just giving his support & desire for the issue to be fixed. But to write: "It appears we don't deserve the courtesy of a response from the author.", I find quite rude & I cant imagine myself ever writing such a thing, just because it appeared my question had been ignored...

But to summarise: I Apologise for not replying, I honestly didn't see your post, thank you for your support & the problem will be resolved as quickly as I can.

Anyway I hope this misunderstanding can be put behind us,

-Nic

Guest
13th September 2002, 04:32
Sorry didn't mean to be rude. It was just that you were quickly answering other people's posts and I had taken a good deal of time to diagnose the problem and jdobbs echoed my question and still you didn't respond. It's all right, don't worry about it. I can get by with DVD2AVI/mpeg2dec.

Tomatschek
13th September 2002, 08:39
hi nic...

like I promised I tested your 1.31
and the "deccs" option. But no,luck.
1.30 +1.31 "decss"
1.30 +1.31 "dec"
Always the error accure: invalid command.

But I'm not worry because I tested the
mpegdecoder.dll with my files from HD.
(of course without "decss" - smartripper
did it before). I have now a +22% speed
improvement over mpeg2dec2.dll. Now I use
the saved time to copy the material to disc.

=;-)

Thomas

Nic
13th September 2002, 09:06
@Tomatschek:

Thats really weird? Works fine here...I cant think what the problem would be. Hmmm, could your post your avs file that you tried?

@neuron2:
Sorry if it seemed I had ignored your help & I thank you for your time spent diagnosing the problem.

-Nic

benf2
13th September 2002, 11:01
Well i finally got it to show correctly in link2, but when i hit encode in cce i get unable to open source...is this a link2 problem?

script is very basic:
LoadPlugin("C:\Documents and Settings\Administrator\My Documents\avs gen\bin\MPEGDecoder.dll")
MPEGSource("C:\Documents and Settings\Administrator\Desktop\count of monte cristo\vts_01_([0xE0]_Video_NTSC_720x480)_1.m2v",-2)

If i want to kill the audio with the (killaudio) command do i need to put a zero in brackets(killaudio(0)? or just put kill audio?

Tomatschek
13th September 2002, 11:03
hi nic...

first I would like to say somthing. You wrote in the past
that the "decss" option works like your opendvdplugin.dll
for dvd2avi. I opened my movie (Heat 164min, 7,7Gb) with
this plugin and i seames to be crypted. Green macroblock
everywhere. (But I initialised the movie with WinDVD4 before)
Is there a problem what could also influence the "deccs"
option and cause the error?

now my script...
LoadPlugIn("C:\xxx\xxx\mpegdecoder.dll")
Mpegsource("F:\xxx\video_ts\vts_01_1.vob", -2, "decss")
Crop(0,74,720,408) (german PAL)
BicibicResize(640,272)
...the error "unknown command/argument mpegsource line 2" accure

In other tests i reseive another strange error.
When i change the line above to the following line...
Mpegsource("F:\xxx\video_ts\vts_01_1.vob", "decss")
...then the message "you may not use the command "crop" for
upscaling or stretching the video crop line3"

this sounds spanish for me...
hope somebody hase an idea

bye

Thomas

Wilbert
13th September 2002, 11:18
@benf2,

If i want to kill the audio with the (killaudio) command do i need to put a zero in brackets(killaudio(0)? or just put kill

Just put killaudio. But I thought that MPEGDecoder has no audio support yet, so it doesn't pass the audio.

benf2
13th September 2002, 11:29
That answers the audio question, anybody no why cce says source not found when i hit enocode...could it be a link2 problem?

ookzDVD
13th September 2002, 13:08
@Nic,

Thank you for the update,
now the .lst is working ;)

_but_ I still having trouble, when I try to encode the short
trailer, both with .vob and .lst, the AviSynth seems never stop
to finish. :( and I have to _abort_ to finish it. :(

benf2
13th September 2002, 22:52
Nic said he had success using this dll with link2. Is there something special for this combo to work? I posted my very basic script and i can now get link2 to show correct info and wrap the file, and cce lets me import it, but when i try to encode it i get unable to open source. I tried both m2v files and vob... Has anyone besides Nic gotten it to work? IF so, do u see anything in the script i missed that would cause cce to say unable to open source? :mad:

Again, this is the script:
LoadPlugin("C:\Documents and Settings\Administrator\My Documents\avs gen\bin\MPEGDecoder.dll")
MPEGSource("C:\Documents and Settings\Administrator\Desktop\count of monte cristo\vts_01_([0xE0]_Video_NTSC_720x480)_1.m2v",-2)
:confused: :confused: :confused: :confused: :confused: :confused:

benf2
18th September 2002, 11:22
Is there nobody out there thats is using this dll with link2?

No matter what i do, CCE says cant open source when i try to load the link2 wraper made using the mpegdecoder.dll. I am using the latest version of the dll. It's not like i have a lot of items in the script.

Any ideas? Anybody??

Nic
18th September 2002, 11:30
@ben:
Ben try helping yourself out here. Try lots of different things as I suggested & report back.

i.e.
1) Does the AVS file load ok in VirtualDub. Try playing with it in VDub to make sure it plays, seeks etc without error
2) Get a copy of DebugView. (sysinternals.com) run that at the same time & give me the messages/errors that come out of it
3) remove all other filters other than my source filter before trying
etc. etc.
4) Tell me what your source is. Is it multiple files
5) Post your EXACT avs script.
6) Do not use really long filenames/directories.
7) Tell me what the source is. Is it DVD vob files? Is it multiple files or just one file.

Link2 has worked fine when Ive tried & Ive tried it quite a bit. So something else is causing the problem. Quite probably MPEGDecoder.dll is just causing an error (have you downloaded the latest version (I think 1.31). Ill look into it more later.
(Im redoing my website & the source code to everything ive ever done will be up there so maybe that will encourage others to help out too)

Cheers,
-Nic

benf2
18th September 2002, 11:51
Thanks Nic for the quick reply...Yes i am using the latest dll.

Script is very basic...no filters!!

LoadPlugin("C:\Documents and Settings\Administrator\My Documents\avs gen\bin\MPEGDecoder.dll")
MPEGSource("C:\Documents and Settings\Administrator\Desktop\count of monte cristo\vts_01_([0xE0]_Video_NTSC_720x480)_1.m2v",-2)

I have also tried moving the dll and the video to C:\ to cut down on the path length, but still same result... I did resolve the wrong time and frame length issue by using the -2. But now i get the stubborn unable to open source in cce.... It loads into cce ok...can make my changes, but when try to start the ecoding proc..it says unable to open source. I aslo tried doing one vob file...same result. I tried reinstalling link2, but prob is still there....I still think it might be a link2 issue, but not sure...u say urs works ok.

benf2
18th September 2002, 12:05
For the hell of it i loaded a movie the old way using mpeg2dec and wrapped using link2 and cce produced same error, but when i used a d2v...and vfapi wrapper into cce it worked.

SILICON
20th September 2002, 12:44
I silly idea fo NIC:

I know very little abour MPEG2DEC. But I know that the imagen is codec in macroblocks.

Often we decoded the MPEG2 and after crop the frame. (i.e the black borders in 2.35:1 aspectratio)

If send the crop values to mpegdecoder, then the mpegdecoder don't need decode the blocks in the crop parts. If less decodec block them less procees time need. żok?

I sugess that test the macroblock place before decode it. If the position is out of the visible window (plus the highest estimation motion vectors) then don´t decode it and send a black frame.

żIs this a stupid idea?

Note: Sorry by my bad english.

int 21h
20th September 2002, 13:11
Originally posted by benf2
Thanks Nic for the quick reply...Yes i am using the latest dll.

Script is very basic...no filters!!

LoadPlugin("C:\Documents and Settings\Administrator\My Documents\avs gen\bin\MPEGDecoder.dll")
MPEGSource("C:\Documents and Settings\Administrator\Desktop\count of monte cristo\vts_01_([0xE0]_Video_NTSC_720x480)_1.m2v",-2)

I have also tried moving the dll and the video to C:\ to cut down on the path length, but still same result... I did resolve the wrong time and frame length issue by using the -2. But now i get the stubborn unable to open source in cce.... It loads into cce ok...can make my changes, but when try to start the ecoding proc..it says unable to open source. I aslo tried doing one vob file...same result. I tried reinstalling link2, but prob is still there....I still think it might be a link2 issue, but not sure...u say urs works ok.

I think you forgot the Resample Audio line.

benf2
20th September 2002, 13:40
Somebody else sent me a reply stating this dll doesnt support audio.
Does it? I dont know since i cant get it to work :(

Actually, the m2v file is video only, but the vob i tried was a combo(video/audio)... but nothing. I actually just want to pass video along to CCE and mux the audio in Maestro later.

I have to believe that the problem is with Link2, cause i see on videotools.net forum others have had similar problem and not using this dll. Unfortunately i cant get a reply back from Edwin who designed link2.

The reason i believe its link2 is that if i use the old method of mpg2dec it still wont work with link2, but if i do mpg2dec with vfapi it works fine. The only thing different is the link2. So, now i am reinstalling the OS and will try again tonight. Oh yeah, i did the obvious by cking to make sure the wrapper codec was installed and it was. Maybe link2 doesnt like win2k, but i tried using the compatibiliaty mode of nt and win98 and still no luck. I will see how win2k server does...i had win2k prof. before.

sh0dan
20th September 2002, 15:29
You can add audio like this:

LoadPlugin("MPEGDecoder.dll")
MPEGSource("*.m2v",-2)
bc=BlankClip()
audiodub(bc)
resampleaudio(44100)

vidiot
20th September 2002, 15:37
@ benf:
I think int 21h mean you should add the "resample audio" line to
your script.
CCE sometimes need that (especially on older athlons/durons).;)

benf2
20th September 2002, 16:15
Not sure why i would need to add resample audio if the stream is a m2v file(which is video only). And if i was doing a vob file i was told i could add killaudio, is this correct? Is there any special syntax for killaudio(on a line by itself?)?

Are any of you using link2?

int 21h
20th September 2002, 16:22
Yea in CCE 2.5 you definitely need resampleaudio(44100), even if you dont have any audio in the file, you still have to put that.

Just add that to the last line in your avs and try it.

sh0dan
20th September 2002, 16:23
killaudio() on a line for itself:

killaudio()

Sorry - couldn't resist! :sly:

Anyway - you have to use audio at 44100hz for CCE 2.50 to work (or at least I have).

benf2
20th September 2002, 16:28
why do i need the empty brackets after killaudio?

ps i am frameserving to 2.64cce

MaTTeR
20th September 2002, 16:30
AFAIK the empty brackets are needed or you will see a speed decrease during the encode. Try it with or without and you'll see;)

sh0dan
20th September 2002, 16:45
I think the bracething is just a rumor - I always use them anyway.

Belgabor
20th September 2002, 21:39
Originally posted by sh0dan
I think the bracething is just a rumor - I always use them anyway.

Iirc neuron2 broght this up and i trust him enough to think it isn't a rumor (or at least wasn't at that time). Perhaps someone of the core developers should have a look at this issue?

Cheers
Belgabor

MaTTeR
20th September 2002, 21:53
hrm..I thought I even remember reading about the () in documentation. No?

Acaila
20th September 2002, 22:24
That's because it's in Decomb's documentation :)

mmgrover
20th September 2002, 22:44
Where can one get the Source Code?


mike

bugs7
21st September 2002, 00:23
I try MPEGDecoder.
It's crash or i had this avisynth message "avisynth caught acces violation at 0x0102245f".

I try with:
- avisynth 2.04 and 2.05
- MPEGDecoder 1.3 and 1.31

my simple script:

Loadplugin("D:\avsPlug\MPEGDecoder1.3\MPEGDecoder.dll")
Loadplugin("D:\avsPlug\SimpleResize.dll")
MPEGSource("F:\TS2\VTS_04_PGC_01_1.M2V",-2)

and i'try too:
- MPEGSource("F:\TS2\VTS_04_PGC_01_1.M2V",300) (only the first 300 frame for test)
- MPEGSource("F:\TS2\VTS_04_PGC_01_1.M2V",0)
- MPEGSource("F:\TS2\VTS_04_PGC_01_1.M2V")

Nothing work :(

UGAthecat
21st September 2002, 01:27
I was about to post about the same thing as what bugs is running into last night, but it was about 5hrs past bedtime and I was too tired to post coherently.
anyway, I tried basically the same stuff as bugs, except I have more filters loaded (but not really used).
I'm at work so I don't have the script, but as I said, it is basically the same as bugs7's, used with avisynth 2.04 & 2.05.
The only thing I could think of was maybe there is a non-integer SSE instruction horking things, as I have a regular athlon (non-xp), or just a conflict somewhere. I'll post script later if needed.

bugs7
21st September 2002, 10:01
Originally posted by UGAthecat

..
The only thing I could think of was maybe there is a non-integer SSE instruction horking things, as I have a regular athlon (non-xp), or just a conflict somewhere. I'll post script later if needed.

I have athlon TB 1.4Hhz, with no SEE too.

other infos: w2k sp3

Nic
21st September 2002, 13:01
I have a feeling this is caused by my weird optimisations in the Intel Compiler....hmmm. Ill look into it on Monday :)

Cheers,
-Nic

gizmau
21st September 2002, 13:50
@nic

very nice work! mpegdecoder IS fast, giving up to 20% more speed. :-)

unfortunatelly, the increase is partly a result of using 'only' 32bit-idct and therefore getting a drop in quality. i would like to get ieee-1180 as well, even if the quality improvements are only very seldom to see. on dvd there is enough room to fill up, so why not use it for maximum theoretical quality?
would you implement a idct-selection, please?

next is the inacuracy in frame parsing. there are allways problems when trying to encode over the 'dvd2avi-reported-frames'-boundary with cc, tmpg or vd. as a workaround i simply set the encoding range by hand. simple but effective.
it would be nice to use a .d2v as input-argument, because the framecount seems to work quiet good for years. and there would be no need to edit the path of the vobs in the .avs anymore, too. what do you think about?

Nic
21st September 2002, 15:54
You think you can notice a difference between Peter's iDCT & the reference? Id be very surprised if thats the case, I can put in reference DCT quality too if you want, but I think you'd be wasting your time.

I know, I was hoping not to have to put in d2v parsing in, but I will do :)
(got to get round the tff/rff problems first though)

-Nic

ps
& the speed increase isn't due to the iDCT as it uses the same iDCT as most people use with DVD2AVI

benf2
21st September 2002, 15:59
Hi,
you mention earlier u tested with success...mpegdecoder.dll with link2. What os are u running. I just reformatted my win2k prof and installed a fresh copy of win2k server and still get error in cce unable to open source. I have been waiting a week for Edwin..(videotools.net) to reply..but nothing. What is another option besides link2 to server to cce 2.64?

Thanks
Ben

gizmau
21st September 2002, 16:32
sure, i can - everybody can, even easily, see the difference! its just a matter of material used...

in many films are scenes with a plain background (i.e. a roomwall) with a very slight colorprocess as brown to a lighter/darker brown.

on 'bad and/or cheap produced or encoed film' (as i call them) is allways such a scene, where the 'dither- levels' are visible as barks with noisy overlapping (sorry for the bad description!). with 32bit this noise is more visible than with 1180. 'the pledge' is a good example for this, when i remember right. i will make a screenshot of the next film with this behaviour, when i not forget it.

thanks in advance for implementing the features!

MaTTeR
21st September 2002, 16:41
@gizmau

I've never been able to see the difference between 32 & 64bit iDCT, well except the speed but nothing visual.

If you could provide a screenshot it would be most helpful to know what your seeing. Maybe a before and after shot? Thx

bugs7
21st September 2002, 17:54
Originally posted by Nic
I have a feeling this is caused by my weird optimisations in the Intel Compiler....hmmm. Ill look into it on Monday :)

Cheers,
-Nic

Thanks ;)

UGAthecat
21st September 2002, 21:00
@nic
I think you may be right about the optimisations, I tried your latest build of xvid on your site (10/9/02) earlier today and it crashes virtualdub when I use it, and if it was made with the same optimisations that would give more proof to your theory.
I switched to an earlier build and that one worked ok, so did 2 recent builds from koepi.
I'll try them both on my Celeron (the PII based version) and see how that goes to give you more info.