Results 1 to 3 of 3

Thread: Need help finding play duration for MPEG DASH and HLS videos

  1. #1
    Join Date
    Aug 2015
    Posts
    2

    Default Need help finding play duration for MPEG DASH and HLS videos

    I m trying to calculate the total no.of minutes the video was played using MPEGDASH and HLS. I was able to accomplish this on RTP streams as it had the 'OnPlay' and 'OnStop' events being fired correctly.

    The problem I m facing with mpegdash and hls videos is that - I don't know if there are any events that is fired on 'OnPlay', 'OnStop', 'OnSeek' or if there is any other way we could get the total duration of the stream played.

    I m trying to use the 'onHTTPMPEGDashStreamingSessionDestroy' event - but this is only being fired at the end of the video and is not fired when I stop the video or Start another video.

    Any help in this regard is appreciated.

    Thanks,
    Nikhil

  2. #2

    Default

    For stats per stream, take a look at the log rows with x-category "stream" and x-event "destroy":

    sc-stream-bytes * 8 / x-duration = bps

    For stats per client connection, take a look at the log rows with x-category "session" and x-event "disconnect":

    sc-bytes * 8 / x-duration = bps

    bps * .001 = kbs

    Regards,

    Salvadore

  3. #3
    Join Date
    Aug 2015
    Posts
    2

    Default

    Thanks for a quick response but I m not sure this is going to work. What I m seeing on wowza's access logs, for both MPEGDASH and HLS videos is that - the 'stream destroy' event only occurs at the end of the video and not when I stop the video or play another video.
    The problem with this is: when a user watches 10 mins of a 60 mins video - there seems no way to know that the user watched 10 mins because wowza is only firing the 'stream destroy' event at the end of the video irrespective of if the user stopped or moved away to another video on the same client session.

    Any ideas ?

Similar Threads

  1. Replies: 1
    Last Post: 09-09-2015, 09:47 PM
  2. NEED HELP finding the right module for creating playlist based streams!
    By surfertech in forum Wowza Streaming Server Java API
    Replies: 10
    Last Post: 05-26-2015, 12:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •