PDA

View Full Version : SSRC kills audio


AlanHK
30th December 2008, 08:24
I have an AVI with 44100 sampled audio.
If I use

SSRC(48000)

there is no sound at all -- properties in VDub just shows a blank for audio. No error messages.
If I use
ResampleAudio(48000)
it's fine.

I can live with ResampleAudio, but why would SSRC not work?
(I know it only supports some input rates, but 44100 is one of these, and I've used on on that many times.)

PS: Found a conflict:
the full script is

AVISource("L.avi")
EnsureVBRMP3sync()
SSRC(48000)
AmplifydB(6.46)
ConverttoYUY2()
logo=ImageSource("bbc.png").ConverttoYUY2()
NoLogoAuto(logo,1)
ConvertToYV12()
LanczosResize(720,576)

SSRC works if I take out the NoLogo filter.
(As mentioned, ResampleAudio works in either case.)

NoLogo is an antique filter that is loaded with
loadplugin("P:\AviSynth 2.5\Old\LoadPluginEx.dll")
loadplugin("P:\AviSynth 2.5\Old\logotools.dll")
in an avsi. Never noticed any other problems with it though, and particularly odd that it should affect audio.

IanB
30th December 2008, 12:11
The 2.0 API does not support SFLOAT Audio or YV12 Video.

LoadPluginEx nukes any stream if format is unsupported.

SSRC only supports SFLOAT Audio format.


AVISource("L.avi")
EnsureVBRMP3sync()
SSRC(48000)
AmplifydB(6.46)
ConverttoYUY2()
logo=ImageSource("bbc.png").ConverttoYUY2()
AudioDub(NoLogoAuto(logo,1), Last) # Skip Audio past 2.0 Filter
ConvertToYV12()
LanczosResize(720,576)

AlanHK
30th December 2008, 13:08
Thanks. Nice to know there is an explanation, and even better, a work around.