I have been using vfapi to make an avi from a d2v file to go through cce, but I'm getting distortion and now I think vfapi is causing it. I am trying to use avisynth under win 2000(I have only had this distortion since upgrading to win 2000 about a week ago!). I keep getting an error when I play the avs file in media player. It says "the scripts return value was not a video clip". My script looks like this:
loadplugin("c:\avisynth\mpeg2dec.dll")
v=mpeg2source("c:\dvdfiles\movie\movie.d2v")
I have double checked that the script is referencing the right file. CCE will not load it either. I am doing dvd to dvd, so these are all the lines I need. Do I have to include audio and dub parts, because my aduio is not a wav, and I don't want it in the file. Is there anything I am doing wrong? Also if the filename has a space can i use a space when referencing a file, and is this process case sensitive? Hey, I'm a newbie to avisynth !
+ Reply to Thread
Results 1 to 7 of 7
-
-
take out the v= part in your script. Im not sure why you have that in there anyways.. heres a sample:
LoadPlugin("F:\mpeg2dec.dll")
Mpeg2source("G:\Sample Part 1.d2v")
Crop(0,56,720,360)
BilinearResize(480,296)
AddBorders(0,92,0,92)
ResampleAudio(44100) -
Thanks man. I'm an idiot. It said that in the avisynth guide on the site, and I just put it in. Got it going now.
-
Originally Posted by Kdiddy
v.Crop(0,56,720,360)
v.BilinearResize(480,296)
v.AddBorders(0,92,0,92)
ResampleAudio(44100)
In fact, it is necessary to do so if you want Avisynth to serve a complete stream (audio included), since you have to use the audiodub command. -
Originally Posted by Kdiddy
your way is fine also but I prefer to encode half of a movie then the second half, instead of cutting it in the middle of the scene after encoding the whole thing. That way I can split it at a scene change say 40 min and encode that 40 min to fit a whole cd. then encode the other 42 min or so to fit the other cd perfectly.
the useage of the v= argument is.
v=mpeg2source("c:\movie.d2v")
a=wavsource("c:\movie.wav")
audiodub(v,a)
The audio dub will mux the video (v) and the audio(a) together in one stream. because of the way that i do it it saves time for me on writing scripts and makes it a little easier for others to understand.
if I were to do write scripts your way but still doing it my way it would be like this.
for the video
LoadPlugin("F:\mpeg2dec.dll")
Mpeg2source("G:\Sample Part 1.d2v")
Crop(0,56,720,360)
BilinearResize(480,296)
AddBorders(0,92,0,92)
trim(0,65000)
ResampleAudio(44100)
wavsource("G:\Sample Part 1.wav")
trim(0,65000)
ResampleAudio(44100)
It just makes sense for my needs to do it may way and not use 4 files for 2 halves of a movie.
just to mention kdiddy's way does not handle audio you have to encode the whole movie then the audio then merge them, then cut them( not knowing the output size if the slice you are making. then doing it again for the other half also wasting megs of space that could have incresed your bitrate.
his method is not bad its just that mine is more efficent and you can use a bitrate calc to find out the exact bitrate to fit your slice onto an 80 min cd. -
@Shochan: Why create a script for each disc using trim commands when TMPGEnc and CCE will both let you specify source frame ranges and batch encode? Seems like the hard way to do cutting.
-
O, well I dont mux with avisynth, I do my audio lady, I have to have the resampleaudio command in there so that CCE works right with my AMD
Similar Threads
-
AVISynth Question
By Alexstarfire in forum Newbie / General discussionsReplies: 6Last Post: 6th Jul 2010, 11:22 -
Avisynth Script Question
By MegaTonTerror in forum Video ConversionReplies: 4Last Post: 22nd Aug 2009, 21:28 -
Basic question about AVISynth plugins
By sd_smoker in forum Newbie / General discussionsReplies: 3Last Post: 3rd Jul 2008, 11:04 -
CCE, AviSynth and MP4 Question
By Maikeru-sama in forum Video ConversionReplies: 5Last Post: 31st Mar 2008, 11:19 -
probably stupid Avisynth filter question
By ecc in forum Video ConversionReplies: 2Last Post: 17th Jun 2007, 09:21