Quote
I looked more closely at the output from ffmpeg. The original audio as output by PD is 384k AAC. The replacement file is 1536k WAV. But ffmpeg saves the output as 128k AAC. So I started investigating ffmpeg's options. I found that changing the audio codec from libvo_aacenc to aac (which is describes as 'experimental') did the trick and the output now no longer has distortion, artefacts or AGC effects. It still encodes at 128k and although there are options to change the bitrate I got a "sample rate not supported" error for everyting I tried.
However, the fact that ffmpeg can produce a good result at 128k that PD can't manage at 384k suggests that there is something very seriously wrong with PD's audio output algorithms.
The command I'm now using is:
ffmpeg.exe -i input_video.mp4 -i replacement_audio.wav -vcodec copy -acodec aac -strict -2 -map 0:0 -map 1:0 output.mp4
Alan
I looked more closely at the output from ffmpeg. The original audio as output by PD is 384k AAC. The replacement file is 1536k WAV. But ffmpeg saves the output as 128k AAC. So I started investigating ffmpeg's options. I found that changing the audio codec from libvo_aacenc to aac (which is describes as 'experimental') did the trick and the output now no longer has distortion, artefacts or AGC effects. It still encodes at 128k and although there are options to change the bitrate I got a "sample rate not supported" error for everyting I tried.
However, the fact that ffmpeg can produce a good result at 128k that PD can't manage at 384k suggests that there is something very seriously wrong with PD's audio output algorithms.
The command I'm now using is:
ffmpeg.exe -i input_video.mp4 -i replacement_audio.wav -vcodec copy -acodec aac -strict -2 -map 0:0 -map 1:0 output.mp4
Alan
Dear Alan,
thank you so much for sharing your workaround. I had the same audio problems and was already thinking of throwing PD15 away but I was lucky to find your solution with works for me as well.
I even managed to get better audio bitrate by using the -b:a 384k option. Hope this helps.
Thank you one more time for this!
Mikhail