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 … 95 96 97 98 99 … 109 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
Offline

Posting Freak

Ontario Canada
Posts: 54,839
Threads: 982
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: 107,446
Threads: 774
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: 107,446
Threads: 774
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: 107,446
Threads: 774
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: 107,446
Threads: 774
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
  problem viewing or recording video pctc 6 358 2026-02-05, 11:32 PM
Last Post: pctc
  NextPVR IPTV recording - Parts are duplicated in the recording. Buckaragua 8 498 2026-01-20, 01:41 PM
Last Post: Buckaragua
  Recording Glitches - Debug Advice? andrewj 34 2,342 2026-01-18, 06:01 PM
Last Post: mvallevand
  NextPVR status says device is recording when it is not FrogFan 4 296 2026-01-17, 12:30 AM
Last Post: FrogFan
  Ctrl-k to start recording. jcole998 2 227 2026-01-12, 02:12 PM
Last Post: jcole998
  Issues recording video gsalva 10 672 2026-01-03, 03:49 PM
Last Post: mvallevand
  Can NextPVR import TitanTV .TVPI files to schedule a recording dayvboy 100 23,442 2025-12-18, 06:39 PM
Last Post: mvallevand
  NextPVR Client "Live TV" need Internet connection to work? elstaci 3 361 2025-12-02, 06:19 PM
Last Post: mvallevand
  Issue with screen readers trying to schedule a recording Stavros 18 1,364 2025-11-09, 03:02 AM
Last Post: Stavros
  Next PVR quit working uninstalled and reinstalled. Still no go! 1bhjm1 11 850 2025-10-29, 06:01 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode