Avisynth problem using the MPEGSource command

The old Video Software Help forum, left visible as an archive.
Locked
User avatar
hawrbarmsn
Joined: Sat Jul 26, 2003 5:00 pm
Org Profile

Avisynth problem using the MPEGSource command

Post by hawrbarmsn » Fri Dec 05, 2003 2:19 pm

Okay, here's the deal:

I have an mpeg2-file, which I want to be able to open in VirtualDub.
I used an avisynth script for this, since I've had good experiences with that before (I'm using the avisynth that came with amvapp).
Since I just wanted to open the file, my script consisted of a single line:

MPEG2Source("C:\directory\file.mpg")

However, trying to load it into vdub resulted in this error:

Avisynth open failure:
MPEG2Source: couldn't open file
(C:\directory\avs.avs, line 1)

Using the DirectShowSource command was no success either.
It shouldn't be a problem with the file itself, since it plays just fine in my regular media player. I'm somewhat new at working with avisynth, so I'm not entirely sure what the cause of this problem could be. :?

If anyone know what I did wrong, it would really help me out. Thanks in advance.
Just one out of six billion people in one big statistic ...
My profile
Well, so much for flashy signatures ... ^_^

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Dec 05, 2003 3:08 pm

Don't know why DirectShowSource won't work, but VirtualDub can parse complete MPEG1 streams natively. Just load the MPEG file into Vdub. Unless you have a MPEG2 stream named as a .mpg file, which is poor use of extension convetions <_<>_>.

Also MPEG2Source is for MPEG2 streams, so if this is an MPEG1 stream, it would obviously not work.

User avatar
hawrbarmsn
Joined: Sat Jul 26, 2003 5:00 pm
Org Profile

Post by hawrbarmsn » Fri Dec 05, 2003 4:00 pm

Yes, I know that vdub can parse mpeg1-files. However, this IS an mpeg2 stream, regardless of whatever bad use of extension it may have (I didn't name the thing).

My question was, and still is, if anyone knows what I need to do in order to get the darn avisynth script to work. Does anyone know?
Just one out of six billion people in one big statistic ...
My profile
Well, so much for flashy signatures ... ^_^

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Dec 05, 2003 4:06 pm

Can MPEG2Source handle MPEG2 streams direct? I am not sure, I don't have a mpeg2 stream to test it out with... But I doubt it...


You might want to slap the mpeg2 file in DVD2AVI and output a D2V file, since that's usually what MPEG2Source reads.


Or use VirtualDubMod...


-Klinky

User avatar
hawrbarmsn
Joined: Sat Jul 26, 2003 5:00 pm
Org Profile

Post by hawrbarmsn » Fri Dec 05, 2003 4:24 pm

Yeah, tried that too. That screws up the proportions of the file, though :/
Just one out of six billion people in one big statistic ...
My profile
Well, so much for flashy signatures ... ^_^

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Fri Dec 05, 2003 4:29 pm

Well senor, many times MPEG2 is used in a format tha adheres to a standard. Such as an SVCD would be 480x480, DVD 720x480. There are flags put in the MPEG2 file that tell the player what the original aspect ratio was and it resizes it back to the proper ratio.

DVD2AVI doesn't follow this flag, you can save the project and then use AVS to resize it using the BiCubicResize command. :|

User avatar
hawrbarmsn
Joined: Sat Jul 26, 2003 5:00 pm
Org Profile

Post by hawrbarmsn » Fri Dec 05, 2003 5:17 pm

I considered doing that, but I would have liked to avoid any kind of resizing. Ah well, this'll have to do ...
Thanks for your help. :)
Just one out of six billion people in one big statistic ...
My profile
Well, so much for flashy signatures ... ^_^

User avatar
Kaji01
Joined: Fri Feb 07, 2003 11:29 am
Location: San Jose, CA
Contact:
Org Profile

Post by Kaji01 » Fri Dec 05, 2003 6:25 pm

I was having this problem a while back. I contacted AD on AIM, and he suggested finding and downloading the Donald Graft (DG) modifications for DVD2AVI and MPEG2Dec. That solved most of my problems since then, and what few I have had I have been able to solve just by resaving the project in DVD2AVI. Here's the link to download them: http://neuron2.net/fixd2v/decodefix.html

AD, If you see this, think it might be a good idea to substitute these for the existing versions in the App?

Locked

Return to “Video Software Help Archive”