[FFmpeg-user] Extract all audio regardless of stream/channel count

Carles Vila cvilad at gmail.com
Mon Feb 13 12:40:00 EET 2017


On 10 February 2017 at 14:12, Markku Vainio <Markku.Vainio at craft.fi> wrote:

> 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
> --------------------------------------------
>
> Hi Markku,
This looks useful indeed. Although I'm not on windows (osx) but I see the
idea behind it.
Thanks for sharing


More information about the ffmpeg-user mailing list