[FFmpeg-user] Need help splitting stereo FLAC into two separate files

Net Net dastiegen at gmail.com
Sun Apr 5 19:45:27 EEST 2020


Thanks to all for the help.  Per Ted Parks I tried map_channel and it
worked great for a single file:

*ffmpeg -i 1.flac -map_channel 0.0.0 1left.flac -map_channel 0.0.1
1right.flac*

Now, I have several hundred of these flacs to split, named 001.flac,
002.flac, 003.flac etc.  I want them to be split into eg. 001left.flac,
001right.flac etc.  A few attempts with Windows wildcards didn't work.  Can
anyone tell me how, or point me to the right documentation pack for
figuring this out?

On Sun, Apr 5, 2020 at 1:49 AM Mark Filipak <
markfilipak.windows+ffmpeg at gmail.com> wrote:

>
>
> On 04/05/2020 04:04 AM, Ted Park wrote:
> > Hi,
> >
> >> [AVFilterGraph @ 000001d1ff964340] No such filter:
> >> 'channelsplit=channel_layout=2.0[FL][FR]'
> >> Error initializing complex filters.
> >> Invalid argument
> >
> >> [AVFilterGraph @ 000002963fbe4340] No such filter:
> >> 'channelsplit=channel_layout=2.[FL][FR]'
> >> Error initializing complex filters.
> >> Invalid argument
> >
> >> [AVFilterGraph @ 000001a429734300] No such filter:
> >> 'channelsplit=channel_layout=[FL][FR]'
> >> Error initializing complex filters.
> >> Invalid argument
> >
> > That is weird. Maybe single quotes work differently in your command
> line, or are those apostrophes or something?? try moving the first quote
> after the equals sign, e.g. channelsplit=‘channel…..[FL][FR]’
> >
> > But even after it gets the channelsplit working the right channel layout
> name is probably stereo, and then you might have to move the channels from
> left and right to center (maybe aformat=cl=mono will suffice) take a look
> at the -map_channel option, it might be simpler for you.
> >
> > Regards,
> > Ted Park
>
> In my system (Linux Mint), the filter chain parameters for the
> '-filter_complex' directive *must* be
> double-quoted.
>
> HTH - Mark.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list