Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Track Composite archive when the participant publishes new tracks #97

Closed
clemos opened this issue Sep 2, 2022 · 2 comments
Closed

Comments

@clemos
Copy link

clemos commented Sep 2, 2022

Hi !

The blog post about Egress launch reads the following:
https://blog.livekit.io/livekit-universal-egress-launch/

Track Composite automatically synchronizes and combines a single participant's audio and video tracks, and exports them to a standalone file or RTMP stream. This option is handy for recording each participant individually, such as during a live performance.

However, we made some tests, and it seems that in track composite mode, if the participant publishes a new track, the track is not added to the output video archive. For instance, if a participant has an audio track published, starts egress track composite, and then publishes a video track, the resulting archive will only contain the audio stream.

Is it the expected behavior ? In this case, should I start a new track composite egress whenever a new track is published within the participant's stream ? More generally, how to deal with change of camera or microphone ?

Thanks a lot 🙏

@davidzhao
Copy link
Member

Yes, this is expected with the current APIs. You need both audio & video IDs before starting the egress.

We are evaluating a simpler option where you can pass in only the participant's identity.

Currently we would recommend starting the composite only after both microphone and camera are published.

When camera and microphone are changed, you can use the replaceTrack API to swap the input devices without unpublishing the track first.

@jibon57
Copy link

jibon57 commented Sep 9, 2022

@davidzhao having option to automatically start capturing media will be helpful instated of passing media id every time. Will be waiting for this feature 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants