Skip to content

Config "fallback: MRL" dont working #201

@brandousov

Description

@brandousov

Which version are you using?

v0.14.0

Which operating system are you using?

OS

  • [x ] Linux
  • Windows
  • macOS

Architecture

  • [x ] amd64
  • arm64
  • arm7
  • arm6

Describe the issue

fallback dont works as described - "url to redirect clients to when nobody is publishing to this path".

Describe how to replicate the issue

  1. start the server
  2. publish with config:
paths:
# For Debugging - my proxied home camera
  test:
    source: record
    sourceProtocol: automatic
    sourceOnDemand: yes
    sourceOnDemandStartTimeout: 10s
    sourceOnDemandCloseAfter: 10s
    #publishIps: [127.0.0.1]
    fallback: rtsp://127.0.0.1:8554/fallback

  fallback:
    source: record
    runOnDemand: ffmpeg -re -stream_loop -1 -i "/opt/icmedia/fallback.mp4" -c copy -an -r 1 -f rtsp "rtsp://127.0.0.1:8554/fallback" -hide_banner
    runOnDemandRestart: yes
    sourceProtocol: automatic
    sourceOnDemand: yes
    sourceOnDemandStartTimeout: 10s
    sourceOnDemandCloseAfter: 10s

Fallback movie src:
https://github.com/brandousov/pix/blob/main/fallback.mp4

When I have not publishing to path, or stops publishing, VLC just stops translation and trying to reconnect, no alternative (fallback) video shown instead.

Did you attach a network dump?

no

==> /opt/icmedia/logs/rtsp.log <==
2021/02/08 03:24:12 [I] [0/0/0] [client 10.0.0.2:13252] disconnected
2021/02/08 03:24:14 [I] [1/0/0] [client 10.0.0.2:13254] connected (plain)
2021/02/08 03:24:14 [I] [1/0/0] [client 10.0.0.2:13254] ERR: no one is publishing to path 'test'
2021/02/08 03:24:14 [I] [0/0/0] [client 10.0.0.2:13254] disconnected
2021/02/08 03:24:14 [I] [1/0/0] [client 10.0.0.2:13255] connected (plain)
2021/02/08 03:24:14 [I] [0/0/0] [client 10.0.0.2:13255] disconnected
2021/02/08 03:24:25 [I] [1/0/0] [client 10.0.0.2:13258] connected (plain)
2021/02/08 03:24:25 [I] [1/1/0] [client 10.0.0.2:13258] is publishing to path 'test', 1 track with udp (its me by ffmpeg)
2021/02/08 03:24:37 [I] [2/1/0] [client 10.0.0.2:13259] connected (plain)
2021/02/08 03:24:37 [I] [2/1/1] [client 10.0.0.2:13259] is reading from path 'test', 1 track with udp

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions