NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Docker amd64 v
« Previous 1 2 3 4 5 … 10 Next »
"stream@2 got zero bytes" --

 
  • 0 Vote(s) - 0 Average
"stream@2 got zero bytes" --
MarkyMark
Offline

Junior Member

USA
Posts: 6
Threads: 1
Joined: Oct 2024
#1
2024-12-02, 06:50 PM
Hello! I have a fairly straightforward setup that randomly (but regularly) drops a live stream with the following log message typically preceding the stream failure:
Quote:stream@2 got zero bytes

Connecting directly to the tuner does not appear to have the same issue. My Tuner is hardwired directly to my nextPVR linux box. Here's the basic setup:

Tuner: HDHR5-2US (Firmware: 20231214)
PVR: NextPVR (Version: 7.0.0.241105, docker container on a Linux host)
TV: Amazon Firestick (latest) Kodi (21.0) - NextPVR Addon (21.2.0)

The same behavior happens on two different clients. Both are the exact same(firestick -> kodi -> PVR) but one is hardwired, one is connected over WiFi. The channels that get dropped are very strong signals. For example:

Local CBS affiliate:
Quote:Virtual Channel
4.1 KCNC-TV
Frequency
599.000 MHz
Program Number
1

Modulation Lock
8vsb
Signal Strength
100%
Signal Quality
100%
Symbol Quality
100%
Local NBC affiliate:
Quote:Virtual Channel
9.1 KUSA-HD
Frequency
189.000 MHz
Program Number
1

Modulation Lock
8vsb
Signal Strength
100%
Signal Quality
91%
Symbol Quality
100%

Here are the logs that I pulled from NextPVR for what I believe is the whole request -- opening the stream to it failing:
Code:
024-12-02 02:02:34.397 [DEBUG][251] Got request [192.168.1.117]: /service (channel.transcode.lease) 2024-12-02 02:02:34.397 [DEBUG][251] method=channel.transcode.lease 2024-12-02 02:02:34.397 [DEBUG][251] parameters: 2024-12-02 02:02:34.398 [DEBUG][251]   method: channel.transcode.lease 2024-12-02 02:02:34.398 [DEBUG][251]   sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:34.398 [DEBUG][251]   client_ip: 192.168.1.117 2024-12-02 02:02:34.398 [DEBUG][251]   user_agent: Kodi/21.1 (Linux; Android 7.1.2; AFTMM Build/NS6708) Android TV/7.1.2 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10 2024-12-02 02:02:34.398 [DEBUG][251]   host_callback: ... 2024-12-02 02:02:34.398 [DEBUG][251] Renew lease ok (0x19001D) 2024-12-02 02:02:34.398 [DEBUG][251] <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> </rsp> 2024-12-02 02:02:41.405 [DEBUG][305] Got request [192.168.1.117]: /service (channel.transcode.lease) 2024-12-02 02:02:41.405 [DEBUG][305] method=channel.transcode.lease 2024-12-02 02:02:41.405 [DEBUG][305] parameters: 2024-12-02 02:02:41.405 [DEBUG][305]   method: channel.transcode.lease 2024-12-02 02:02:41.405 [DEBUG][305]   sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:41.406 [DEBUG][305]   client_ip: 192.168.1.117 2024-12-02 02:02:41.406 [DEBUG][305]   user_agent: Kodi/21.1 (Linux; Android 7.1.2; AFTMM Build/NS6708) Android TV/7.1.2 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10 2024-12-02 02:02:41.406 [DEBUG][305]   host_callback: ... 2024-12-02 02:02:41.406 [DEBUG][305] Renew lease ok (0x19001D) 2024-12-02 02:02:41.406 [DEBUG][305] <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> </rsp> 2024-12-02 02:02:41.411 [DEBUG][305] Got request [192.168.1.117]: /service (channel.stream.info) 2024-12-02 02:02:41.411 [DEBUG][305] method=channel.stream.info 2024-12-02 02:02:41.411 [DEBUG][305] parameters: 2024-12-02 02:02:41.411 [DEBUG][305]   method: channel.stream.info 2024-12-02 02:02:41.411 [DEBUG][305]   sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:41.411 [DEBUG][305]   client_ip: 192.168.1.117 2024-12-02 02:02:41.411 [DEBUG][305]   user_agent: Kodi/21.1 (Linux; Android 7.1.2; AFTMM Build/NS6708) Android TV/7.1.2 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10 2024-12-02 02:02:41.411 [DEBUG][305]   host_callback: ... 2024-12-02 02:02:41.411 [DEBUG][305] <map>   <stream_length>372520636</stream_length>   <stream_duration>260701</stream_duration>   <live>true</live>   <complete>false</complete>   <files>     <file>       <filename>/buffer/live-KUSA-HD-14.ts</filename>       <offset>0</offset>       <start_ms>0</start_ms>       <end_ms>0</end_ms>     </file>   </files> </map> 2024-12-02 02:02:41.411 [DEBUG][305] <map>   <stream_length>372520636</stream_length>   <stream_duration>260701</stream_duration>   <live>true</live>   <complete>false</complete>   <files>     <file>       <filename>/buffer/live-KUSA-HD-14.ts</filename>       <offset>0</offset>       <start_ms>0</start_ms>       <end_ms>0</end_ms>     </file>   </files> </map> 2024-12-02 02:02:44.881 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:45.884 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:46.888 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:47.892 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:48.895 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:49.899 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:50.903 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:51.907 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:52.911 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:53.915 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:54.918 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:55.208 [DEBUG][251] Got request [192.168.1.117]: /service (channel.transcode.lease) 2024-12-02 02:02:55.208 [DEBUG][251] method=channel.transcode.lease 2024-12-02 02:02:55.208 [DEBUG][251] parameters: 2024-12-02 02:02:55.208 [DEBUG][251]   method: channel.transcode.lease 2024-12-02 02:02:55.208 [DEBUG][251]   sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:55.208 [DEBUG][251]   client_ip: 192.168.1.117 2024-12-02 02:02:55.208 [DEBUG][251]   user_agent: Kodi/21.1 (Linux; Android 7.1.2; AFTMM Build/NS6708) Android TV/7.1.2 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10 2024-12-02 02:02:55.208 [DEBUG][251]   host_callback: ... 2024-12-02 02:02:55.208 [DEBUG][251] Renew lease ok (0x19001D) 2024-12-02 02:02:55.208 [DEBUG][251] <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> </rsp> 2024-12-02 02:02:55.922 [DEBUG][467] stream@2 got zero bytes 2024-12-02 02:02:55.928 [DEBUG][305] Got request [192.168.1.117]: /live 2024-12-02 02:02:55.928 [DEBUG][305] /live?channeloid=7358&client=b4d1479cdd1f445fb02f0ff450fd5d6d&sid=b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:55.928 [DEBUG][305] - channeloid: 7358 2024-12-02 02:02:55.928 [DEBUG][305] - client: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:55.928 [DEBUG][305] - sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:55.928 [DEBUG][305] range: bytes=374394104- 2024-12-02 02:02:55.928 [DEBUG][305] RollingFile.Open(/buffer/live-KUSA-HD-14.ts) .. 2024-12-02 02:02:55.929 [DEBUG][305] File is in live mode 2024-12-02 02:02:55.929 [DEBUG][305] Range: 374394104- 2024-12-02 02:02:55.929 [DEBUG][305] Start location: 374394104 (file-size: 374428868) 2024-12-02 02:02:55.929 [DEBUG][305] About to continue streaming until stream stops 2024-12-02 02:02:56.123 [DEBUG][467] Connection abandoned... 2024-12-02 02:02:56.123 [DEBUG][467] Done. Sent 374427328 bytes 2024-12-02 02:02:56.129 [DEBUG][305] client disconnected 2024-12-02 02:02:56.129 [DEBUG][305] Done. Sent 31584 bytes 2024-12-02 02:02:56.235 [DEBUG][48] Got request [192.168.1.117]: /service (channel.stream.stop) 2024-12-02 02:02:56.236 [DEBUG][48] method=channel.stream.stop 2024-12-02 02:02:56.236 [DEBUG][48] parameters: 2024-12-02 02:02:56.236 [DEBUG][48]   method: channel.stream.stop 2024-12-02 02:02:56.236 [DEBUG][48]   sid: b4d1479cdd1f445fb02f0ff450fd5d6d 2024-12-02 02:02:56.236 [DEBUG][48]   client_ip: 192.168.1.117 2024-12-02 02:02:56.236 [DEBUG][48]   user_agent: Kodi/21.1 (Linux; Android 7.1.2; AFTMM Build/NS6708) Android TV/7.1.2 Sys_CPU/armv7l App_Bitness/32 Version/21.1-(21.1.0)-Git:20240817-183eb85f10 2024-12-02 02:02:56.236 [DEBUG][48]   host_callback: ... 2024-12-02 02:02:56.236 [DEBUG][48] RollingFile.Open(/buffer/live-KUSA-HD-14.ts) .. 2024-12-02 02:02:56.236 [DEBUG][48] File is in live mode 2024-12-02 02:02:56.236 [DEBUG][48] StopStream(29) 2024-12-02 02:02:56.236 [DEBUG][48] StopStream handle: 29 2024-12-02 02:02:56.236 [DEBUG][48] Closing TSWriter....: LIVE&/buffer/live-KUSA-HD-14.ts 2024-12-02 02:02:56.236 [ERROR][48] writer.Close() did not complete in a timely fashion 2024-12-02 02:02:56.236 [DEBUG][48] Close@2 2024-12-02 02:02:56.236 [DEBUG][48] Closing mapAccessor 2024-12-02 02:02:56.237 [DEBUG][48] Closing mapMMF 2024-12-02 02:02:56.237 [DEBUG][48] Closing mapFileStream 2024-12-02 02:02:56.237 [DEBUG][48] deleting /buffer/live-KUSA-HD-14.ts.map 2024-12-02 02:02:56.237 [DEBUG][48] Close@exit 2024-12-02 02:02:56.237 [DEBUG][48] StopStream@exit 2024-12-02 02:02:56.247 [DEBUG][48] stopping graph 2024-12-02 02:02:56.247 [DEBUG][48] destroying graph 2024-12-02 02:02:56.247 [INFO][48] Stopped 2024-12-02 02:02:56.247 [DEBUG][48] stopped live stream for timeshift 2024-12-02 02:02:56.307 [DEBUG][48] <?xml version="1.0" encoding="utf-8" ?> <rsp stat="ok"> </rsp>

I'm stumped.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 108,506
Threads: 784
Joined: Nov 2003
#2
2024-12-02, 07:07 PM
Can you supply a sample recording for me to check? You'd need to put it somewhere like onedrive/googledrive and supply a download link.
MarkyMark
Offline

Junior Member

USA
Posts: 6
Threads: 1
Joined: Oct 2024
#3
2024-12-02, 07:11 PM
(2024-12-02, 07:07 PM)sub Wrote: Can you supply a sample recording for me to check? You'd need to put it somewhere like onedrive/googledrive and supply a download link.

Sorry to be obtuse, but do you mean the live TV buffer file? I suspect I can do that, but it might take a little futzing with watching live TV and grabbing the corresponding buffer file before it's cleaned up.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 108,506
Threads: 784
Joined: Nov 2003
#4
2024-12-02, 07:17 PM
A recording or a live tv buffer file. If you want to use a live tv buffer file, you can just copy the file while you're still trying to watch live tv.

I'd ideally like 10 minutes or so of content though, so a recording might be better.
MarkyMark
Offline

Junior Member

USA
Posts: 6
Threads: 1
Joined: Oct 2024
#5
2024-12-02, 07:18 PM
(2024-12-02, 07:17 PM)sub Wrote: A recording or a live tv buffer file. If you want to use a live tv buffer file, you can just copy the file while you're still trying to watch live tv.

I'd ideally like 10 minutes or so of content though, so a recording might be better.

Not sure if this is a relevant datapoint in this discussion, but interestingly I've never noticed an issue on my recordings, this appears to impact live streams only from what I can tell. I'll flip on the TV and see what I can come up with.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 108,506
Threads: 784
Joined: Nov 2003
#6
2024-12-02, 07:19 PM
Ok, try grabbing a live tv buffer file then.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,745
Threads: 997
Joined: May 2006
#7
2024-12-02, 08:17 PM
(2024-12-02, 06:50 PM)MarkyMark Wrote: Here are the logs that I pulled from NextPVR for what I believe is the whole request -- opening the stream to it failing:

Not even close.  I have stopped supporting users who don't send the zipped logs, since they tell the whole picture.

Martin
MarkyMark
Offline

Junior Member

USA
Posts: 6
Threads: 1
Joined: Oct 2024
#8
2024-12-02, 08:33 PM (This post was last modified: 2024-12-02, 08:34 PM by MarkyMark.)
(2024-12-02, 08:17 PM)mvallevand Wrote:
(2024-12-02, 06:50 PM)MarkyMark Wrote: Here are the logs that I pulled from NextPVR for what I believe is the whole request -- opening the stream to it failing:

Not even close.  I have stopped supporting users who don't send the zipped logs, since they tell the whole picture.

Martin

Since you asked so kindly, find them attached. Tongue 

You can see in the most recent log an event that JUST happened. Getting a recording buffer is going to be impossible as far as I can tell -- the buffer file is removed as soon as the stream fails and I can't transfer or move it fast enough.


Attached Files
.zip   logs-20241202-2030.zip (Size: 960.94 KB / Downloads: 1)
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 56,745
Threads: 997
Joined: May 2006
#9
2024-12-02, 08:54 PM
You're right I shouldn't have to ask. Probably best to test from Kodi to avoid any transcoding that is spamming the logs.

Now we know you have an HDHR do you see anything in the logs at

http://192.168.1.15

Also the time on your server looks way off.

Martin
MarkyMark
Offline

Junior Member

USA
Posts: 6
Threads: 1
Joined: Oct 2024
#10
2024-12-02, 09:13 PM (This post was last modified: 2024-12-02, 09:22 PM by MarkyMark.)
(2024-12-02, 08:54 PM)mvallevand Wrote: You're right I shouldn't have to ask.  Probably best to test from Kodi to avoid any transcoding that is spamming the logs.

Now we know you have an HDHR do you see anything in the logs at

http://192.168.1.15

Also the time on your server looks way off. 

Martin

The most recent log entries with the "stream got zero bytes" messages using our local CBS affiliate (KCNC) were testing using Kodi.


My HDHR doesn't log a whole lot (that I can see), unfortunately. Here's a sample of the logs:
Quote:20241202-18:57:10 Tuner: tuner0 tuning 6.1 KRMADT1 (8vsb:587MHz-1)
20241202-18:57:10 Tuner: tuner0 streaming http to 192.168.1.199:52536
20241202-18:58:23 Tuner: tuner0 http stream ended (remote closed)
20241202-18:58:27 Tuner: tuner0 tuning 4.4 MeTV (8vsb:599MHz-4)
20241202-18:58:28 Tuner: tuner0 streaming http to 192.168.1.199:40232
20241202-18:58:44 Tuner: tuner0 http stream ended (remote closed)
20241202-18:58:44 Tuner: tuner0 tuning 31.1 KDVR-DT (8vsb:605MHz-3)
20241202-18:58:45 Tuner: tuner0 streaming http to 192.168.1.199:42470
20241202-18:58:52 Tuner: tuner0 http stream ended (remote closed)
20241202-18:59:03 Tuner: tuner0 tuning 4.1 KCNC-TV (8vsb:599MHz-1)
20241202-18:59:04 Tuner: tuner0 streaming http to 192.168.1.199:49988
20241202-19:01:01 Tuner: tuner0 http stream ended (remote closed)
20241202-19:01:08 Tuner: tuner0 tuning 4.1 KCNC-TV (8vsb:599MHz-1)
20241202-19:01:08 Tuner: tuner0 streaming http to 192.168.1.199:59748
20241202-19:01:51 Tuner: tuner0 http stream ended (remote closed)
20241202-19:02:22 Tuner: tuner0 tuning 4.1 KCNC-TV (8vsb:599MHz-1)
20241202-19:02:22 Tuner: tuner0 streaming http to 192.168.1.199:41756
20241202-19:04:00 Tuner: tuner0 http stream ended (remote closed)
20241202-20:05:58 Tuner: tuner0 tuning 4.1 KCNC-TV (8vsb:599MHz-1)
20241202-20:05:58 Tuner: tuner0 streaming http to 192.168.1.199:47234
20241202-20:14:35 Tuner: tuner0 http stream ended (remote closed)
20241202-20:17:03 Tuner: tuner0 tuning 4.1 KCNC-TV (8vsb:599MHz-1)
20241202-20:17:03 Tuner: tuner0 streaming http to 192.168.1.199:50176
20241202-20:28:42 Tuner: tuner0 http stream ended (remote closed)
20241202-20:29:00 Tuner: tuner1 tuning 6.3 Create (8vsb:587MHz-3)
20241202-20:29:01 Tuner: tuner1 streaming http to 192.168.1.199:49450


Docker uses UTC unless you specify otherwise, I'll fix that at next time I spin my docker stack up/down.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to live stream Atanoman 4 2,395 2025-01-04, 07:22 PM
Last Post: Atanoman
  IPTV only one stream can be recorded at a time rojerki 2 2,250 2022-05-22, 11:10 AM
Last Post: rojerki
  SOLVED: Unable to start HDHomerun Stream tredman 3 3,302 2021-01-18, 01:01 PM
Last Post: tredman
  New Install - Stream Failed Transcoder Exited fire fuze 24 15,036 2020-10-04, 04:54 PM
Last Post: mvallevand
  From Synology, can stream but can't record seeker_ktf 2 2,875 2019-12-28, 02:39 PM
Last Post: seeker_ktf
  Live TV stream stops VCR58 13 6,981 2019-07-04, 04:32 AM
Last Post: VCR58

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode