NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 29 30 31 32 33 … 193 Next »
Obtain video duration for Universe/UPnP streaming

 
  • 0 Vote(s) - 0 Average
Obtain video duration for Universe/UPnP streaming
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#1
2012-04-25, 10:37 PM
It would be nice if when streaming UPnP video with the Universe plugin the duration of the video could be obtained such that one could pause the video and skip forward and back (it currently shows 0:00 and I am not able to skip forward). In particular I am interested in this for Playon where I can pause playback for a while and let a portion of the video be transcoded after which I can skip ahead over parts I am not interested in watching. I don't know if this is possible in NPVR but I was able to do this when I used the SageTV UPnP client.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2012-04-25, 10:46 PM
To be honest, I'm not really sure what would be required to implement this.

Martin, how does Universe plugin work? Are you downloading a file and playing it, or using play video api to directly play an network stream url? Also, does mvpmcx2 do something different that would need to be taken into account too?
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#3
2012-04-25, 11:57 PM
No it doesn't store or cache the file, it plays the native http stream which is mpeg-ps.

While NextPVR is playing it constantly logs

Code:
2012-04-25 19:25:13.263    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.363    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.474    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.584    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.702    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.799    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:13.915    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:14.017    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:14.137    [DEBUG][1]    GetDuration returning 0
2012-04-25 19:25:14.156    [DEBUG][1]    GetDuration returning 0

However NextPVR does get the current position and correct if I try to skip,

Code:
2012-04-25 19:35:48.856    [DEBUG][1]    Current position is: 61.3339729309082

However after skipping it cannot go forward.

I do know the length and I have tried setting args["@duration"] = various things hoping for a trace error for the format before calling

PluginHelperFactory.GetPluginHelper().SetPlayerMetaData(args);

but that didn't change anything. That would only give the total time but it is possible that if PlayOn won't fail if you try to skip to far, it might take you near the end of transcoding. It still might help going backwards because the current timeline looks like this in both timeline styles, with the first number being the actual time.

It might work on the NMT since the NMT does record the correct PTS and it is playing directly from the UPnP http server too.

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#4
2012-05-27, 12:24 AM
So, would it even be possible to add this? Thanks.
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#5
2012-05-27, 12:35 AM
From Martin's description (and log snippets) above, it sounds like directshow is reporting a duration of zero for streams, so I dont have anyway to know the duration of the stream.

It sounds like it does correctly report the current playback position, so I could return that as the duration instead of zero, which might be a slight improvement. I that would not be enough to allow skipping, even just backwards.

To allow skipping around, I'm pretty sure the plugin would need to save the stream to disk and play it as a file.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#6
2012-05-27, 01:04 AM
sub Wrote:From Martin's description (and log snippets) above, it sounds like directshow is reporting a duration of zero for streams, so I dont have anyway to know the duration of the stream.

As I wrote above I do try report the true 'full" duration in the meta data. You could use that when zero is reported if you'd like, just let me know what data type you'd like to be.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#7
2012-05-27, 01:32 AM
I've made a change for the next release so you can force the duration by setting "STREAM_DURATION" in the call to SetPlayerMetaData(). It needs to be 'double' data type, giving the number of seconds.

I suspect directshow will refuse to skip when playing the stream though. This change will at least give you a correct timeline.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#8
2012-08-05, 12:28 AM
@cncb, there are some changes in 2.5.5 that make this work better, and I updated the wiki with a new version that sub accepts. There are PlayOn issues on how they cache the file, and with DirectShow if you get too close to the end.

Martin
cncb
Offline

Senior Member

Posts: 729
Threads: 112
Joined: Aug 2011
#9
2012-08-05, 03:11 AM
Thanks, Martin. Unfortunately I get an exception thrown when I try to start NPVR after installing the Universe update (see below). I tried uninstalling and reinstalling the new version and get the same result.

[ATTACHMENT NOT FOUND]
My Plugins: PhotoFilter, MusicMonkey, Windows Desktop Gadget
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#10
2012-08-05, 03:25 AM
Sorry about that, try again, I have removed the dependancy. I was using a common dll that I share with MB4 for the PS3 Grooveshark UPnP integration that I never released and forgot about it.

Martin
« 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
  Reducing scanning duration for the DVB/ATSC EPG calande 3 458 2025-03-28, 07:07 PM
Last Post: calande
  Collosus 2 & HVR 2210 - Composite, S Video inputs peter t 8 1,202 2023-11-07, 10:58 PM
Last Post: mvallevand
  enable catch-up streaming vkopzon 3 2,439 2023-08-18, 05:50 AM
Last Post: truckclancy
  Full screen capable streaming via web browser control. GuruSR 2 2,238 2022-02-04, 03:40 PM
Last Post: sub
  Watched Indicator for Multiple Video Files with the Same File Name cweseloh 1 1,829 2018-06-26, 05:02 PM
Last Post: sub
  UPnP Programmatic Port Forwarding aderlopas 11 7,709 2018-06-04, 06:20 AM
Last Post: sub
  Better subtitling positioning on Video and TV (Live and Recorded). GuruSR 7 3,275 2018-04-19, 04:33 AM
Last Post: sub
  Videos - Display Video Subtitle aka Episode Title meccano 0 1,425 2018-02-11, 11:09 PM
Last Post: meccano
  Preview when fast forward or rewind rerecorded video boomramada 1 1,870 2016-06-27, 05:44 PM
Last Post: sub
  Change 10ft Wide "Video" selection screen to ...... like "Search" puck64 5 3,260 2016-04-17, 04:33 AM
Last Post: puck64

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

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

Linear Mode
Threaded Mode