bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.54k stars 1.46k forks source link

OBS Twitch VOD Track AMFParseError(41) #2986

Open Grimonja opened 7 months ago

Grimonja commented 7 months ago

Which version are you using?

v1.5.0

Which operating system are you using?

Describe the issue

Trying to stream to the server with OBS and Twitch VOD Track enabled results in:

closed: AMFParseError(41)

Describe how to replicate the issue

  1. To even have an ability to send 2nd audio track with custom server in OBS you need to modify global.ini of OBS and add the following in the [General] options EnableCustomServerVodTrack=true
  2. Now select the Twitch VOD Track in encoding settings
  3. Start Streaming

Did you attach the server logs?

no

Did you attach a network dump?

no

aler9 commented 4 months ago

Hello, the ability to send a 2nd audio track is not present into the RTMP specifications and is probably a custom feature introduced to improve integration with Twitch. However, this could be a nice enhancement.

krakow10 commented 3 months ago

The ability for mediamtx to ingest the twitch VOD audio RTMP protocol extension is not that useful since you can stream with multiple audio tracks using SRT on the latest version of OBS, but being able to publish VOD audio to twitch from mediamtx would be useful.

aler9 commented 3 months ago

Summing up:

Since the RTMP hack would benefit only OBS and Twitch, and is not supported by anything else, there are not enough reasons to implement it inside MediaMTX.

krakow10 commented 3 months ago
  • The SRT protocol natively supports streaming multiple audio tracks to Twitch

This is not correct. Twitch can only ingest RTMP, and optionally their VOD track protocol extension. There is no other way to stream multiple audio tracks to Twitch to use their VOD audio feature.