[FFmpeg-user] In case of future deprecation, a backup of audio routing script shared for public servicing.

Sound Yuan soundyuanofficial at gmail.com
Tue Feb 12 06:26:55 EET 2019


Hi,

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.

Best regards,

On Tue, Feb 12, 2019, 11:36 AM Ted Park <kumowoon1025 at gmail.com wrote:

> > 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
>
> Since you don’t intend to up mix 2 channels to 5.1, I think you could just
> use amerge to mix the two inputs to one quad stream. This mapping seems
> like it would result in a very strange channel arrangement, I wonder if you
> have not noticed any distortion?
>
> Also, I am not familiar with directshow, what does rtbufsize 4 mean in
> this context? If it’s 4 bytes, that seems small. Checking that option and
> not reading the same input twice might improve performance.
>
> ffmpeg -f dshow -i audio=“Line 1 (Virtual Audio Cable)” -f dshow -i
> audio=“Line 2 (Virtual Audio Cable)” -lavfi
> “join=inputs=2:channel_layout=quad” ...
> _______________________________________________
> 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