Extrahieren von Audio aus einer Mehrkanal-Videodatei

Extrahieren von Audio aus einer Mehrkanal-Videodatei

Ich habe ein QT ProRes mit 8 Audiospuren. L/R/C/Lfe/Ls/Rs/Ltotal/Rtotal Was ich tun muss, ist, die 5.1 (Spuren 1-6) ohne erneute Komprimierung in einzelne WAV-Dateien und die letzten beiden (Spuren 7-8) in eine Stereo-WAV-Datei zu extrahieren. Ich habe eine kleine Batchdatei erstellt, die mir dabei hilft. Hier ist sie: CLS

:START
echo[
set /p source=enter source file name:
start ffmpeg -i %source% -map 0:a:0 -c copy %source%_51.L.wav -map 0:a:1 -c copy %source%_51.R.wav -map 0:a:2 -c copy %source%_51.C.wav -map 0:a:3 -c copy %source%_51.LFE.wav -map 0:a:4 -c copy %source%_51.Ls.wav -map 0:a:5 -c copy %source%_51.Rs.wav
start ffmpeg.exe -i %source% -filter_complex "[0:7][0:8] amerge=inputs=2" -c:a pcm_s24le %source%.20.wav
pause

Das Problem ist, dass die Extraktion nicht korrekt ist. Die erzeugten 5.1-Kanäle sind dieselben. Haben Sie eine Idee, wo ich falsch liege?

Danke!

Antwort1

habe es

start ffmpeg.exe -i %source% -map 0:1 -c:a:0 copy -disposition:a:0 default -vn -y %source%.51.L.wav -map 0:2 -c:a:1 copy -disposition:a:1 0 -vn -y %source%.51.R.wav -map 0:3 -c:a:2 copy -disposition:a:2 0 -vn -y %source%.51.C.wav -map 0:4 -c:a:3 copy -disposition:a:3 0 -vn -y %source%.51.LFE.wav -map 0:5 -c:a:4 copy -disposition:a:4 0 -vn -y %source%.51.Ls.wav -map 0:6 -c:a:5 copy -disposition:a:5 0 -vn -y %source%.51.Rs.wav
start ffmpeg.exe -i %source% -filter_complex "[0:7][0:8] amerge=inputs=2" -c:a pcm_s24le %source%.20.wav

verwandte Informationen