NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 2 3 4 5 … 56 Next »
New LG and Samsung NextPVR Web Smart TV App available for beta testing.

 
  • 0 Vote(s) - 0 Average
New LG and Samsung NextPVR Web Smart TV App available for beta testing.
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#341
2014-12-27, 10:41 AM
sub Wrote:Good to know. Let me know what you find, and I'll adjust NextPVR to make it behave the same way in this scenario.

@sub
I finally got time to run wireshark on it and I'm confident that I've found the cause.

For growing files, the NextPVR streamer (/stream) report what seems to be a fake content-length and content-range that happens to be larger than the actual file size.
The Samsung F-player makes three requests to the streamer trying to determine duration and when it tries to take a sample towards the end of the file there is no data because were out of range.
The player gets stuck in this third stage.

There is also the small error that I have reported before where the header content-range is wrong according to specifications (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html section 14.16 Content-Range)
Maybe the NMT needs it this way?

Content-Range: bytes 0-50000000000/50000000000

ought to be
Content-Range: bytes 0-49999999999/50000000000

Not that it seems to be a problem but /stream doesn't seem to recognize the mime= option, is that intentional?


/Fred
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#342
2014-12-27, 11:54 AM
Not a problem for you Fred -

My 40F5500 started playing movie trailers spontaneously. After much checking and many "factory resets" it looks like it may be a Samsung problem!
https://www.avforums.com/threads/samsung...s.1927455/
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#343
2014-12-27, 01:25 PM
fred250 Wrote:@sub
I finally got time to run wireshark on it and I'm confident that I've found the cause.

For growing files, the NextPVR streamer (/stream) report what seems to be a fake content-length and content-range that happens to be larger than the actual file size.
The Samsung F-player makes three requests to the streamer trying to determine duration and when it tries to take a sample towards the end of the file there is no data because were out of range.
The player gets stuck in this third stage.

There is also the small error that I have reported before where the header content-range is wrong according to specifications (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html section 14.16 Content-Range)
Maybe the NMT needs it this way?

Content-Range: bytes 0-50000000000/50000000000

ought to be
Content-Range: bytes 0-49999999999/50000000000

Not that it seems to be a problem but /stream doesn't seem to recognize the mime= option, is that intentional?


/Fred

All of those are sub's NMT mode streaming. I've reported the one byte issue for years, but sub was afraid that it would break the NMT. Did you try adding &mode=http recently which turns on more standard http streaming that XBMC needed? I know initially you had problems with that.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#344
2014-12-27, 02:40 PM
mvallevand Wrote:All of those are sub's NMT mode streaming. I've reported the one byte issue for years, but sub was afraid that it would break the NMT. Did you try adding &mode=http recently which turns on more standard http streaming that XBMC needed? I know initially you had problems with that.

Martin

I've been using mode=http for quite a while now. Don't recall any initial problems, but your memory is usually more accurate than mine Smile
Anyway I had to add it at some point but can't remember if it was to please the LG or any of the Samsung players.

/Fred
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,627
Threads: 767
Joined: Nov 2003
#345
2014-12-27, 06:34 PM
Ok. I'm away for a couple of days, but I'll look into this when I get back.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#346
2014-12-27, 07:05 PM
fred250 Wrote:I've been using mode=http for quite a while now. Don't recall any initial problems, but your memory is usually more accurate than mine Smile
Anyway I had to add it at some point but can't remember if it was to please the LG or any of the Samsung players.

Ok you got me thinking. I think for some reason you didn't want to use the preferred method /live?recording= ### for recording for some reason and you went with NMT mode. That one definitely gives back a changing content length for growing files.

Martin
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#347
2014-12-27, 07:47 PM
mvallevand Wrote:Ok you got me thinking. I think for some reason you didn't want to use the preferred method /live?recording= ### for recording for some reason and you went with NMT mode. That one definitely gives back a changing content length for growing files.

Martin

Yeah, two reasons.
1: with /live incorrect duration and no skipping on the LG.
2: /live isn't (haven't checked recently) capable of streaming by filename as needed in the Videos plugin.

/Fred
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#348
2014-12-27, 08:50 PM
@martin and sub

Some wiresharkin'

/live doesn't seem to handle ranges correctly – thats probably why the LG player can't calculate duration and also decided server is not range-request capable (skipping is ignored).
Both content-range and Content-Length seem to be incorrect.

These are the correct headers as far as I know.

Content-Range: bytes 4001-4500/1248620800
Content-Length: 500


Code:
GET /live?recording=855&mode=http&mime=video/MP2T&client=SMARTTV:1389635707887 HTTP/1.1
Host: 192.168.0.60:8866
Range: bytes=4001-4500
User-Agent: GStreamer souphttpsrc (compatible; LG NetCast.TV-2012) libsoup/2.34.2

HTTP/1.1 200 OK
Server: NextPVR
Connection: Close
Content-Range: bytes 4001-1248620800/1248620800
Content-Length: 499
Content-Type: video/MP2T


If these things were fixed and a filename option was added then I may drop the legacy /stream in favor of the more recent /live.

/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,802
Threads: 954
Joined: May 2006
#349
2014-12-27, 10:17 PM
Yeah you don't even need wireshark, web.log shows the inconsistencies for /stream mode I don't think you need mode or mime for /live it is supposed to be valid.

Here's request for the first 500 bytes and it does send 500 bytes but the headers are messed up indeed.

Code:
2014-12-27 16:55:34.407    [DEBUG][21]    partial file: bytes=0-499
2014-12-27 16:55:34.408    [DEBUG][21]    Reponse header:
HTTP/1.1 206 Partial Content
Server: N-PVR
Accept-Ranges: bytes
Content-Range: bytes 0-57278464/57278464
Content-Length: 499
Content-Type: application/octet-stream
Connection: close


2014-12-27 16:55:34.408    [DEBUG][21]    RollingFile.Seek(0)
2014-12-27 16:55:34.408    [DEBUG][21]    Sent: 500 bytes

Martin
trummel
Offline

Senior Member

Posts: 276
Threads: 34
Joined: Oct 2008
#350
2015-01-04, 01:01 PM
Just had significant other approval to replace the old Sony TV for the bedroom. I would love to use this app instead of an external box as the NPVR client. Can anyone advise which current 32" TV would be pretty sure to work? I was leaning towards the LG's, but the current crop all seem to be WebOS. Does that work now? I'm very naïve about smart TV's as have never felt the need to buy one until now as have always had an NPVR client attached to do the smart bit.

Server: Ci5 2500k, 3GB, Windows Server 2012, nPVR 3.5.7. 2xWinTV-DVB-T USB, 1xWinTV-DVB-T PCI, 2 x BlackGold DVB-T, 1xPCTV290E and 1xPCTV460E on Astra 28.2 E.
clients: RPI2, Acer R3700, PCH-A110, NUC, 3xSamsung Smart TV
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (39): « Previous 1 … 33 34 35 36 37 … 39 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Linux nextpvr-helper.deb installer mvallevand 31 46,388 2024-11-05, 04:15 PM
Last Post: mvallevand
  LineUp for NextPvr PRBUK 1 2,842 2023-12-04, 03:17 PM
Last Post: PRBUK
  OlSkool skin for NextPVR v6 Jaggy 3 2,021 2023-07-16, 05:26 PM
Last Post: sub
  Roku NextPVR Channel mvallevand 7 8,004 2022-11-28, 12:10 AM
Last Post: mvallevand
  Generate NextPVR import XML from recorded TV .wtv files from WMC Jimixter 5 5,271 2021-05-06, 03:34 PM
Last Post: a1blues
  Pluto TV and Filmon for NextPVR mvallevand 2 3,891 2020-12-23, 05:19 PM
Last Post: mvallevand
  Generate missing thumbnails for video files imported into NextPVR Jimixter 0 2,575 2019-12-16, 07:28 PM
Last Post: Jimixter
  New NextPVR client for Raspberry Pi 2 and 3. fred250 40 24,551 2019-11-05, 10:28 PM
Last Post: bobphoenix
  Plex Channel for NextPVR psycik 289 174,050 2018-01-14, 04:17 AM
Last Post: psycik
  Bluray Player Beta whurlston 23 11,763 2015-10-05, 09:32 AM
Last Post: Lao Pan

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

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

Linear Mode
Threaded Mode