Jump to content
  • 0

one video stream with multiple audio tracks ?


Alex A
 Share

Question

Hi,

Simple question: is it possible to have a single video stream which contains multiple (7x different) audio tracks, and on the client-side be able to select which audio tracks in the video stream should be played ?

This is because we want to make a very specific mergestream which contains 7 different audio tracks, and on the client side we want to play all the audio EXCEPT for individual audio tracks which the client can 'mute'.

So imagine a mergestream feed (single stream) which the viewers can MUTE the audio of individual participants within that stream.

So to do this, we imagine we would like 7x audio tracks inside the video stream, and be able to play/mute each audio track individually.

----
We could of course setup 7 independent streams, one for each audio track, but we are trying to simplify this and contain it within one stream.

Is this possible ?

Thanks!

Alex.
Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

Hi Alex,

This feature is in development right now in the server side. What I did so far for the feature is in these issues. It requires a bit of architectural change to support multiple tracks in the same stream so we are working on that. Also, there might be a solution in the application level for such task, stream_merger.js as we talked has a mute flag also. If you publish to a conference room with multiple audio tracks you can merge them on client side and mute the ones you like with mute flag, however, in this case you need to develop a system that the watcher sends commands to the merger client for muting and unmuting. I hope I could clearly explain this, if you want to go that direction I can help more with the mute flag.

Cheers

 

Link to comment
Share on other sites

  • 0

Hi Tahir,

Thanks for your help - yes i understood what you meant. 

The problem is i want each viewer to independently mute some audio feeds in the merged stream...  for example there are 6 people in the boradcast but 50x viewers, and some viewers may want to mute person1, but others do not.  So sending a mute command back to the merger for muting tasks will not help.

What I did for now is to broadcast a merged stream (singular) with 7x audio streams separately... the timing looks okay, they do not seem to become 'out of sync' with the video - so this appears to work okay.

Thanks!

Alex.

 

Link to comment
Share on other sites

  • 0

Hi,

Yep, I got your request, like I said it is in development right now, actually some part is done. You will be able to send websocket messages from client to the server about which audio tracks you want to disable, it is done for video but we needed to change low level architecture for audio, check out the PR: https://github.com/ant-media/StreamApp/pull/168/files

I think it will be there for 2.3.4 version, it will not catch 2.3.3 .

Cheers

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...