Quantcast Avisynth: How do you Add MPEG-1 Source in AVS Script? - digitalFAQ.com Forums [Archives]
  #1  
09-08-2003, 03:25 PM
limpby limpby is offline
Free Member
 
Join Date: Apr 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
is there any way to use avs script for MPEG-1 sources?

by the way, directsource() does not work...

it just stops...



the source I have is VCD MPEG-1

any ideas?
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  
09-08-2003, 03:30 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
DirectShowSource
Reply With Quote
  #3  
09-08-2003, 04:42 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Try to use DVD2AVI : add your MPEG1 file like you would have done for a Vob and save the d2v file.
Reply With Quote
  #4  
09-08-2003, 08:29 PM
limpby limpby is offline
Free Member
 
Join Date: Apr 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
dvd2avi doesn't work...unfortunately

it reads the file...(well..not really...) and I can't save it

to the .d2v file

directshowsource() doesn't work either

it gives me this..'video decync!' msg...

any ideas?
Reply With Quote
  #5  
09-09-2003, 04:34 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
OPen it under tmpgenc and save it in avi using the codec huffyuv (menu "file", output to file -> select avi).

You will need 4 GB / hour of video on your HD. But it's the only solution for you. (huffyuv codec is lossless, so don't worry).
Reply With Quote
  #6  
09-09-2003, 11:23 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'm not 100% sure but Nic's MPEGDecoder might be able to load the MPEG-1 source. See the Doom9 forum, the filter's buried somewhere over there.
Reply With Quote
  #7  
09-09-2003, 12:15 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
excuse limpby, maybe a stup question:

why and for what do you want to use avs script for MPEG-1 sources?

what is your target?
Reply With Quote
  #8  
09-09-2003, 04:34 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Boulder
I'm not 100% sure but Nic's MPEGDecoder might be able to load the MPEG-1 source. See the Doom9 forum, the filter's buried somewhere over there.
Nic's MPEGdecoder first create a d2v file, so if DVD2AVI can't handle this file...
By the way this decoder is completly bugged with MPEG1 source and nothing told in the documentation can solved tghe problem : it never gives the correct frame number
Reply With Quote
  #9  
09-09-2003, 06:01 PM
limpby limpby is offline
Free Member
 
Join Date: Apr 2003
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
well...4gb...thats....big...

neways....

the reason is..I downloaded the vcd file...

but its 2cds...

and I wanted to change it to 2cd kvcd...
Reply With Quote
  #10  
09-09-2003, 08:13 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by limpby

the reason is..I downloaded the vcd file...

but its 2cds...

and I wanted to change it to 2cd kvcd...
oh.....that's the reason...
Reply With Quote
  #11  
09-09-2003, 10:27 PM
ong001 ong001 is offline
Free Member
 
Join Date: Jun 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Here is a simple way to do it: it is very fast and you can have both audio and video together.
The best is RANDOM seeking is possible.

Please d/l m2v_vfp from http://www.marumo.ne.jp/mpeg2/m2v_vfp-0.6.38.lzh
then use Winrar to unpack it to e.g c:\m2v.

Make sure m2v.vfp and m2vconf.exe are there.
Run m2vconf.exe for your configuration.

Then use the following avs scripts to get the mpg1/mpg2 video into avisynth.

LoadVFAPIPlugin("C:\m2v\m2v.vfp", "M2VVFP")
M2VVFP("D:\mpegfiles\Mympg.mpg")
FlipVertical()
#continue after this

However, TmpgEnc at times gives error messages half way.
So the best way is to load the avs file into VirtualDub
and then frameserve to TmpgEnc.
Reply With Quote
  #12  
09-10-2003, 03:47 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by limpby
the reason is..I downloaded the vcd file...

but its 2cds...

and I wanted to change it to 2cd kvcd...
That's weird because I did this last week using DVD2AVI 1.76 and everything was correct.
I reaaly don't know why DVD2AVI does not work everytime (that was the first time I manage to use it for MPEG1 !).
Reply With Quote
  #13  
09-10-2003, 07:12 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by limpby
dvd2avi doesn't work...unfortunately
Whats the number of your DVD2AVI version??

Cause, as DialHot said, ... it works fine ... for me too!
Reply With Quote
  #14  
09-10-2003, 07:34 AM
J-Wo J-Wo is offline
Free Member
 
Join Date: Nov 2002
Location: Toronto, Canada
Posts: 454
Thanks: 0
Thanked 0 Times in 0 Posts
I've tried dvd2avi v1.76, 1.77.3 and 1.77.4 and neither of them will open my mpeg-1 source (Which is VCD compliant). Well they open it but the Video tab is greyed out so it won't preview the file no save a project file. I'm also having the same problem where DirectShowSource does absolutely nothing except cause tmpgenc to quit when I Try to load my avs file. I then thought I was smart and demultiplexed my file, but again I can't load my m1v file using directshowsource. I also tried to open the m1v file in all versions of dvd2avi. This time it did open the video file, but it came out as a green square and when I tried to preview it by pressing F5 the progam quit. So I might have to try that huffyv codec thingamabob, but there must be an easier way!!!!
Reply With Quote
  #15  
09-10-2003, 08:22 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by J-Wo
I've tried dvd2avi v1.76, 1.77.3 and 1.77.4 and neither of them will open my mpeg-1 source (Which is VCD compliant).
That's why I said I manage to do this only once. I really never found the reason

Quote:
So I might have to try that huffyv codec thingamabob, but there must be an easier way!!!!
Unfortunally there isn't. Even frameserve from vdub doesn't work as it always lead to audio desynch problems.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Directshow source Help in AVIsynth? Script Error Invalid Arguments? bigggt Video Encoding and Conversion 12 11-02-2006 06:28 AM
Avisynth: Optimal script for avi DV source? someguy Avisynth Scripting 5 02-17-2004 04:24 AM
Avisynth: Filter to clean up a noisy source with MA script? audioslave Avisynth Scripting 31 10-24-2003 01:08 PM
Avisynth: script to change the source aspect ratio? vdk_au Avisynth Scripting 1 09-16-2003 05:56 AM
Avisynth: Interlaced Source Optimal Script? Anonymous Avisynth Scripting 4 09-08-2003 06:03 AM

Thread Tools



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