Results 1 to 6 of 6

Thread: Stream Statistics

  1. #1
    Join Date
    Nov 2013
    Posts
    6

    Default Stream Statistics

    I am trying to get statistics on how much of a video a user watched. I understand this value is more about how much data was streamed. Below I watched my test.mp4 video 100% using both rtsp and http. The sc-bytes, x-duration, sc-stream-bytes are much higher in both cases than the x-file-size and x-file-length. Is there information that shows this additional overhead that can be used to make the calculation more accurate?

    Are the calculations for % streamed

    % streamed in bytes = sc-stream-bytes / x-file-size
    and
    % streamed in seconds = x-duration / x-file-length


    x-severity x-category x-event date time x-comment c-client-id c-ip c-port cs-bytes sc-bytes x-duration x-sname x-stream-id x-spos sc-stream-bytes cs-stream-bytes x-file-size x-file-length x-ctx x-sname-query

    INFO "rtsp stream destroy" 10/31/2013 16:14:06 - 929240264 - 12096 8913791 184.567 test.mp4 1 180949 8913791 12096 8821762 180.971 test.mp4 -

    INFO "cupertino stream destroy" 10/31/2013 16:07:13 - 740652923 - 0 9802746 203.222 test.mp4 1 180971 9798184 0 8821762 180.971 test.mp4 -

  2. #2

    Default

    x-file-size is just the size of the file, sc-bytes is the measure of bytes sent to the client. Each measured separately.

    sc-bytes might be much lower or higher then the files size, depending on how much data is sent to the client. If the file is played from start to end the sc-bytes measurement will be at least the same as the file size but most likely more, due to overhead and packetization.

    Salvadore

  3. #3
    Join Date
    Nov 2013
    Posts
    6

    Default

    Salvadore, I appreciate your response but it doesn't address any of my questions.

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I'm not sure how to answer, I don't think anything is wrong. If you are looking at stats for accounting that involves sc-bytes I would not consider file size.

    Richard

  5. #5
    Join Date
    Nov 2013
    Posts
    6

    Default

    Could you please suggest the best and most accurate way to get % of the file streamed? Either by code in the onHTTPSessionDestroy event or by using the logs.

    If you say not to use file size then what would work?

    % streamed = sc-stream-bytes / x-file-size

    If doing this calculation in onHTTPSessionDestroy what works?

    % streamed = httpSession.getIOPerformanceCounter().getMessagesOutBytes() / x-file-size

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I think x-duration would be a better look at how much of a file was played, but because the user can seek back and forth it can include overlapping parts of the file so might not be accurate measure of how much of a file was watched.

    Richard

Similar Threads

  1. Wowza start/stop events and Sawmill statistics for Live Stream access summary
    By saxonytv in forum Live Streaming and Encoder Discussion
    Replies: 3
    Last Post: 05-17-2013, 04:56 AM
  2. Calculating statistics per stream
    By pajter in forum Video On Demand Streaming Discussion
    Replies: 5
    Last Post: 03-14-2013, 02:13 AM

Posting Permissions

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