Progress bar for video dowloads? (1 Viewer)

Wiesel

Portal Member
April 23, 2008
34
0
Home Country
Austria Austria
Did a bit of reading about DirectShow and I now more or less get what's going on there. File Source (URL) is a pull source filter (like all source filters?!?) since it implements IAsyncReader. Push filters implement IMemInputPin. So far it shouldn't be a problem to implement a monitoring filter (or filter wrapper), but there's still a much bigger problem: this solution would only work with sources implementing IAMOpenProgress, which WM ASF Reader doesn't (don't know about the MediaPortal File Reader)... that would lead to an inconsistent behaviour...
 

offbyone

Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    WM ASF Reader is mostly used for mms:// streams. This protocol allows random access to the file on the server (seeking possible) - so the buffering stuff is not needed on that. (That filter is poorly implemented anyway - from experiance and google).
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #23
    What do I exactly need to see progress bar? :)

    I installed MP 1.1.0 RC3... is it enough, or we must wait for OnlineVideos 0.21? Or maybe an skin update also? (I installed also last StreamedMP, for MP 1.1.0 RC3)

    Thanks a lot!
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    You will need OnlineVideos 0.21 and an updated StreamedMP skin for the OSD.
     

    peque

    Moderator - Spanish Forums
  • Premium Supporter
  • August 4, 2007
    861
    99
    Home Country
    Spain Spain
    • Thread starter
    • Moderator
    • #25
    Which I must asume are not still public? Last StreamedMP files don't include this?
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    Blue3wide was updated for progress bar display on OnlineVideos Google Code SVN..

    I updated Black & White 1080, Black Glass and Black Glass Nova on Google Code SVN..

    StreamedMP was also updated on Google Code SVN but don't know about latest released version.. My guess it includes it because it cannot break anything even if you're not using latest SVN version of OnlineVideos..
     

    Wiesel

    Portal Member
    April 23, 2008
    34
    0
    Home Country
    Austria Austria
    It's been some time since my last post here as I unfortunately just have very limited time, but I did a bit of experimenting and do now have a running proof of concept... I'm talking about this issue here:

    would it be possible to let the buffer fill to a certain level until the playback starts, and if the buffer drains during playback to pause again until that fill level is reached? For example when watching Apple Movie Trailers on 1080p the stream delivery rate for me is just a tad slower than the playback rate which results in an annoying constant "jidder"... I'd rather wait one time for a few seconds until the stream continues, and I'm pretty sure I'm not the only one!?

    Stopping Playback when buffer drains is not so easy, because that is information the filter graph doesn't give. I could match a % of downloaded bytes with the percent of current playback position, but on variable bitrate clips, this isn't equal.

    Are you even interested in integrating this functionality into OnlineVideos? That issue really bugged me so I HAD to find out how to solve it, but my concept is far from perfect and I don't want to spend any more time if it's of no use ;)
     

    offbyone

    Development Group
  • Team MediaPortal
  • April 26, 2008
    3,989
    3,712
    Stuttgart
    Home Country
    Germany Germany
    I'd very much like to know what your concept on this is! If you have tried latest version of onlinevideos, you'll have noticed that the pre-buffering is already in there. I'm interested how you solved the buffer drainage detection.
     

    Wiesel

    Portal Member
    April 23, 2008
    34
    0
    Home Country
    Austria Austria
    Actually there are built in events in DirectShow to detect buffer drainage (EC_BUFFERING_DATA, EC_STARVATION), but unfortunately none of the filters involved in my tests (YouTube with MPC FLV Splitter & ffdshow) signals it :(

    I have now hacked together a C# wrapper for the "File Source (URL)" filter, but it could be used for any source filter supporting IAsyncSource. What I'm doing is intercepting the call from the splitter to the source filter (IAsyncRead.SyncRead) which gives me the current byte-position in the source stream, and if that position is beyond the buffered part of the file I know the buffer of the splitter has drained (it may need a more elaborate logic but basically that's it).

    The biggest problem now is that my filter-wrapper doesn't connect automatically in the graph, but if I manually connect it to a splitter it works. Maybe it might be a better idea to implement it more as a proxy filter between the source and the splitter instead of wrapping the source... I'd have to test that.
     

    Users who are viewing this thread

    Similar threads

    I have also had this problem in the past. There are two components to this problem: Your internet router is pinging the HTPC at regular intervals in order to see if the HTPC is still present on the network. The network adapter in the HTPC has "Wake on Lan" enabled. So at the end of a recording, the HTPC transitions from away mode to...
    I have also had this problem in the past. There are two components to this problem: Your internet router is pinging the HTPC at...
    Nachdem ich mp 1.38 neu installiert habe klappt soweit alles wie früher. Ein Problem besteht aber und das ist Standby nach einer...
    Replies
    6
    Views
    738
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is x86, and other is x64 Wondering if I should be selecting the x64.....since I'm installing the 64bit version? UPDATE Transferred both files to the destination folder, and labelled appropriately. This way...
    Your timing is great.....I just got home myself!! :) A little confusion for me here! There are 2 x files in the folder......one is...
    Am a long time MP1 user, and have successfully been running the x64 version since it first appeared. Recently, problem of black...
    Replies
    10
    Views
    2K
    MP1 MP2 MP Shutting down DE
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird situation. Trakt website shows that episode as watched, but in onlinevideos (where i watched that episode) it still is not flagged as watched. The watched.json doesn't contain that episode but i think it...
    I got a similar error yesterday just when a watched episode ended... Didn't copy the logs unfortunately but now i'm in a weird...
    I have an issue that started in 1.37 and so I updated to 1.38 and updated all my installed plugins but the issue has continued. My...
    Replies
    6
    Views
    621
    OK....perhaps impatient of me I know, but went for a full reinstall....and now up and running once more. Have no idea what was at the root of this problem....still wondering if it may've been due to a Win11 update earlier this week?
    OK....perhaps impatient of me I know, but went for a full reinstall....and now up and running once more. Have no idea what was at...
    Have used MP1.38 64 successfully since it's introduction.....now something has changed. Video folders are still present.....but now...
    Replies
    3
    Views
    2K
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select "Internal DirectShow player" as music output, but then you lose gapless playback. If you you don't have multichannel music you can choose WASAPI as the output and set the number of speakers to stereo. I have...
    I don't know about MP2 but as you said you tried MP1 too, how is the MP music config ? MP(1) will only use LAV if you select...
    Not sure if this a a bug/config/settings problem. I am running a media portal 2.5 server with 2.41 client but it seems I get the...
    Replies
    1
    Views
    794
    Top Bottom