-
|
Hello. I'm trying to test the WHIP ingestion option using GStreamer's whipsink. I also tried specifiying video_codec,audio_codec and video_bitrate:
With both of this lines, I get an error 400 from mediamtx. Checking the logs, this shows up: ` v=0 2023/05/23 20:46:43 INF [WebRTC] [session 8da363c2] created by 127.0.0.1 It seems like the parser is finding an 'v' character where it should not be present, I'm assuming on the SDP offer, in the first line, v=0. Any clue? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Hello, i checked the code and it seems that WHIP is not implemented correctly: the server expects the WebRTC offer to be in JSON format, while it should be in raw format. This will be fixed ASAP. |
Beta Was this translation helpful? Give feedback.
-
|
This is fixed by #1861. You also need to remove video_codec, audio_codec and video_bitrate from the query, since they are needed by browsers only and have no effect on GStreamer: |
Beta Was this translation helpful? Give feedback.
-
|
This discussion is being locked automatically because the last update was more than 2 years ago. Do not use the content of this discussion as reference since it's probably outdated! The official documentation is the only place in which you can find up-to-date answers. |
Beta Was this translation helpful? Give feedback.
This is fixed by #1861. You also need to remove video_codec, audio_codec and video_bitrate from the query, since they are needed by browsers only and have no effect on GStreamer: