Getting egress filename when recording completes automatically

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

Do you always have to stop egress manually? I’ve been getting this error:

Failed to stop egress: TwirpError(code=failed_precondition, message=egress with status EGRESS_COMPLETE cannot be stopped, status=412)

I need the filename that stop_egress outputs. How can I get this?

Depending on the recording type, egress will stop automatically when:

  • A room ends (for room composite)
  • A participant leaves (for participant recording)

Your error message actually indicates that egress completed successfully - you don’t need to stop it manually in these cases.

To get the filename and other egress info, use webhooks: