digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Opening an MPEG-1 file with AviSynth? (http://www.digitalfaq.com/archives/avisynth/3183-opening-mpeg-file.html)

PyRoMaNiA 04-05-2003 07:29 AM

Opening an MPEG-1 file with AviSynth?
 
I've seen this question asked before, but havent seen any solutions...anyone have any ideas? DirectShowSource() doesn't work, DVD2AVI doesn't want to frameserve it, renaming to m2v doesn't work, cant figure out how to open VDR scripts with AviSynth...Help! :bawl:

jamesp 04-05-2003 09:45 AM

Re: Opening an MPEG-1 file with AviSynth
 
If its an MPG file, demux using TMPeg to get an M1v and an MP2. Then use Nick MpegDecoder:-

http://nic.dnsalias.com/MPEGDecoder.html

This will allow you to frame serve the m1v file. With m1v's though, you have to sepcify the number of frames in the file for it to work. To do this, open up the m1v file in virtualdub and note down the total number of frames. Then in avisynth, call:

MPegSource('c:\thefile.m1v', 25000) #where 25000 is the total number of frames.

Nick MPeg decoder is superb. Its execellent for VOBS as well as its much quicker than the normal Mpeg2Source.

Jim


Quote:

Originally Posted by PyRoMaNiA
I've seen this question asked before, but havent seen any solutions...anyone have any ideas? DirectShowSource() doesn't work, DVD2AVI doesn't want to frameserve it, renaming to m2v doesn't work, cant figure out how to open VDR scripts with AviSynth...Help! :bawl:


PyRoMaNiA 04-05-2003 10:00 AM

Thanks, jamesp!! :D

jamesp 04-05-2003 11:46 AM

Quote:

Originally Posted by PyRoMaNiA
Thanks, jamesp!! :D

No probs - let me know how you get along. I've been using this to convert KVCDx3 to KDVD!

Jim

vhelp 04-05-2003 02:20 PM

Just another alternative route, pending your needs..
 
hi PyRoMaNiA..

Quote:

I've seen this question asked before, but havent seen any solutions...anyone have any ideas?
You must'ov missed mine.. I posted this alternate option in another
thread here, but can't remember where, and since this FORUM was
down all morning, I had no time to search. ..still don't.. Anyways..
I'll keep a copy online somewheres on my desktop for later retreaval, should
there be a need. So, here it is again.. re-written a bit cleaner.

VHELP's mini Framserving of MPEG-1 clips.. Guide
-----------------------------------------------------------------

Step 1 (vdub)
-------------------
* start vdub, and open an MPEG-1 clip.

* if you want to perform filtering, go ahead, but you might benefit filtering
..at a later stage, ie, in AVIsynth.

* Now, frameserve it into AVIsynth like this
.. -> File/Start Frame Server../Save as 01.00.vdr


Step 2 (AVIsynth)
-------------------------
* copy the AVS script code below.. (note, you can take out any code you don't need)
* be sure to resave it as something you will remember (and continue using when needed)
..ie, 23.976.MPEG1-Frameserver.avs OR 29.970.MPEG1-Frameserver.avs

Quote:

x="d:\01.vdr"

DLLs="c:\w98\system\"

LoadPlugin(DLLs+"TemporalCleanerOld.dll")
LoadPlugin(DLLs+"BlockBuster.dll")
LoadPlugin(DLLs+"DustV5.dll")
LoadPlugin(DLLs+"LegalClip.dll")
LoadPlugin(DLLs+"Sampler.dll")
LoadPlugin(DLLs+"NoMoSmooth.dll")
LoadPlugin(DLLs+"FixVHSOversharp.dll")

segmentedAVISource(x)
ConvertToYUY2()

Step 3 (to vdub or TMPG)
-----------------------------------------
* Now, take your AVS script (above) say, 23.976.MPEG1-Frameserver.avs, and
..proceed to fraveserve it back into vdub (if you want to do further Filtering or
..just want to see how your source will look like) OR, bypass vdub and go straight
..to TMPG and go on from their, ie, Encode.
..Does this slow down your final Encoding process ?? None that I have yet to detect.

Note 1, you can do your MUXing prior too, or after the above.. your choice
as to whatever works for you.

Note 2a, 01.00.vdr is for when you are SEGmenting more than one
AVI source, as I often do, and even if you don't in your case or ever plan
on doing, it won't hurt to practice form of built-in AVIsynth setup :wink:
Ok, in this step, the 01.00.vdr ( .00. ) is the increment or segment
number. Without this number, the AVIsynth statemnt, segmentedAVISource(x) will
not work.

Note 2b, Under Step 1, in vdub's frameserving, you should be able to save as
a .VDR file, but if for some reason your AVIsynth is not accepting it in Step 2, then
save as an .AVI instead.

Note 2c, the example of the filename convention thus far is as such:
say, in DOS, you have the following captured filename:
* 01.00.AVI

If you had done segmented capturing (avi_io and vdub are ie's)
becaues you are working under win98 (as I am) your final captured file(s)
could have looked something like this, in DOS mode:
d:\01.00.AVI
d:\01.01.AVI
d:\01.02.AVI
d:\01.03.AVI
d:\01.04.AVI

in the .AVS script line, the 00 would be umitted in this
script. The script (or AVIsynth) would see the missing 00's and take the
necessary action (in this case, segmentation) and use index's to group all
the .AVI's above, together as one file.

If you have problems, I'm only a post away..
-vhelp

ozjeff99 04-28-2003 09:50 AM

Most excellent responses. Just what I was searching for.

Many thanks
ozjeff99

WOWIEGURL 05-08-2004 10:37 AM

Quote:

Step 3 (to vdub or TMPG)
-----------------------------------------
* Now, take your AVS script (above) say, 23.976.MPEG1-Frameserver.avs, and
..proceed to fraveserve it back into vdub (if you want to do further Filtering or
..just want to see how your source will look like) OR, bypass vdub and go straight
..to TMPG and go on from their, ie, Encode.
..Does this slow down your final Encoding process ?? None that I have yet to detect
how do you frameserve it back into vdub?


All times are GMT -5. The time now is 12:40 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.