digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: How do you load an mpeg1 clip? (http://www.digitalfaq.com/archives/avisynth/2216-avisynth-how-load.html)

rendalunit 01-18-2003 04:02 PM

how do you load an mpeg1 clip?
 
i want to re-encode an mpeg1 video- how do i load it with Avisynth?

I tried DirectShowSource(clip) but I got an exception in TMPGEnc

thanks,
ren

SansGrip 01-18-2003 04:42 PM

Re: how do you load an mpeg1 clip?
 
Quote:

Originally Posted by rendalunit
i want to re-encode an mpeg1 video- how do i load it with Avisynth?

Two options: either fast recompress as HuffYUV (which takes scads and scads of disc space) or use the MPEGDecoder plugin. I can't remember where I got it from, but if you do a search on Doom9 for posts by a guy called Nic you should find a link to his web site in his sig. I think ;).

rendalunit 01-18-2003 04:58 PM

oh cool- I'll look for the MPEGDecoder plugin (Nic's the author of XviD right?). I can't load the mpeg1 into Vdub because I get an unexpected end of file error.

thanks,
ren

SansGrip 01-18-2003 05:48 PM

Quote:

Originally Posted by rendalunit
Nic's the author of XviD right?

Well, I know he does his own builds of it. I think he's on the development team. Not sure ;).

rendalunit 01-18-2003 06:32 PM

MPEGDecoder works great!! It created a .d2v file with my mpeg-1 8) I really like how you can load .vobs directly too with a script similar to this:
Code:

LoadPlugin("C:\encoding\MPEGDecoder.dll")
LoadPlugin("C:\encoding\FluxSmooth.dll")
LoadPlugin("C:\encoding\BlockBuster.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\LegalClip.dll")
LoadPlugin("C:\encoding\sampler.dll")

MPEGSource("D:\MOHICAN\VIDEO_TS\VTS_04.01.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.02.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.03.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.04.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.05.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.06.VOB",0,"ff")
LegalClip()
FluxSmooth()
BlockBuster(method="noise",variance=0.5)
GripCrop(width=528,height=480,overscan=1)
GripSize()
GripBorders()
LegalClip()
Sampler(length=24)

so no need for DVD2AVI or FitCD
:lol:

SansGrip 01-18-2003 06:45 PM

Quote:

Originally Posted by rendalunit
I really like how you can load .vobs directly

It looks very promising. I'm waiting for all the bugs to be ironed out first ;).

kwag 01-18-2003 07:48 PM

Quote:

Originally Posted by rendalunit
MPEGDecoder works great!! It created a .d2v file with my mpeg-1 8) I really like how you can load .vobs directly too with a script similar to this:
Code:

LoadPlugin("C:\encoding\MPEGDecoder.dll")
LoadPlugin("C:\encoding\FluxSmooth.dll")
LoadPlugin("C:\encoding\BlockBuster.dll")
LoadPlugin("C:\encoding\GripFit_preview.dll")
LoadPlugin("C:\encoding\LegalClip.dll")
LoadPlugin("C:\encoding\sampler.dll")

MPEGSource("D:\MOHICAN\VIDEO_TS\VTS_04.01.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.02.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.03.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.04.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.05.VOB+D:\MOHICAN\VIDEO_TS\VTS_04.06.VOB",0,"ff")
LegalClip()
FluxSmooth()
BlockBuster(method="noise",variance=0.5)
GripCrop(width=528,height=480,overscan=1)
GripSize()
GripBorders()
LegalClip()
Sampler(length=24)

so no need for DVD2AVI or FitCD
:lol:

How do you get the Inverse Telecine ( drop rff ) there 8O. If you read VOBs directly, the frame rate would be read as 29.97fps and not as 23.976, or am I wrong :?:

-kwag

rendalunit 01-18-2003 07:56 PM

hi Kwag,

The third parameter is "ff" - force film :D

this is from the readme
Quote:

MPEGSource("e:\rip\VTs_01_1.vob+e:\rip\VTs_01_2.vo b+e:\rip\VTs_01_3.vob)
Here the first thing that MPEGDecoder.dll will do is to check for a e:\rip\VTs_01_1.d2v file.
if a file with that name exists it will load that and assume that the d2v is for the three files.

if e:\rip\VTs_01_1.d2v does not exist, it will be created and then loaded automatically.

For D2V files created automatically by MPEGDecoder.dll it does not know if force film should be turned on.
If it should then put "ff" as the third parameter
i.e.
MPEGSource("e:\rip\big.vob", 0, "ff")
As for the second parameter- I don't have a clue what it's for.

ren

kwag 01-18-2003 08:00 PM

Quote:

Originally Posted by rendalunit
hi Kwag,

The third parameter is "ff" - force film :D

:imstupid: for not reading the small details :oops:

Thanks :mrgreen:

-kwag

kwag 01-18-2003 08:03 PM

It would be great if you could just do: MPEGSource("D:\MOHICAN\VIDEO_TS\*.VOB",0,"ff") and it would load all VOBs in ascending order :mrgreen:

Edit: Better yet, just rip to a single VOB :idea:

rendalunit 01-18-2003 08:15 PM

Quote:

Originally Posted by kwag
It would be great if you could just do: MPEGSource("D:\MOHICAN\VIDEO_TS\*.VOB",0,"ff") and it would load all VOBs in ascending order icon_mrgreen.gif

Yeah I know!
It would be nice if you could write it like this;
SegmentedMPEGSource("clip.00.vob") and it would load the other vobs (clip.01.vob...so on)

just like you can do with SegmentedAviSource(clip)

rendalunit 01-19-2003 02:32 PM

Quote:

Originally Posted by kwag
Edit: Better yet, just rip to a single VOB

I didn't think DVD Decrypter could do this, but now I see that it can 8) 8)


All times are GMT -5. The time now is 10:20 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.