Linux Live stream not working while recording
#1
Hi!

I am using LibreELEC (official): 12.0.0 (RPi5.aarch64) with next-pvr service (Version: 6.1.5.231022) and next-pvr client (Version: 21.1.0.1) all on LE.
I am using IPTV playlist with multicast addresses and I have an issue that live stream is not working while recording. When I cancel recording than live stream is working.

When I click on live stream channel while recording I get instant message Playback failed: One or more items failed to play. Check the log for more infromation about this message.

I checked logs and in logs there is an error:

Code:

2024-06-04 15:45:33.592    [ERROR][236]    Unable to StartStream():
2024-06-04 15:45:33.592    [ERROR][236]    Unable to start live stream for timeshift: Unable to find available capture device
<rsp stat="fail">
  <err code="11" msg="Failed to start stream: Unable to find available capture device" />
</rsp>

Is there any limit for only one stream at a time or what am I missing?

I also tried messing with npvr.db3 and add a few more IPTV devices but without success still the same error. Does anybody have any hint what can I check to force kodi using more than one stream at a time?

Code:

2024-06-03 15:43:02.389    [DEBUG][22]    IPTV StartStream@8
2024-06-03 15:43:02.389    [ERROR][22]    Unable to StartStream(): 
2024-06-03 15:43:02.389    [ERROR][22]    Unable to start live stream for timeshift: Unable to find available capture device
2024-06-03 15:43:02.389    [DEBUG][22]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="11" msg="Failed to start stream: Unable to find available capture device" />
</rsp>

2024-06-03 15:43:02.393    [DEBUG][35]    Got request [127.0.0.1]: /service (channel.stream.stop)
2024-06-03 15:43:02.393    [DEBUG][35]    method=channel.stream.stop
2024-06-03 15:43:02.393    [DEBUG][35]    parameters: 
2024-06-03 15:43:02.393    [DEBUG][35]       method: channel.stream.stop
2024-06-03 15:43:02.393    [DEBUG][35]       sid: e82d62ba5ef14f63971c4ff9427a6d6f
2024-06-03 15:43:02.393    [DEBUG][35]       client_ip: 127.0.0.1
2024-06-03 15:43:02.393    [DEBUG][35]       user_agent: Kodi/21.0 (X11; Linux aarch64) LibreELEC/12.0 App_Bitness/64 Version/21.0-(21.0.0)-Git:21.0-Omega
2024-06-03 15:43:02.393    [DEBUG][35]       host_callback: ...
2024-06-03 15:43:02.393    [DEBUG][35]    StopStream@e82d62ba5ef14f63971c4ff9427a6d6f
2024-06-03 15:43:02.393    [DEBUG][35]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="ok">
</rsp>

2024-06-03 15:43:05.258    [DEBUG][32]    Got request [127.0.0.1]: /service (channel.stream.start)
2024-06-03 15:43:05.258    [DEBUG][32]    method=channel.stream.start
2024-06-03 15:43:05.258    [DEBUG][32]    parameters: 
2024-06-03 15:43:05.258    [DEBUG][32]       method: channel.stream.start
2024-06-03 15:43:05.258    [DEBUG][32]       channel_id: 9116
2024-06-03 15:43:05.258    [DEBUG][32]       sid: e82d62ba5ef14f63971c4ff9427a6d6f
2024-06-03 15:43:05.258    [DEBUG][32]       client_ip: 127.0.0.1
2024-06-03 15:43:05.258    [DEBUG][32]       user_agent: Kodi/21.0 (X11; Linux aarch64) LibreELEC/12.0 App_Bitness/64 Version/21.0-(21.0.0)-Git:21.0-Omega
2024-06-03 15:43:05.258    [DEBUG][32]       host_callback: ...
2024-06-03 15:43:05.258    [DEBUG][32]    StartStream(9116TongueOP TV)
2024-06-03 15:43:05.258    [DEBUG][32]    looking for capture source (in reverse priority order)
2024-06-03 15:43:05.258    [DEBUG][32]    checking: IPTV (http://...)
2024-06-03 15:43:05.258    [DEBUG][32]    enabled and present
2024-06-03 15:43:05.258    [DEBUG][32]    does not have channel
2024-06-03 15:43:05.258    [DEBUG][32]    checking: IPTV (http://...)
2024-06-03 15:43:05.258    [DEBUG][32]    enabled and present
2024-06-03 15:43:05.258    [DEBUG][32]    does not have channel
2024-06-03 15:43:05.258    [DEBUG][32]    checking: IPTV (http://...)
2024-06-03 15:43:05.258    [DEBUG][32]    enabled and present
2024-06-03 15:43:05.258    [DEBUG][32]    has channel
2024-06-03 15:43:05.258    [DEBUG][32]    ...resource is already in use, but this capture source supports multi-record and is on the same channel
2024-06-03 15:43:05.259    [DEBUG][32]    live tv is possible
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream@2
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream@3
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream@5
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream@6
2024-06-03 15:43:05.259    [DEBUG][32]    IPTV StartStream@7
2024-06-03 15:43:05.274    [DEBUG][32]    Requesting [nFlwiH3KixN8otubtqcCXi7ugEF8sIRPIwMVV0WGaJvKVBGhNzaB3Xdk4i9PQeHcm2JKZAyS3KEgzXHnMy1EHn8hPUHMAXIk2nmdRhO0uCrVpbu2D0QuAzmGpCVp3cyTrAJLDgEwJpjAXGLz9gPMsuiTS8k3gCJ0EvylqwtOv6uGeiJDuU/QzmNcWZm37cfUhDZI7CbwHQfEkezoCoCXv98vH9/aXyL7We7lFSYOVIV8e4dzQlbtZmsf2BWQhC0QAc4ErnkjJWb3KTqdz1SdZvYP8wazwGon3dNl9y9//m4Z+tJV/9CX0FQTX8O/BnAkp3k4uLscAOQaRyKlcuBy4esygj0hyy3vHC5erFPbMV1O/RYN+boRzUewvJXoyWsAGUCKPvq9uS67gMtFDoWuAQ==]
2024-06-03 15:43:05.274    [DEBUG][32]    IPTV StartStream@8
2024-06-03 15:43:05.274    [ERROR][32]    Unable to StartStream(): 
2024-06-03 15:43:05.274    [ERROR][32]    Unable to start live stream for timeshift: Unable to find available capture device
2024-06-03 15:43:05.274    [DEBUG][32]    <?xml version="1.0" encoding="utf-8" ?>
<rsp stat="fail">
  <err code="11" msg="Failed to start stream: Unable to find available capture device" />
</rsp>


Thanks in advanced,
regards Peter
Reply
#2
As noted you are looking at server logs, so this is a backend question for the NextPVR forum where you can post the full zipped logs (from the setting web page)  I hate snippets, and you are missing some import logs lines, but I think this message is not really valid for IPTV since it doesn't support multi-rec.

2024-06-03 15:43:05.258    [DEBUG][32]    ...resource is already in use, but this capture source supports multi-record and is on the same channel

@sub3 the author designed IPTV tuners a little different than other tuner types and so NextPVR prefers independent IPTV streams.  We can probably get you going with an Extra which allows recording and watching the same channel, overlapping padding etc as it looks like it it is your source URL that is rejecting the second open.

Martin
Reply
#3
Hi!

Yes, recording and watching of the same channel works in a way that next-pvr offers you to watch recording of that channel. I don't quite understand is this by design since it is made for tuners? But if you have more than one tuner than probably this might work? That's why I tried with more than one iptv device...

Peter
Reply
#4
Please support questions for the backend are on the NextPVR forum.  Your snippet doesn't help answer the question either.   If your destination is rejecting the call from NextPVR having the same URL called from a different NextPVR IPTV "device" won't help.

Martin
Reply

Logout Mark Read Team Forum Stats Members Help
Live stream not working while recording0