VLM • Two audio tracks in a mosaic



Good time of day. There is a mosaic that works great. But only if the stream has one audio track. If there are more, then only one is output.

Code:

del allnew muchn0 broadcast loop option no-sout-keep option sout-all option network-caching=3000 option audio-language=ru input "http://stream...." output #duplicate{dst=mosaic-bridge{id=c1,width=1920,height=1080},select=video,dst=bridge-out{id=c1},select=audio} enabledcontrol muchn0 playnew bg broadcast loop option no-sout-keep option sout-all option network-caching=3000 input "100bg.bmp" output #transcode{sfilter=mosaic,fps=25,vcodec=mpgv}:bridge-in{id-offset=100}:standard{access=http,mux=ts,dst=0.0.0.0:8182} enabledcontrol bg play

However, if the mosaic is implemented like this, then all audio tracks are output

Code:

del allnew bg broadcast loop option no-sout-keep option sout-all option network-caching=3000 input "http://stream...." output #transcode{sfilter=mosaic,fps=25,vcodec=mpgv}:bridge-in{id-offset=100}:standard{access=http,mux=ts,dst=0.0.0.0:8182} enabledcontrol bg play

Well, the eternal question is: “Is the cat to blame and what to do?”

Statistics: Posted by skuwakin — 16 May 2024 21:49