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.41k stars 1.45k forks source link

Error to read HLS in ondemand mode from RTSP H.265 source #1695

Closed timerlan closed 1 year ago

timerlan commented 1 year ago

Which version are you using?

v0.22.0

Which operating system are you using?

Describe the issue

Try to convert RTSP H.265 stream from HikVision to HLS in OnDemand mode. After open browser i have error 404 to open /stream502/init.mp4

Google Chrome log

GET 200 /stream502/index.m3u8
GET 200 /stream502/stream.m3u8
GET 404 /stream502/init.mp4

HLS config

hlsDisable: no
hlsAddress: :8888
hlsEncryption: no
hlsServerKey: server.key
hlsAlwaysRemux: no
hlsVariant: fmp4
hlsSegmentCount: 7
hlsSegmentDuration: 1s
hlsPartDuration: 200ms
hlsSegmentMaxSize: 50M
hlsAllowOrigin: '*'
hlsTrustedProxies: []

Config source config

paths:
  stream502:
    source: rtsp://login:password@192.168.0.5:554/ISAPI/Streaming/Channels/502
    sourceProtocol: tcp
    sourceAnyPortEnable: no
    sourceOnDemand: yes
    sourceOnDemandStartTimeout: 60s
    sourceOnDemandCloseAfter: 10s
    disablePublisherOverride: no
    runOnInitRestart: no
    runOnDemandRestart: no
    runOnDemandStartTimeout: 60s
    runOnDemandCloseAfter: 10s
    runOnReadyRestart: no
    runOnReadRestart: no

Describe how to replicate the issue

  1. start the server
  2. read stream from video recorder
  3. open in Google Chrome

Did you attach the server logs?

yes

github-actions[bot] commented 1 year ago

This issue is being automatically closed because it does not follow the issue template. Please reopen the issue and make sure to include all sections of the template.

github-actions[bot] commented 10 months ago

This issue is being locked automatically because it has been closed for more than 6 months. Please open a new issue in case you encounter a similar problem.