NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Windows v
« Previous 1 … 90 91 92 93 94 … 104 Next »
HLS live TV not working, recording seems fine

 
  • 0 Vote(s) - 0 Average
HLS live TV not working, recording seems fine
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#11
2020-04-05, 03:19 AM (This post was last modified: 2020-04-05, 03:22 AM by sgilani.)
(2020-04-05, 02:32 AM)sub Wrote: I'm not sure you're right on that one. Usually you'd be able to get HLS or ts from a provider, not m2ts. m2ts is typically only used on dv cameras and some blu-ray stuff.

Quote:I tried using MPEG2 TS in v5, and it causes v5 to transcode the stream even though it is already h264/aac.
Can you supply a log showing an attempt to directly access the stream?

I've attached two sets of logs:

hls-logs - attempting to directly access the HLS stream (no proxy involved)
2ts-logs - attempting to access the m2ts stream.

Perhaps the provider is returning the wrong MIME type then, not sure. I ran wget against the stream URL and got this:


Code:
HTTP request sent, awaiting response... 200 OK
Length: unspecified [video/m2ts]
Saving to: 'test.2ts’

test.2ts       [      <=>                                                         ]   5.70M  1.84MB/s

ffmpeg reports this on the saved file:

Code:
Input #0, mpegts, from 'test.2ts':
  Duration: 00:00:12.02, start: 35898.019000, bitrate: 3977 kb/s
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.89 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s

Link to that file: https://drive.google.com/file/d/1teu4B5R...sp=sharing
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,445
Threads: 963
Joined: May 2006
#12
2020-04-05, 03:34 AM
Do you give NextPVR a .ts file or a .m3u file to play?

Martin
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#13
2020-04-05, 03:36 AM (This post was last modified: 2020-04-05, 03:37 AM by sgilani.)
.m3u8, loaded in in the settings under IPTV device.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,945
Threads: 770
Joined: Nov 2003
#14
2020-04-05, 04:52 AM
(2020-04-05, 03:19 AM)sgilani Wrote: 2ts-logs - attempting to access the m2ts stream.

Perhaps the provider is returning the wrong MIME type then, not sure. I ran wget against the stream URL and got this:


Code:
HTTP request sent, awaiting response... 200 OK
Length: unspecified [video/m2ts]
Saving to: 'test.2ts’

test.2ts       [      <=>                                                         ]   5.70M  1.84MB/s

ffmpeg reports this on the saved file:

Code:
Input #0, mpegts, from 'test.2ts':
  Duration: 00:00:12.02, start: 35898.019000, bitrate: 3977 kb/s
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.89 tbc
    Stream #0:1[0x101]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 126 kb/s

Link to that file: https://drive.google.com/file/d/1teu4B5R...sp=sharing
I downloaded the file and took a look. It's just a regular transport stream (188 byte packets), rather than a m2ts (192 byte packets)
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#15
2020-04-05, 04:54 AM
(2020-04-05, 04:52 AM)sub Wrote: I downloaded the file and took a look. It's just a regular transport stream (188 byte packets), rather than a m2ts (192 byte packets)

Ah, okay thanks for checking that. I guess the MIME type is set incorrectly by the provider then--do you think that's what is confusing NextPVR and causing it to transcode?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,945
Threads: 770
Joined: Nov 2003
#16
2020-04-05, 04:57 AM
Unfortunately your nrecord.log is cut short, so doesn't have the snippet of code I really wanted to see. Can you try again? Leave it trying a bit longer, and make sure you use the 'log files' button in the web app, so that it flushes the log files to disk.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,945
Threads: 770
Joined: Nov 2003
#17
2020-04-05, 04:57 AM
(2020-04-05, 04:54 AM)sgilani Wrote:
(2020-04-05, 04:52 AM)sub Wrote: I downloaded the file and took a look. It's just a regular transport stream (188 byte packets), rather than a m2ts (192 byte packets)

Ah, okay thanks for checking that. I guess the MIME type is set incorrectly by the provider then--do you think that's what is confusing NextPVR and causing it to transcode?
If I can get a slightly longer nrecord.log, I'm pretty sure I'll be able to tell why.
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#18
2020-04-05, 05:04 AM (This post was last modified: 2020-04-05, 05:21 AM by sgilani.)
(2020-04-05, 04:57 AM)sub Wrote:
(2020-04-05, 04:54 AM)sgilani Wrote:
(2020-04-05, 04:52 AM)sub Wrote: I downloaded the file and took a look. It's just a regular transport stream (188 byte packets), rather than a m2ts (192 byte packets)

Ah, okay thanks for checking that. I guess the MIME type is set incorrectly by the provider then--do you think that's what is confusing NextPVR and causing it to transcode?
If I can get a slightly longer nrecord.log, I'm pretty sure I'll be able to tell why.

np, attached.


Attached Files
.zip   nrecord.zip (Size: 3.25 KB / Downloads: 3)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,945
Threads: 770
Joined: Nov 2003
#19
2020-04-05, 05:19 AM
So is this some proxy thing you've written? The easiest fix would be if the url could replace the "/mpeg.2ts" bit with "/mpeg.ts", then it'll work without transcoding it.

Since it's not finding this ".ts", it's then proceeding to check the mime type, which your server is incorrectly reporting as "video/m2ts", which then forces it to transcode.
sgilani
Offline

Senior Member

Posts: 730
Threads: 72
Joined: Jan 2006
#20
2020-04-05, 05:54 AM (This post was last modified: 2020-04-05, 06:00 AM by sgilani.)
(2020-04-05, 05:19 AM)sub Wrote: So is this some proxy thing you've written? The easiest fix would be if the url could replace the "/mpeg.2ts" bit with "/mpeg.ts", then it'll work without transcoding it.

Since it's not finding this ".ts", it's then proceeding to check the mime type, which your server is incorrectly reporting as "video/m2ts", which then forces it to transcode.

I haven't written it--it's from the provider. It's written in Python though so I went poking around and got it to accept requests to /mpeg.ts instead. For these mpegts streams, the proxy is sending a 302 redirect back to a dynamically generated link on their server. That url is /mpeg.2ts, nothing I can do about that I'm afraid.

No transcoding this time, but it fails quickly with "Unable to find available capture device". I've attached the nrecord.log.

If there's another way other than a 302 that NextPVR would be happier with, tbh I can just hack that into the proxy.


Attached Files
.zip   nrecord.zip (Size: 3.19 KB / Downloads: 2)
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recording stuck in loop Gmjh 10 304 2025-08-21, 04:08 AM
Last Post: Gmjh
  Externally generated SRT subtitles for DVB recording not displayed hmc 12 549 2025-08-17, 09:03 AM
Last Post: hmc
  EPG Update no longer working... [0 inserted, 0 updated, 0 skipped] rightbryce 3 441 2025-08-09, 11:06 PM
Last Post: mvallevand
  NextPVRServer.exe preventing sleep after watching live TV alanteague 9 420 2025-08-09, 05:23 PM
Last Post: Bobins
  EPG No Longer Working - zap2xml SamM 54 7,588 2025-08-08, 05:37 AM
Last Post: mattman1968
  BUG: if Live TV Buffer Directory gets deleted can't watch live tv yanivf 0 207 2025-07-18, 07:42 AM
Last Post: yanivf
  EPG on DVB-C stoppped working Geertje 3 324 2025-07-08, 07:03 AM
Last Post: Geertje
  Recording Glitches - Debug Advice? andrewj 7 652 2025-06-23, 08:19 PM
Last Post: mvallevand
  m3u not working WhisperingGhost 3 393 2025-06-22, 02:42 AM
Last Post: sub
  Not picking unused tuner to record while watching live tv dlindyds 5 475 2025-06-21, 10:34 PM
Last Post: dlindyds

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

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

Linear Mode
Threaded Mode