Avidemux Forum

Participate => Documentation & Tips => Topic started by: mosiclover on November 18, 2022, 12:46:07 PM

Title: Problem with audio processing in TinyPy Script
Post by: mosiclover on November 18, 2022, 12:46:07 PM

 I'm trying to change FPS to make the video faster. But, after that, the audio gets out of sync and I haven't found an option to speed up the audio as well. If I could pin the audio to the video track to they'd get sped up simultaneously , but how.. in TinyPy script

Thanks for help
Title: Re: Problem with audio processing in TinyPy Script
Post by: szlldm on November 20, 2022, 11:24:36 PM
you should use
adm.audioSetCustomFrameRate(0,X,1)
where X is the ratio of newFps/oldFps
for example: 30fps -> 24fps slowdown results
adm.audioSetCustomFrameRate(0,0.8,1)