[FFmpeg-user] In case of future deprecation, a backup of audio routing script shared for public servicing.
Sound Yuan
soundyuanofficial at gmail.com
Sat Mar 16 16:57:28 EET 2019
Hi again,
For anyone interested, I used ffplay to minimize the wait-start time and
maybe the resource cost after the post. However tonight it won't work
anymore on my Win10: It just insists converting my 5.1 ffplay sound pipe
into stereo, so I changed back to second-best VLC player option and it
plays fine now. Now I can study online videos(!) with non-interfering
background music.
Best regards,
On Wed, Feb 13, 2019 at 8:47 AM Sound Yuan <soundyuanofficial at gmail.com>
wrote:
> Hi,
>
> It's the pan filter's magic now. Thanks to everyone involved.
>
> ffmpeg -f dshow -i audio="Line 1 (Virtual Audio Cable)" -filter_complex
> "pan=5.1|BL=c0|BR=c1" -vn -f wav -vol 1024 - | "C:\vlc-3.0.6\vlc.exe" -
> --prefetch-buffer-size=400
>
> Best regards,
>
> On Tue, Feb 12, 2019 at 9:44 PM Moritz Barsnick <barsnick at gmx.net> wrote:
>
>> On Tue, Feb 12, 2019 at 12:26:55 +0800, Sound Yuan wrote:
>> > Thanks for the suggestion. Forgot to tell that Line 1 is the real output
>> > whereas Line 2 is a silenced source for nullifying front channels. I use
>> > two cables separately for rear and front jacks, with earphones attached
>> to
>> > front one's extension and stereos to the rear's; Would try the quad
>> > configuration when home after-hours.
>> [...]
>> > > > On Feb 11, 2019, at 6:42 PM, Sound Yuan <
>> soundyuanofficial at gmail.com> wrote:
>> > > >
>> > > > ffmpeg -f dshow -rtbufsize 4 -i audio="Line 1 (Virtual Audio
>> Cable)" -f
>> > > dshow -rtbufsize 4 -i audio="Line 2 (Virtual Audio Cable)" -f dshow
>> > > -rtbufsize 4 -i audio="Line 2 (Virtual Audio Cable)" -filter_complex
>> > > "[0:a][1:a][2:a]amerge=inputs=3[a]" -map "[a]" -ar 48000 -vn -f wav -
>> |
>> > > ffmpeg -i - -filter_complex
>> > >
>> "channelmap=map=FL-BL|FR-BR|FC-FC|LFE-LFE|BL-FL|BR-FR:channel_layout=5.1”
>> > > -vn -f wav -vol 1024 - | "C:\vlc-3.0.6\vlc.exe" -
>> --prefetch-buffer-size=400
>>
>> I'm quite sure you can also chain the filters from the first and the
>> second ffmpeg command. This could in turn reduce some of the latency.
>>
>> >
>> $ [...] -filter_complex
>> "[0:a][1:a][2:a]amerge=inputs=3,channelmap=map=FL-BL|FR-BR|FC-FC|LFE-LFE|BL-FL|BR-FR:channel_layout=5.1"
>> [...]
>>
>> (without judging about the use of the filters for your use-case).
>>
>> Moritz
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://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