Log in

View Full Version : Slow down AC3 to 23.976 fps with SoX


Boon
10th September 2015, 14:49
Hey,

my plan is to slow down an 5.1 AC3 stream from 25,000fps to 23,976fps with SoX "-speed" via FFmpeg. I succeeded with first decoding the AC3 stream to 6 single .wav files and processing them seperatly with SoX before re-encoding to AC3. But I would like to do this in 1 step.

Here is what I got so far and it's of course not working:
ffmpeg -i "\dd51_track2_ger_DELAY 0ms.ac3" -f wav -| "...\sox" -t wav -speed 0.95904 -| "...\random ac3encoder" -output.ac3

This is what should happen:
1) decoding AC3 with FFmpeg to L.wav, R.wav, C.wav, LFE.wav, Ls.wav, Rs.wav
2) load these .wav files to SoX
3) slow them down with -speed option to L_new.wav, R_new.wav, C_new.wav, ...
4) load them into my prefered AC3 encoder

Maybe my way is completely bullshit and if there's already a better solution, please let me know :)

Qaq
10th September 2015, 15:22
eac3to https://forum.doom9.org/showthread.php?t=125966
eac3to source.ac3 dest.ac3 -slowdown -(target bitrate)

pandy
14th September 2015, 15:20
ffmpeg.exe -i %% -vn -af "xxx" -f sox - | sox.exe -S -V -D -t sox - -t wav - some-processing | some encoder

btw all this can be performed in ffmpeg (IMHO same or better quality than SoX)