digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Opening MPEG1 Files? (http://www.digitalfaq.com/archives/avisynth/2092-avisynth-opening-mpeg1.html)

gonzopdx 01-08-2003 11:31 PM

Avisynth: Opening MPEG1 Files?
 
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()


black prince 01-08-2003 11:55 PM

@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

gonzopdx 01-09-2003 12:31 AM

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..?

Boulder 01-09-2003 02:33 AM

I recall reading something about extremely poor seeking with DirectShowSource, I think it was on doom9. This might be the problem.

black prince 01-09-2003 06:59 AM

@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

SansGrip 01-09-2003 07:47 AM

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 :?.

SansGrip 01-09-2003 07:49 AM

Re: Opening MPEG1 Files
 
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.

gonzopdx 01-09-2003 02:26 PM

Re: Opening MPEG1 Files
 
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 8O


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

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