Fallen
24th September 2008, 23:08
I Know its me -- but its driving me nuts
Any Help greatly appreciated -- Sorry for the long post
I am taking a motion clip (App 7 sec) (From Vob) then overlayinging thumbnails (Static Image)
Then Audiodubbing an audio file that is longer then the motion clip (App 30 sec)
When I serve the following AVS (without the converttoyv12) to Media Player or KMPlayer all is as I expect clip duration is 30 sec. Everything is Happy
When I run the same avs through Quenc it is clipped to the length of the clip. Duration is 7 sec
I Know its me :stupid: I just can't see what I'm missing
I found a workaround Instead of Pageout=AudioDub(pageout,dummy)
Pageout=Overlay(dummy,Pageout ...
But its very very slow -- Potentially dealing with hundreds of variations of the script to create each menu page and when I add motion Thumbnails --Oui
And another workaround -- serve the avs through Quenc (No Audio)
then another avs to process the audio QuEnc it (No Video)
and tcmplex the results together -- clunky but it works A pain trying to transfer the rootpage clip length across to the audio (For when I actually want the audio length to match the clip)
Here is the avs --- clip102 is the motion clip
SetMemoryMax(128)
LoadPlugin("C:\PROGRAM FILES\TITLEWRITER\TOOLS\RenderingPrograms\DGDecode\DGDecode.dll")
Import("C:\PROGRAM FILES\TITLEWRITER\TOOLS\Macros\Functions.avs")
max=1
MenuType=0
clip102=mpeg2source("D:\NIM_3\Titlewriter\Menu\Access102.d2v").ConverttoRGB32
(clip102.framecount<max) ? eval("""
short=Blankclip(clip102,max)
clip102=overlay(short,clip102,opacity=1)
""") : NOP
PageOut=mergestill(clip102,"D:\NIM_3\Titlewriter\Menu\background.bmp")
PageOut=ConvertFps(PageOut,"ntsc_video")
LoadPlugin ("C:\PROGRAM FILES\TITLEWRITER\TOOLS\macros\nicaudio.dll")
audio=RaWavSource("C:\MYSTUFF\MUSIC\MP-3\ENYA-AFERVENTIS.WAV",2)
audlen=30*FrameRateNumerator(Pageout)/FrameRateDenominator(Pageout)
dummy=Blankclip(Pageout,length=audlen)
dummy=AudioDub(dummy,audio)
fadeit=3*FrameRateNumerator(Pageout)/FrameRateDenominator(Pageout)
dummy=fadein(dummy,fadeit)
dummy=fadeout(dummy,fadeit)
Pageout=AudioDub(Pageout,dummy)
return PageOut.converttoyv12
and here is the QuEnc command line
quenc.exe -i rootpage.avs -o rootpage.mpg -notoall -mpeg2mux dvd -2 -b 6500 -maxbframes 2 -gopsize 12 -maxbitrate 9500 -audiobitrate 96 -audiocodec mp2 -auto
And here is the top of the DgIndex for the motion clip
DGIndexProjectFile16
1
D:\NIM_3\VIDEO_TS\VTS_01_1.VOB
Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,5e95,0,69ce
900 6 0 49588224 0 1 1 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0
900 6 0 49858560 0 1 1 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0
Any Help greatly appreciated -- Sorry for the long post
I am taking a motion clip (App 7 sec) (From Vob) then overlayinging thumbnails (Static Image)
Then Audiodubbing an audio file that is longer then the motion clip (App 30 sec)
When I serve the following AVS (without the converttoyv12) to Media Player or KMPlayer all is as I expect clip duration is 30 sec. Everything is Happy
When I run the same avs through Quenc it is clipped to the length of the clip. Duration is 7 sec
I Know its me :stupid: I just can't see what I'm missing
I found a workaround Instead of Pageout=AudioDub(pageout,dummy)
Pageout=Overlay(dummy,Pageout ...
But its very very slow -- Potentially dealing with hundreds of variations of the script to create each menu page and when I add motion Thumbnails --Oui
And another workaround -- serve the avs through Quenc (No Audio)
then another avs to process the audio QuEnc it (No Video)
and tcmplex the results together -- clunky but it works A pain trying to transfer the rootpage clip length across to the audio (For when I actually want the audio length to match the clip)
Here is the avs --- clip102 is the motion clip
SetMemoryMax(128)
LoadPlugin("C:\PROGRAM FILES\TITLEWRITER\TOOLS\RenderingPrograms\DGDecode\DGDecode.dll")
Import("C:\PROGRAM FILES\TITLEWRITER\TOOLS\Macros\Functions.avs")
max=1
MenuType=0
clip102=mpeg2source("D:\NIM_3\Titlewriter\Menu\Access102.d2v").ConverttoRGB32
(clip102.framecount<max) ? eval("""
short=Blankclip(clip102,max)
clip102=overlay(short,clip102,opacity=1)
""") : NOP
PageOut=mergestill(clip102,"D:\NIM_3\Titlewriter\Menu\background.bmp")
PageOut=ConvertFps(PageOut,"ntsc_video")
LoadPlugin ("C:\PROGRAM FILES\TITLEWRITER\TOOLS\macros\nicaudio.dll")
audio=RaWavSource("C:\MYSTUFF\MUSIC\MP-3\ENYA-AFERVENTIS.WAV",2)
audlen=30*FrameRateNumerator(Pageout)/FrameRateDenominator(Pageout)
dummy=Blankclip(Pageout,length=audlen)
dummy=AudioDub(dummy,audio)
fadeit=3*FrameRateNumerator(Pageout)/FrameRateDenominator(Pageout)
dummy=fadein(dummy,fadeit)
dummy=fadeout(dummy,fadeit)
Pageout=AudioDub(Pageout,dummy)
return PageOut.converttoyv12
and here is the QuEnc command line
quenc.exe -i rootpage.avs -o rootpage.mpg -notoall -mpeg2mux dvd -2 -b 6500 -maxbframes 2 -gopsize 12 -maxbitrate 9500 -audiobitrate 96 -audiocodec mp2 -auto
And here is the top of the DgIndex for the motion clip
DGIndexProjectFile16
1
D:\NIM_3\VIDEO_TS\VTS_01_1.VOB
Stream_Type=1
MPEG_Type=2
iDCT_Algorithm=2
YUVRGB_Scale=1
Luminance_Filter=0,0
Clipping=0,0,0,0
Aspect_Ratio=16:9
Picture_Size=720x480
Field_Operation=0
Frame_Rate=29970 (30000/1001)
Location=0,5e95,0,69ce
900 6 0 49588224 0 1 1 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0
900 6 0 49858560 0 1 1 71 72 d3 f0 f1 e2 f3 f0 e1 f2 f3 e0