Hello,

I've used this my AudioSplitter.bat script placed in windows "send to" folder 
for quick access. It could probably be much smarter but anyways it does the job 
for me. It loops now 50 times and creates 24bit wav files.

--------------------------------------
set ch=0
set tr=0
set count=0

:channelsplit
ffmpeg -i %1 -map 0:%tr% -map_channel 0.%tr%.%ch% -acodec pcm_s24le 
%1_%tr%_0%ch%.wav
set /A ch +=1

IF %ERRORLEVEL% NEQ 0 goto :nexttrack
goto:channelsplit

:nexttrack
if /I %count%==50 goto :eof
set ch=0
set /a tr +=1
set /a count +=1

echo %ch%
echo %tr%
echo %count%

goto:channelsplit

pause
--------------------------------------------



Regards,

Markku.

-----Original Message-----
From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of Carles 
Vila
Sent: 10. helmikuutata 2017 13:40
To: FFmpeg user questions <ffmpeg-user@ffmpeg.org>
Subject: [FFmpeg-user] Extract all audio regardless of stream/channel count

Hi,
I'd like to know if there is a simple way (script) to extract all audios 
individually from a video. The video could have N stereo streams (normally up 
to 16), M mono streams (up to 16), or a combination of both. Now I have to 
write the -map structure manually after probing the input. Ideally I need to 
end up with as many mono wavs as individual channels.
If you could give me a starting point, I could probably figure out.
Thank you!
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with 
subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to