Quantcast Avisynth: Opening MPEG1 Files? - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Avisynth Scripting

Reply
 
LinkBack Thread Tools
  #1  
01-09-2003, 12:31 AM
gonzopdx gonzopdx is offline
Free Member
 
Join Date: Dec 2002
Location: Corvallis, OR
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
I'm trying to re-encode a 3-disc VCD (MPEG-1) to a single disc. I know that it's going to look like poo and it's a bad idea and etc. -- it's more of an experiment.

I can open the files in AviSynth using DirectShowSource(file), but when I do this seeking is EXTREMELY slow, ie: Sampler for a 2+ hour movie (that usually takes ~4-5 minutes on my machine) wants to take upwards of 30 minutes. Trying to open Source Range in TMPGEnc makes TMPGEnc choke. VirtualDub too when you seek in the file. As you can probably assume, this makes actually doing the conversion very difficult as it makes it very tedious to even check if my cuts are done properly.

The files are converted to STANDARD MPEG-1 (using VCDGear). I can open them just fine in VirtualDub individually.

Is there another way to use the mpegs in avisynth? Is there a way to fix it?

This is the script I'm using:
Code:
LoadPlugin("C:\Program Files\Video\Plugs\legalclip.dll")
LoadPlugin("C:\Program Files\Video\Plugs\fluxsmooth.dll")
LoadPlugin("C:\Program Files\Video\Plugs\sampler.dll")

DirectShowSource("c:\temp\gony\01.mpg").Trim(0,68191) + DirectShowSource("c:\temp\gony\02.mpg").Trim(24,122324) + DirectShowSource("c:\temp\gony\03.mpg").Trim(19,97793)

LegalClip()
FluxSmooth()

Sampler()
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-09-2003, 12:55 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@gonzopdx,

Quote:
I can play it fine if I start from the beginning, but I can't do ANY seeking -- Sampler() doesn't even work.
Sampler() gets info from mpeg2source or avisource. I don't believe
it reads DirectShowSource. I re-encoded MPEG-2 using DVD2AVI to
MPEG-1 with no trouble. I'm interested also in re-encoding MPEG-1 to
MPEG-1 and using "UnDot" filter to get rid of Gibbs noise. It would be
converting from a high resolution like 704x480 to 352x480. Then it
won't look like poo.

-black prince
Reply With Quote
  #3  
01-09-2003, 01:31 AM
gonzopdx gonzopdx is offline
Free Member
 
Join Date: Dec 2002
Location: Corvallis, OR
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by black prince
Sampler() gets info from mpeg2source or avisource. I don't believe it reads DirectShowSource.
Actually, it does work, clipping the movie and all like it's supposed to =) -- it just takes FOREVER.

Quote:
Originally Posted by black prince
I re-encoded MPEG-2 using DVD2AVI to
MPEG-1 with no trouble. I'm interested also in re-encoding MPEG-1 to
MPEG-1 and using "UnDot" filter to get rid of Gibbs noise. It would be
converting from a high resolution like 704x480 to 352x480. Then it
won't look like poo.
That's what I want to do -- do MPEG1 to MPEG1 -- I just can't figure out a satisfactory way to open the original files to edit them and get my samples done and all..

Where can I get UnDot..?
Reply With Quote
  #4  
01-09-2003, 03:33 AM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
I recall reading something about extremely poor seeking with DirectShowSource, I think it was on doom9. This might be the problem.
Reply With Quote
  #5  
01-09-2003, 07:59 AM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@gonzopdx,

gonzopdx wrote:
Quote:
Where can I get UnDot..?
http://www.trbarry.com/undot.zip

You have to use avisynth 2.5 alpha to test it. Here's the link:

http://cultact-server.novi.dk/kpo/av...nth_alpha.html

-black prince
Reply With Quote
  #6  
01-09-2003, 08:47 AM
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 Boulder
I recall reading something about extremely poor seeking with DirectShowSource, I think it was on doom9. This might be the problem.
Yep, that's exactly the problem. IIRC sh0dan said something about seeking being very difficult with DirectShow -- but WMP seems to manage it .
Reply With Quote
  #7  
01-09-2003, 08:49 AM
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 gonzopdx
Is there another way to use the mpegs in avisynth? Is there a way to fix it?
Another way, if you have tons of HD space available, is to use VirtualDub to fast recompress the files using the HuffYUV codec. It's a lossless compression format, so it'll retain the video information exactly, and you'll then be able to use AviSource to read it.

It takes up a lot of disk space, though.
Reply With Quote
  #8  
01-09-2003, 03:26 PM
gonzopdx gonzopdx is offline
Free Member
 
Join Date: Dec 2002
Location: Corvallis, OR
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by SansGrip
Another way, if you have tons of HD space available, is to use VirtualDub to fast recompress the files using the HuffYUV codec. It's a lossless compression format, so it'll retain the video information exactly, and you'll then be able to use AviSource to read it.

It takes up a lot of disk space, though.
A lot of disk space is what I have I'll give it a shot.. thanks for the tip! This should fix those pesky problems with cutting MPEG's too

Edit: Whoah, I didn't know it took THAT much.. over 4 gigs for 40 minutes! Wow! I don't have THAT much free right now
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening an MPEG-1 file with AviSynth? PyRoMaNiA Avisynth Scripting 6 05-08-2004 10:37 AM
Avisynth: opening credits of movie blink? Jimblob Avisynth Scripting 11 05-01-2004 03:28 PM
Problems opening video files in virtualdub ? WOWIEGURL Video Encoding and Conversion 3 03-06-2004 09:18 PM
Avisynth: Error opening the avisynth file i76276 Avisynth Scripting 5 10-22-2003 05:56 AM
TMPGEnc: A new way of joining mpeg1 files rendalunit Video Encoding and Conversion 3 07-26-2002 05:04 PM




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