Quantcast Avisynth: How do you Load an MPEG1 Clip? - digitalFAQ.com Forums [Archives]
  #1  
01-18-2003, 04:02 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
01-18-2003, 04:42 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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 .
Reply With Quote
  #3  
01-18-2003, 04:58 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #4  
01-18-2003, 05:48 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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 .
Reply With Quote
  #5  
01-18-2003, 06:32 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
MPEGDecoder works great!! It created a .d2v file with my mpeg-1 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
Reply With Quote
  #6  
01-18-2003, 06:45 PM
SansGrip SansGrip is offline
Free Member
 
Join Date: Nov 2002
Location: Ontario, Canada
Posts: 1,135
Thanks: 0
Thanked 0 Times in 0 Posts
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 .
Reply With Quote
  #7  
01-18-2003, 07:48 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rendalunit
MPEGDecoder works great!! It created a .d2v file with my mpeg-1 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
How do you get the Inverse Telecine ( drop rff ) there . If you read VOBs directly, the frame rate would be read as 29.97fps and not as 23.976, or am I wrong

-kwag
Reply With Quote
  #8  
01-18-2003, 07:56 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
hi Kwag,

The third parameter is "ff" - force film

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
Reply With Quote
  #9  
01-18-2003, 08:00 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rendalunit
hi Kwag,

The third parameter is "ff" - force film
for not reading the small details

Thanks

-kwag
Reply With Quote
  #10  
01-18-2003, 08:03 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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

Edit: Better yet, just rip to a single VOB
Reply With Quote
  #11  
01-18-2003, 08:15 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Reply With Quote
  #12  
01-19-2003, 02:32 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load MPEG-1 in Avisynth? kamen555 Avisynth Scripting 4 05-05-2005 04:42 PM
Avisynth: Need clip filter & dust filters for avisynth nighthawk Avisynth Scripting 3 01-31-2004 12:24 PM
Avisynth: Clip is upside down and mirror image!! mistermickster Avisynth Scripting 6 01-13-2004 05:16 PM
Avisynth - how to Load Filter? Paul0889 Video Encoding and Conversion 2 11-16-2002 05:10 PM
Avisynth: can't load mpeg2dec.dll? midiaxe Avisynth Scripting 1 05-31-2002 09:18 AM

Thread Tools



 
All times are GMT -5. The time now is 08:51 AM  —  vBulletin © Jelsoft Enterprises Ltd