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

Problem with playing H265 in Edge browser #1608

Closed
pascalgeusen opened this issue Feb 19, 2025 · 10 comments
Closed

Problem with playing H265 in Edge browser #1608

pascalgeusen opened this issue Feb 19, 2025 · 10 comments
Labels
question Further information is requested

Comments

@pascalgeusen
Copy link

pascalgeusen commented Feb 19, 2025

Hello,

I have installed go2rtc in a Docker container on Synology nas. I have added the RTSP streams in de config file. When I open a stream I see a still image but no live feed.

When using the same RTSP stream in VCL Player the video feed is working just fine.

streams:
  stream1:
    - rtsp://user:[email protected]:80/rtsp/streaming?channel=01&subtype=1
    - hls:stream1.m3u8`

What do I have to setup/change?

@AlexxIT AlexxIT added the question Further information is requested label Feb 19, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 19, 2025

Check stream probe from go2rtc WebUI

@pascalgeusen
Copy link
Author

OK. When I check the probe from the WebUI. What should I look for?

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 19, 2025

Just post it here

@pascalgeusen
Copy link
Author

pascalgeusen commented Feb 19, 2025

OK

{
  "producers": [
    {
      "id": 23,
      "format_name": "rtsp",
      "protocol": "rtsp+tcp",
      "remote_addr": "10.2.120.11:80",
      "url": "rtsp://xxxx:[email protected]:80/rtsp/streaming?channel=01\u0026subtype=01",
      "sdp": "v=0\r\no=- 48523793107 48523793107 IN IP4 10.2.120.11\r\ns=RTSP Session\r\nt=0 0\r\nm=video 0 RTP/AVP 96\r\na=control:rtsp://10.2.120.11:80/rtsp/streaming?channel=1\u0026subtype=1\u0026trackID=1\r\na=rtpmap:96 H265/90000\r\na=framerate:30\r\na=x-dimensions:1280,720\r\na=fmtp:96 sprop-vps=QAEMAf//AWAAAAMAAAMAAAMAAAMAlqwJ; sprop-sps=QgEBAWAAAAMAAAMAAAMAAAMAlqACgIAtFja5JMmuWcAgAAB9IAAOqcE=; sprop-pps=RAHgdrAmQA==\r\na=recvonly\r\nm=audio 0 RTP/AVP 8\r\na=control:rtsp://10.2.120.11:80/rtsp/streaming?channel=1\u0026subtype=1\u0026trackID=2\r\na=rtpmap:8 PCMA/8000\r\na=recvonly\r\nm=audio 0 RTP/AVP 8\r\na=control:rtsp://10.2.120.11:80/rtsp/streaming?channel=1\u0026subtype=1\u0026trackID=3\r\na=rtpmap:8 PCMA/8000\r\na=sendonly\r\n",
      "user_agent": "go2rtc/1.9.4",
      "medias": [
        "video, recvonly, H265",
        "audio, recvonly, PCMA/8000",
        "audio, sendonly, PCMA/8000"
      ],
      "receivers": [
        {
          "id": 24,
          "codec": {
            "codec_name": "hevc",
            "codec_type": "video"
          },
          "childs": [
            25
          ]
        },
        {
          "id": 26,
          "codec": {
            "codec_name": "pcm_alaw",
            "codec_type": "audio",
            "sample_rate": 8000
          },
          "childs": [
            27
          ]
        }
      ],
      "senders": [
        {
          "id": 29,
          "codec": {
            "codec_name": "pcm_alaw",
            "codec_type": "audio",
            "sample_rate": 8000
          },
          "parent": 28
        }
      ]
    }
  ],
  "consumers": [
    {
      "id": 22,
      "format_name": "probe",
      "protocol": "http",
      "remote_addr": "10.2.10.31:64519",
      "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0",
      "medias": [
        "video, sendonly, ALL",
        "audio, sendonly, ALL",
        "audio, recvonly, ANY"
      ],
      "receivers": [
        {
          "id": 28,
          "codec": {
            "codec_name": "ANY",
            "codec_type": ""
          },
          "childs": [
            29
          ]
        }
      ],
      "senders": [
        {
          "id": 25,
          "codec": {
            "codec_name": "hevc",
            "codec_type": "video"
          },
          "parent": 24
        },
        {
          "id": 27,
          "codec": {
            "codec_name": "pcm_alaw",
            "codec_type": "audio",
            "sample_rate": 8000
          },
          "parent": 26
        }
      ]
    }
  ]
}

@AlexxIT AlexxIT changed the title go2rtc on Synology Docker Problem with playing H265 in Edge browser Feb 19, 2025
@AlexxIT
Copy link
Owner

AlexxIT commented Feb 19, 2025

Well. H265 videos may indeed not always work well in the browser. It all depends on the browser and the quality of the stream.
Do you see a real camera shot or a black screen?

@pascalgeusen
Copy link
Author

pascalgeusen commented Feb 19, 2025

I am using most updated version of Edge on Windows 11.
What I see is a real camera shot.

I do not need H265. I just want to convert the RTSP to a stream that I can display in a website. Any format is OK by me.

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 19, 2025

You can change H265 to H264 in your camera settings. Or use transcoding via ffmpeg source (check go2rtc docs).

@pascalgeusen
Copy link
Author

I changed the camera settings to H264 and it is working now. Thank you very much.

@AlexxIT AlexxIT closed this as completed Feb 20, 2025
@pana800
Copy link

pana800 commented Feb 20, 2025

You can change H265 to H264 in your camera settings. Or use transcoding via ffmpeg source (check go2rtc docs).

In case the camera has no such setting. Can we convert the stream to H264 or any IOS compatible format?

@AlexxIT
Copy link
Owner

AlexxIT commented Feb 20, 2025

The answer is in the sentence which you quoted.

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

No branches or pull requests

3 participants