Ok im new to using just avisynth and I having a slight problem with the video not being encoded to the right size, clip is 41s and cce is outputting 37s, and because of that the ausio is off.
When I started I wrote one script
LoadPlugin("c:\MPEG2DEC.DLL"
v=mpeg2source("D:\sttmp.d2v"
a=wavsource("D:\sttmp.wav"
audiodub(v,a)
BicubicResize(480,370)
AddBorders(0,55,0,55)
Trim(65963,66963)
And it worked, but made the video 37sec (movie clip is 41sec)and outputed no audio. So I opened the script in virtual dub and copied the wav there and unchecked the audio in cce sp 2.5 and re encoded the video.... still 37sec.
So i did a little more reading and came up with this script for cce.
LoadPlugin("c:\mpeg2dec.dll"
mpeg2source("D:\sttmp.d2v"
Trim(65963,66962)
BicubicResize(480,370)
AddBorders(0,55,0,55)
and for the audio in virtual dub I use the old script from above.
The new video script works in tmpge and wmp but does not work in cce do you have any idea why. It Doesnt make any sense.
Any help would be appreciated.
Pleasy post up the scripts you use to frame server into cce.
TIA
Shochan
<font size=-1>[ This Message was edited by: shochan on 2001-11-28 02:46:53 ]</font>
<font size=-1>[ This Message was edited by: shochan on 2001-11-28 10:03:59 ]</font>
+ Reply to Thread
Results 1 to 12 of 12
-
-
I have no idea, what went wrong with the first script unless the source have a very odd framerate. CCE accept 23.98 / 24 / 25 fps, one of them your source seem to be, correct me if I am wrong.
Sometimes you need to add a dummy audio line to the script to make cce accepting a avs.
Here is a sample script DVD-PAL-16:9->SVCD4:3:
LoadPlugin("c:\mpeg2dec.dll")
mpeg2source("d:\movie.d2v
BicubicResize(480,432)
AddBorders(0,72,0,72)
Trim(65963,66962)
ResampleAudio(44100)
or even better:
LoadPlugin("c:\mpeg2dec.dll")
mpeg2source("d:\movie.d2v")
BicubicResize(448,320,0,0.5,24,72,672,432)
AddBorders(16,128,16,128)
Trim(65963,66962)
ResampleAudio(44100)
Note, if you open that avs in TMPG, TMPG will crash. The dummy audio line is for CCE only. Delete it before you open the .avs in TMPG.
-
Have you considered the VFAPI plugin instead or AVISYNTH?
I open my source video/audio in TMPGEnc, resize, source range, filter, framerate etc., I save the project file as "video only" output (.tpr), and encode audio with TMPGEnc.
Then I just run the video-only .tpr thru VFAPI converter, and it makes a "fake" AVI file (it's actually frameserving).
Then, just point-and click to "add" the AVI in CCE. No probelms.
I always had trouble getting the AVISYNTH method to work at all. It was sporadic, some would work, some wouldn't, even when the scripts were identical. I switch to this method, works every single time. -
homerpx - I have frameserverd with flask the vfapi codec and just from messing with avisynth by itself I have increased my encoding speed from 0.600 to 0.750-0.800
It is alot faster and is pretty easy to set up. And I also like to learn the hard way first. That way when I learn to do the rest it is easy as hell. -
Ok I now no the real problem...
When I encode mpeg1 or 2 cbr, it is 41 sec and it equals the audio and everything muxes ok.
But... when i encode in any multipass it comes out 37 sec and it doesnt match the audio and then of course it gets out of synth. -
Ok problem solved there is a timestamp in the video settings. it defaulted to 01:00:00:00 so i changed it to all 0s and now it works!!!!
-
Well it doesnt really work now the aduio is 2sec longer than the video.
-
I don't know if this will answer your question, but here's points to remember.
-Always put ResampleAudio in if your using CCE
-If using CCE in VBR mode, do audio using vdub>wav Never do it in CCE
-I'd put the trim statement after the audiodub statement. I noticed your script didn't have the resample function in it, remember to put it in.
Just as a side note, if your doing DVD's, try using guardianknot to make your avs, then open it and add your audiodub bit. It's just nice cause it adds all the possible filters, but comments them out, so you can turn on and off what you want.
To Homerpez
Though the VFAPI plugin is handy, it works in RGB colourspace, whereas AVIsynth and MPEG are in YUV. Thus instead of doing YUV>RGB>YUV, it's going YUV>YUV>YUV. The RGB>YUV and back conversion loses quality and takes a hell of a lot of processing power, so this method is far far more effivient. It's just a little messy sometimes. -
... a little messy as in IT DOESN'T ALWAYS WORK!
My way works for me, 100%, all the time, never fails. Works for me.
BTW: I don't think it does go YUV>RGB>YUV... when source is YUV, TMPGEnc exports it directly, and goes to CCE. Where does it go to RGB?
I haven't noticed any quality issues, except for improvement!
Oh, well, to each his or her own. -
Believe me, homerpez knows what he is talking about.
There are problems with cce encoding at very low bitrates and in VBR MPEG-1.
However, @ normal SVCD bitrates (1500-2500) MPEG-2 it workes like a charme.
Shabubu is right as well, VFAPI converts YUV to RGB and CCE converts back to YUV. That's why there is the difference in speed. If you use the VFAPI way, you have to pay attention to some dvd2avi settings.
Color space RGB
YUV->RGB PC scale
CCE settings:
luminance level 0-255
Otherwise the picture gets brighter than you probably like.
@shochan, I have tested cce with such a short clip without any problems. 41 seconds are 41 seconds, no matter whether CBR, multipassVBR 1pass or multipassVBR 3pass.
I use Avisynth 1.05 and mpeg2dec modified by dividee (08-16-2001) -
The whole problem was windows xp.
I loaded 98 no problem then xp again and same thing.
What a peice of shit!!!
win CE, win ME, Win NT
CEMENT! and im sticking to that!!!
Similar Threads
-
joining edited clips
By gargoyle62 in forum EditingReplies: 1Last Post: 22nd Nov 2011, 21:10 -
just another img test: edited
By macbuz in forum TestReplies: 7Last Post: 22nd Aug 2010, 15:43 -
Restoring edited video.
By drummer in forum EditingReplies: 5Last Post: 9th Apr 2010, 05:57 -
How to Burn an Edited Video
By tealmarlin in forum EditingReplies: 5Last Post: 20th Nov 2009, 19:29 -
saving edited video
By zulubase in forum Newbie / General discussionsReplies: 5Last Post: 2nd Jun 2009, 20:48