PDA

View Full Version : play time wrong


desmo8
19th August 2003, 22:54
hallo everybody

i've problem with mpg files. if i try to frameserve a mpg file the media player or cce shows me a wrong play time. for example the movie is 50min, but i'll get only 25min.

this is my script:

-------
LoadPlugin("c:\program files\avisynth 2.5\plugins\mpeg2dec3.dll")
MPEGSource("d:\mymovie.mpg", -2, "raw")
ConvertToYUY2()
LoadPlugin("c:\program files\avisynth 2.5\plugins\simpleresize.dll")
SimpleResize(720,480)
AddAudio()
-------

may somebody is able to help.
thanks for all feedback

greetz
desmo

celtic_druid
19th August 2003, 23:07
Just out of interest, why load MPEG2Dec3.dll and then use MPEGDecoder.dll?

desmo8
19th August 2003, 23:12
okay, i don't need the mpeg2dec3.dll, but the result is still the same :(


greetz
desmo

ffynnon
20th August 2003, 18:06
I had this happen to me when using segmented AVIs. I never discovered a way to fix it.

I created a new AVI (lossless HUFF) with smaller spanning points and it worked for some reason. Not that that really helps you...

Wilbert
20th August 2003, 23:53
Does that also happen when using mpeg2dec3?
If so, could you upload (a part of the) mpg file somewhere?

desmo8
21st August 2003, 12:43
i can do that, but i don't think that my mpeg movie is crap. i've tried with different mpegs and the result is still the same.

i've also notified that if i use:

- DirectShowSource("d:\moviex.mpg",fps=29.97)

instead of "mpegsource" or the "mpeg2dec3" dec, avisynth doesn't create a d2v-file and the playtime is okay. or is dvd2avi that create this d2v-file? but dvd2avi wasn't started... i don't have this problem with mpeg2 streams.

thanks

greetz
desmo

Wilbert
21st August 2003, 13:10
avisynth doesn't create a d2v-file and the playtime is okay. or is dvd2avi that create this d2v-file?
Yes, it's dvd2avi which makes the d2v. Just load the mpeg2 file in dvd2avi (demux audio if necessary) and make a d2v file. Import this in AviSynth:

mpeg2souce("c:\file.d2v")

desmo8
21st August 2003, 18:44
this means, if i load a mpeg1 with "mpegsource" or the "mpeg2dec3.dll plug-in" dvd2avi (just installed, but not running) will nevertheless create a crap d2v file?

greetz
desmo