NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 5 6 7 8 9 … 93 Next »
Time to make Touch web Service less experimental

 
  • 0 Vote(s) - 0 Average
Time to make Touch web Service less experimental
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#61
2013-09-20, 02:51 PM
Yes, Martin is right!
There is no timing.info available in your files And external timing.info is not yet implemented.
I may have time to look into that this weekend.

In the log you would see something like “found timing.info”

/Fred
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#62
2013-09-20, 03:18 PM
reven Wrote:even after the player has done the jump, is this suppose to be reset to 0 after the jump to indicate the jump was successful?

Yes, it will be set to 0 when used. But since no timing.info is found it skips that part of the code were it's set to 0.

I'm also planning of implementing a GUID and a timeout to allow for more than one client seeking at a time.
As you noticed the seek property is global and not tied to a specific http session (in order to be easily read from outside the client, and more)

/Fred
stustunz
Offline

Posting Freak

Posts: 5,111
Threads: 112
Joined: Oct 2006
#63
2013-09-20, 07:29 PM
fred250 Wrote:Yes, Martin is right!
There is no timing.info available in your files And external timing.info is not yet implemented.
I may have time to look into that this weekend.

In the log you would see something like “found timing.info”

/Fred

Is there a way I can upload a recording with the timing info ?
[SIZE="1"]Specs[/SIZE]
[SIZE="1"]Server:Cpu-Intel i3,ATI Radeon HD 5670 ,OS-Windows 7,2gig ram. 2xHvr4400,Nova-s plus(dvb-s SD),hvr2210(dvb-t HD)[/SIZE]
[SIZE="1"]Client:Cpu-AMD am2,Gpu-Ati HD2100 integrated ,OS-Windows 7,2gig ram[/SIZE]
[SIZE="1"]Client:Cpu Intel 2 gig ram ,Nvidia 9400[/SIZE]
[SIZE="1"]ClientTongueopcorn Hour A110[/SIZE]
[SIZE="1"]Client:Samsung [NZ][DVB-s][2012]BD-E5900x2 [/SIZE]
[SIZE="1"]Client:Samsung [NZ][DVB-s][2013]BD-F6500 [/SIZE]
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#64
2013-09-20, 07:46 PM
stustunz Wrote:Is there a way I can upload a recording with the timing info ?

I have no idéa about the file upload, but I just handed over to reven a patched version of the streamer that can read external timing.info as generated by Martins tool.

/Fred
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#65
2013-09-20, 07:57 PM
stustunz Wrote:Is there a way I can upload a recording with the timing info ?

Better to extract it with the command line and send it as a separate file.

Martin
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#66
2013-09-20, 09:20 PM
How do I add the timing.info to the file?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#67
2013-09-20, 09:26 PM
notepad "c:\path\to\video.ts:timing.info"

Paste the timing.info in, then save it. It'll only work on ntfs drives though.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#68
2013-09-21, 03:01 AM
thanks sub.

I know have the timing.info file as part of the file, however, when I go to skip now, the player just freezes and then after about 30 seconds it stops. my tsstreamer log is

Code:
About to stream file: D:\Videos\2.ts

About to stream file: D:\Videos\2.ts

About to stream file: D:\Videos\2.ts

About to stream file: D:\Videos\2.ts

Successfully set: seek position =248860000

About to stream file: D:\Videos\2.ts

Try seek to position =248860000

External Timing.Info found

Reading Timing.Info

Seek to byte 885602576 requested byte was 0

About to stream file: D:\Videos\2.ts

Not sure why it keeps printing "About to stream file: ...".

Can I grab a copy of the source for this, so I can step through it and see what the problem is? or do you want to keep it closed source (which is fine, I can understand that). Just might speed things up. cheers.

note: I also updated the tsstreamer to the new one you sent me Smile
fred250
Offline

Senior Member

Posts: 457
Threads: 10
Joined: Jul 2006
#69
2013-09-21, 10:17 AM
reven Wrote:Seek to byte 885602576 requested byte was 0

Part of your problems right now might be that the seek-to value is set (~70 mins in if I did the calculation right) and used at the very first call when the player wants start from the beginning.
There is not much error correction and such in the streamer at this moment.

reven Wrote:Not sure why it keeps printing "About to stream file: ...".
Every "About to stream file..." corresponds to a new range request from the player.
I know my LG player makes an extra initial 500 byte range request before it asks for the whole file. Maybe to evaluate connection speed or byte range capability, I don't really know.

Some of those requests may be the player trying to find the user requested time but since the bytes returned is way off what was requested (the issue described above) it tries again and again and eventually gives up.
If seek position is really set to 0 when you first start playing there shouldn’t be that many “About to stream...”.


reven Wrote:Can I grab a copy of the source for this, so I can step through it and see what the problem is? or do you want to keep it closed source (which is fine, I can understand that). Just might speed things up. cheers.

Sure, I hand it over to you. Smile

reven Wrote:note: I also updated the tsstreamer to the new one you sent me Smile

Yes, that shows in the log. It also states it uses the external Timing.Info. If external Timing.Info exists it will use that before looking for the ADS. (which makes it easy to switch between internal and external by just renaming the external file).

/Fred
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#70
2013-09-21, 01:09 PM
well i had a very foolish error, my milliseconds were getting converted to a string at some point, so when i was adding currentmilliseconds + jump it was concating which was making it jump to the very end of the file.

once I fixed that, currently I can jump correctly for the most part, but the first jump is always wrong (goes to the first jump as the default npvr streamer, one file is 2mins another is 4:30). also i cant jump past the point the npvr streamer reported was the duration to the samsung player.

Going to look into those 2 issues, but this is looking very promising, the other jumps are pretty accurate, within a second or two (sometimes spot on).

If we can get this to work, I'm hoping sub can implement this directly into nextpvr, so no other app/port is required for streaming, perhaps a different url however eg ?tsstream=

great work fred Smile
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (11): « Previous 1 … 5 6 7 8 9 … 11 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  is there a service?method which returns listings for multiple channels? reven 16 7,400 2022-04-11, 04:30 PM
Last Post: mandai
  Extending end time. mvallevand 5 4,190 2018-10-17, 01:21 PM
Last Post: jcole998
  NextPVR "Service" Backend? jcole998 5 4,953 2018-05-24, 01:17 PM
Last Post: jcole998
  Transcoding service mvallevand 27 12,614 2016-08-26, 07:43 PM
Last Post: sub
  Extending recording time mvallevand 2 2,536 2014-09-14, 01:04 AM
Last Post: sub
  Touch and http audio url's mvallevand 0 1,479 2013-11-03, 07:05 PM
Last Post: mvallevand
  <StartTime> and <EndTime> time formats? spinnaker 3 2,592 2013-10-25, 01:48 AM
Last Post: spinnaker
  New web service clarification needed bgowland 6 3,393 2013-10-19, 02:36 AM
Last Post: bgowland
  [REQ] Additional web service API calls reven 26 8,700 2013-08-31, 10:08 PM
Last Post: mvallevand
  getting recurring recordings from service?method API? reven 2 2,043 2013-08-03, 10:50 PM
Last Post: reven

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

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

Linear Mode
Threaded Mode