Quantcast Opening an MPEG-1 File with Avisynth? - digitalFAQ.com Forums [Archives]
  #1  
04-05-2003, 07:29 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
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!
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  
04-05-2003, 09:45 AM
jamesp jamesp is offline
Free Member
 
Join Date: Jul 2002
Location: Chelmsford, UK
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #3  
04-05-2003, 10:00 AM
PyRoMaNiA PyRoMaNiA is offline
Free Member
 
Join Date: Jan 2003
Location: a PAL land (UK)
Posts: 408
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, jamesp!!
Reply With Quote
  #4  
04-05-2003, 11:46 AM
jamesp jamesp is offline
Free Member
 
Join Date: Jul 2002
Location: Chelmsford, UK
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by PyRoMaNiA
Thanks, jamesp!!
No probs - let me know how you get along. I've been using this to convert KVCDx3 to KDVD!

Jim
Reply With Quote
  #5  
04-05-2003, 02:20 PM
vhelp vhelp is offline
Free Member
 
Join Date: Jan 2003
Posts: 1,009
Thanks: 0
Thanked 0 Times in 0 Posts
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
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
Reply With Quote
  #6  
04-28-2003, 09:50 AM
ozjeff99 ozjeff99 is offline
Free Member
 
Join Date: May 2002
Location: Sydney, Australia
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Most excellent responses. Just what I was searching for.

Many thanks
ozjeff99
Reply With Quote
  #7  
05-08-2004, 10:37 AM
WOWIEGURL WOWIEGURL is offline
Free Member
 
Join Date: Sep 2003
Posts: 384
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to WOWIEGURL
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?
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualDub: Error when opening AVI file simplyliz Video Encoding and Conversion 2 06-30-2004 02:46 PM
Avisynth: opening credits of movie blink? Jimblob Avisynth Scripting 11 05-01-2004 03:28 PM
Avisynth: Error opening the avisynth file i76276 Avisynth Scripting 5 10-22-2003 05:56 AM
MovieStacker: Errors opening avs file limpby Video Encoding and Conversion 5 04-25-2003 01:01 AM
Avisynth: Opening MPEG1 Files? gonzopdx Avisynth Scripting 7 01-09-2003 03:26 PM

Thread Tools



 
All times are GMT -5. The time now is 03:54 PM  —  vBulletin Jelsoft Enterprises Ltd