-
Notifications
You must be signed in to change notification settings - Fork 2.2k
alwaysAvailable streams are unavailable after disconnect #5559
Copy link
Copy link
Open
Description
Which version are you using?
1.16.3
Which operating system are you using?
Windows amd64 standard, Other (please describe), Linux amd64 standard
Describe the issue
I have only tested this in an emulated environment, but when I use the alwaysAvailable setting, streams appear offline after they disconnect.
Setting (per path):
alwaysAvailable: true
alwaysAvailableTracks:
- codec: H265My data is produced via gstreamer
VLC logs
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
live555 warning: no data received in 10s, eof ?
main debug: EOF reached
main debug: waiting decoder fifos to empty
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: saving a free vout
main debug: reusing provided vout
main debug: removing module "hevc"
main debug: removing module "live555"
main debug: Program doesn't contain anymore ES
main debug: dead input
main debug: changing item without a request (current 4/5)
main debug: nothing to play
main debug: destroying useless vout
main debug: removing module "direct3d11"
direct3d11 debug: Direct3D11 resources destroyed
qt debug: IM: Deleting the input
direct3d11 debug: Direct3D11 device adapter closed
direct3d11 error: SetThumbNailClip failed: 0x800706f4
direct3d11 debug: Win32 Vout EventThread terminating
direct3d11 debug: Win32VoutCloseWindow
direct3d11 debug: WinProc WM_DESTROY
main debug: removing module "inhibit"
qt debug: releasing video...
qt debug: video widget is released
main debug: removing module "freetype"
main debug: removing module "yuvp"
main debug: removing module "swscale"
main debug: processing request item: rtsp://172.23.61.219:8554/Demo.LoRes, node: Playlist, skip: 0
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 6 items, index 5
main debug: starting playback of new item
main debug: resyncing on rtsp://172.23.61.219:8554/Demo.LoRes
main debug: rtsp://172.23.61.219:8554/Demo.LoRes is at 5
main debug: creating new input thread
main debug: Creating an input for 'rtsp://172.23.61.219:8554/Demo.LoRes'
main debug: requesting art for new input thread
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path: C:\Users\jswallen\AppData\Local\Temp
main debug: `rtsp://172.23.61.219:8554/Demo.LoRes' gives access `rtsp' demux `any' path `172.23.61.219:8554/Demo.LoRes'
main debug: creating demux: access='rtsp' demux='any' location='172.23.61.219:8554/Demo.LoRes' file='\\172.23.61.219:8554\Demo.LoRes'
main debug: looking for access_demux module matching "rtsp": 15 candidates
live555 debug: version 2016.11.28
main debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\jswallen\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
main debug: no meta fetcher modules matched
main debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\jswallen\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
live555 debug: RTP subsession 'video/H265'
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
main debug: selecting program id=0
live555 debug: setup start: 0.000000 stop:0.000000
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
live555 debug: We have a timeout of 55 seconds
live555 debug: play start: 0.000000 stop:0.000000
main debug: using access_demux module "live555"
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "hevc"
main debug: looking for video decoder module matching "any": 20 candidates
avcodec debug: using ffmpeg Lavc58.134.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 10 thread(s) for decoding
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
avcodec debug: codec (hevc) started
avcodec debug: using frame thread mode with 10 threads
main debug: using video decoder module "avcodec"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\jswallen\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `rtsp://172.23.61.219:8554/Demo.LoRes' successfully opened
qt debug: IM: Setting an input
live555 warning: no data received in 10s. Switching to TCP
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: removing module "hevc"
main debug: Program doesn't contain anymore ES
live555 debug: RTP subsession 'video/H265'
main debug: looking for packetizer module matching "any": 25 candidates
main debug: using packetizer module "hevc"
main debug: looking for video decoder module matching "any": 20 candidates
avcodec debug: using ffmpeg Lavc58.134.100
avcodec debug: CPU flags: 0x000fd3db
avcodec debug: allowing 10 thread(s) for decoding
avcodec debug: codec (hevc) started
avcodec debug: using frame thread mode with 10 threads
main debug: using video decoder module "avcodec"
live555 debug: setup start: 0.000000 stop:0.000000
live555 debug: We have a timeout of 55 seconds
live555 debug: play start: 0.000000 stop:0.000000
live555 error: no data received in 10s, aborting
main debug: EOF reached
main debug: killing decoder fourcc `hevc'
main debug: removing module "avcodec"
main debug: removing module "hevc"
main debug: removing module "live555"
main debug: Program doesn't contain anymore ES
main debug: dead input
main debug: changing item without a request (current 5/6)
main debug: nothing to play
qt debug: IM: Deleting the input
Describe how to replicate the issue
- publish with gstreamer (set stream state to PLAYING)
- start the MediaMTX
- read with vlc (
rtsp://172.23.61.219:8554/Demo.LoRes, where 172.23.61.219 is my WSL IP from Windows) - view the stream
- stop gstreamer (set stream state to NULL)
- the stream disconnects according to VLC
- attempt to re-connect VLC
- the stream never displays the "STREAM IS OFFLINE" message
in contrast, if gstreamer is not running at startup, the "STREAM IS OFFLINE" video is displayed.
setup: Running natively in WSL2 Ubuntu 24.04, talking to VLC on Windows host.
MediaMTX configuration
paths:
Demo.LoRes:
source: udp+rtp://@239.0.0.100:4444?interface=docker0
rtpSDP: |
v=0
m=video 4444 RTP/AVP 96
c=IN IP4 239.0.0.100
a=rtpmap:96 H265/90000
alwaysAvailable: true
alwaysAvailableTracks:
- codec: H265MediaMTX logs
Mar 10 00:00:59 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:54069] [c->s] TEARDOWN rtsp://172.23.61.219:8554/Demo.LoRes/ RTSP/1.0
CSeq: 6
Session: 1550be68cf694e42adeff767593dcbc6
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:00:59 RS-79QTZ84 mediamtx[8134]: [RTSP] [session bbcbfe36] destroyed: torn down by 172.23.48.1:54069
Mar 10 00:00:59 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:54069] [s->c] RTSP/1.0 200 OK
CSeq: 6
Server: gortsplib
Mar 10 00:00:59 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:54069] closed: EOF
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] opened
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [c->s] OPTIONS rtsp://172.23.61.219:8554/Demo.LoRes RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [s->c] RTSP/1.0 200 OK
CSeq: 2
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [c->s] DESCRIBE rtsp://172.23.61.219:8554/Demo.LoRes RTSP/1.0
Accept: application/sdp
CSeq: 3
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [s->c] RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://172.23.61.219:8554/Demo.LoRes/
Content-Length: 274
Content-Type: application/sdp
Server: gortsplib
v=0
o=- 0 0 IN IP4 127.0.0.1
s=
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H265/90000
a=fmtp:96 sprop-pps=RAHBcrRiQA==; sprop-sps=QgEBAWAAAAMAkAAAAwAAAwBdoAKAgC0WWVmkkyvAWlIIAAAfQAAB1MBA; sprop-vps
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [c->s] SETUP rtsp://172.23.61.219:8554/Demo.LoRes/trackID=0 RTSP/1.
CSeq: 4
Transport: RTP/AVP;unicast;client_port=63852-63853
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 737ae3d7] created by 172.23.48.1:55741
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [s->c] RTSP/1.0 200 OK
CSeq: 4
Server: gortsplib
Session: b6537cba160b4b218823dee31e43499d;timeout=55
Transport: RTP/AVP;unicast;client_port=63852-63853;server_port=8000-8001;ssrc=FEF51453
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [c->s] PLAY rtsp://172.23.61.219:8554/Demo.LoRes/ RTSP/1.0
CSeq: 5
Range: npt=0.000-
Session: b6537cba160b4b218823dee31e43499d
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 737ae3d7] is reading from path 'Demo.LoRes', with UDP, 1 track (H265)
Mar 10 00:01:10 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [s->c] RTSP/1.0 200 OK
CSeq: 5
RTP-Info: url=rtsp://172.23.61.219:8554/Demo.LoRes/trackID=0;seq=43018;rtptime=69943561
Server: gortsplib
Session: b6537cba160b4b218823dee31e43499d;timeout=55
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [c->s] TEARDOWN rtsp://172.23.61.219:8554/Demo.LoRes/ RTSP/1.0
CSeq: 6
Session: b6537cba160b4b218823dee31e43499d
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 737ae3d7] destroyed: torn down by 172.23.48.1:55741
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] [s->c] RTSP/1.0 200 OK
CSeq: 6
Server: gortsplib
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55741] closed: EOF
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] opened
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [c->s] OPTIONS rtsp://172.23.61.219:8554/Demo.LoRes RTSP/1.0
CSeq: 2
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [s->c] RTSP/1.0 200 OK
CSeq: 2
Public: DESCRIBE, ANNOUNCE, SETUP, PLAY, RECORD, PAUSE, GET_PARAMETER, TEARDOWN
Server: gortsplib
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [c->s] DESCRIBE rtsp://172.23.61.219:8554/Demo.LoRes RTSP/1.0
Accept: application/sdp
CSeq: 3
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [s->c] RTSP/1.0 200 OK
CSeq: 3
Content-Base: rtsp://172.23.61.219:8554/Demo.LoRes/
Content-Length: 274
Content-Type: application/sdp
Server: gortsplib
v=0
o=- 0 0 IN IP4 127.0.0.1
s=
c=IN IP4 0.0.0.0
t=0 0
m=video 0 RTP/AVP 96
a=control:trackID=0
a=rtpmap:96 H265/90000
a=fmtp:96 sprop-pps=RAHBcrRiQA==; sprop-sps=QgEBAWAAAAMAkAAAAwAAAwBdoAKAgC0WWVmkkyvAWlIIAAAfQAAB1MBA; sprop-vps=QAEMAf//AWAAAAMAkAAAAwAAAwBdlZgJ
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [c->s] SETUP rtsp://172.23.61.219:8554/Demo.LoRes/trackID=0 RTSP/1.0
CSeq: 4
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 785284aa] created by 172.23.48.1:55756
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [s->c] RTSP/1.0 200 OK
CSeq: 4
Server: gortsplib
Session: 65a2e6be7d0246b590a0ffc7516a4eb1;timeout=55
Transport: RTP/AVP/TCP;unicast;interleaved=0-1;ssrc=FEF51453
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [c->s] PLAY rtsp://172.23.61.219:8554/Demo.LoRes/ RTSP/1.0
CSeq: 5
Range: npt=0.000-
Session: 65a2e6be7d0246b590a0ffc7516a4eb1
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 785284aa] is reading from path 'Demo.LoRes', with TCP, 1 track (H265)
Mar 10 00:01:21 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [s->c] RTSP/1.0 200 OK
CSeq: 5
RTP-Info: url=rtsp://172.23.61.219:8554/Demo.LoRes/trackID=0;seq=43018;rtptime=70913116
Server: gortsplib
Session: 65a2e6be7d0246b590a0ffc7516a4eb1;timeout=55
Mar 10 00:01:32 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [c->s] TEARDOWN rtsp://172.23.61.219:8554/Demo.LoRes/ RTSP/1.0
CSeq: 6
Session: 65a2e6be7d0246b590a0ffc7516a4eb1
User-Agent: LibVLC/3.0.21 (LIVE555 Streaming Media v2016.11.28)
Mar 10 00:01:32 RS-79QTZ84 mediamtx[8134]: [RTSP] [session 785284aa] destroyed: torn down by 172.23.48.1:55756
Mar 10 00:01:32 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] [s->c] RTSP/1.0 200 OK
CSeq: 6
Server: gortsplib
Mar 10 00:01:32 RS-79QTZ84 mediamtx[8134]: [RTSP] [conn 172.23.48.1:55756] closed: received unexpected interleaved frame
Packet dump
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels