Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Video loops every two seconds

  1. #1

    Default Video loops every two seconds

    Hi,

    I need to implement a small streaming app in Windows 8 Metro, XAML/C#. I've been using the smooth streaming client beta version from Microsoft, and it works fine with the sample streams. But with the ones I need to show, it loops every two seconds, always to the beginning of the video and audio. It's as if the player is stuck in the first chunk of the stream. The streams come from a wowza server, and it works fine in Silverlight and WP7. Using fiddler, I've noticed that no request gets chached, contrary to other working examples. Has anyone had a similar problem? I'm really stuck with this...



    Thanks in advance,

    Ricardo

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

    Default

    Ricardo,

    How was the file encoded, which encoder, encoding details? Does it have audio and video (you need both for smoothstreaming)?

    Take a look at these encoding suggestions

    http://www.wowza.com/forums/content....ideo-on-Demand

    Richard

  3. #3

    Default

    Hi Richard,

    I'm not sure about the encoder, it's a client stream and I do not have access to the configurations. But I've seen the HTTP requests with fiddler, and I believe it is encoded with aac. The format is H.264, that I am sure. I don't know if it is playready or not.

  4. #4

    Default

    Hi again,

    I've managed to make some more tests with fiddler enabled, and recorded the manifests and url requests of the video from Microsoft that works property, and from the stream that is not working. Possibly this information could help determine the problem. I omitted some repeating parts of requests and xml just to facilitate Reading. The client stream url was also removed.


    MICROSOFT - WORKING - MANIFEST:

    <SmoothStreamingMedia
    MajorVersion="1"
    MinorVersion="0"
    Duration="5965419999">
    <StreamIndex
    Type="video"
    Subtype="WVC1"
    Chunks="299"
    Url="QualityLevels({bitrate})/Fragments(video={start time})">
    <QualityLevel
    Bitrate="2750000"
    FourCC="WVC1"
    Width="1280"
    Height="720"
    CodecPrivateData="250000010FD3BE27F1678A27F859E804508253EBE8E6C00000010E5AE7F840" />
    <QualityLevel
    Bitrate="2040000"
    FourCC="WVC1"
    Width="1056"
    Height="592"
    CodecPrivateData="250000010FD3BE20F1278A20F849E80450823E414DD1400000010E5AE7F840" />
    <QualityLevel
    Bitrate="1520000"
    FourCC="WVC1"
    Width="848"
    Height="480"
    CodecPrivateData="250000010FCBAE1A70EF8A1A783BE8045081AE62F3F7400000010E5AE7F840" />
    <QualityLevel
    Bitrate="1130000"
    FourCC="WVC1"
    Width="704"
    Height="400"
    CodecPrivateData="250000010FCBA215F0C78A15F831E8045081A27BD635C00000010E5AE7F840" />
    <QualityLevel
    Bitrate="845000"
    FourCC="WVC1"
    Width="576"
    Height="320"
    CodecPrivateData="250000010FCB9A11F09F8A11F827E804508199C94077400000010E5AE7F840" />
    <QualityLevel
    Bitrate="630000"
    FourCC="WVC1"
    Width="448"
    Height="256"
    CodecPrivateData="250000010FCB920DF07F8A0DF81FE804508113396020C00000010E5AE7F840" />
    <QualityLevel
    Bitrate="470000"
    FourCC="WVC1"
    Width="368"
    Height="208"
    CodecPrivateData="250000010FC38E0B70678A0B7819E80450810E5747B6C00000010E5AE7F840" />
    <QualityLevel
    Bitrate="350000"
    FourCC="WVC1"
    Width="320"
    Height="176"
    CodecPrivateData="250000010FC38A09F0578A09F815E80450808AADEACF400000010E5AE7F840" />
    <c
    n="0"
    d="20000000" />
    <c
    n="1"
    d="20000000" />
    <c
    n="2"
    d="20000000" />
    <c
    n="3"
    d="20000000" />





    <c
    n="298"
    d="5000001" />
    </StreamIndex>
    <StreamIndex
    Type="audio"
    Subtype="WmaPro"
    Chunks="299"
    Url="QualityLevels({bitrate})/Fragments(audio={start time})">
    <QualityLevel
    Bitrate="64000"
    WaveFormatEx="6201020044AC0000451F0000CF05100012001000030000000000000000000000E00042C0" />
    <c
    n="0"
    d="20433560" />
    <c
    n="1"
    d="19969161" />
    <c
    n="2"
    d="19969161" />
    <c
    n="3"
    d="20433560" />





    <c
    n="298"
    d="4393197" />
    </StreamIndex>
    </SmoothStreamingMedia>


    MICROSOFT - WORKING - REQUESTS:

    "http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/QualityLevels(350000)/Fragments(video=0)"
    "http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/QualityLevels(350000)/Fragments(video=20000000)"
    "http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/QualityLevels(64000)/Fragments(audio=20433560)"
    "http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/QualityLevels(845000)/Fragments(video=60000000)"
    "http://mediadl.microsoft.com/mediadl/iisnet/smoothmedia/Experience/BigBuckBunny_720p.ism/QualityLevels(1130000)/Fragments(video=80000000)"


    *********************************************
    *********************************************
    *********************************************


    CLIENT STREAM - NOT WORKING - MANIFEST:

    <SmoothStreamingMedia MajorVersion="2" MinorVersion="1" Timescale="10000000" Duration="430000000">
    <StreamIndex Type="audio" Index="0" Chunks="22" QualityLevels="1" Timescale="10000000" Url="QualityLevels({bitrate})/Fragments(audio={start time})/Chunks({chunk id})/WowzaSessions(2001798323).isma">
    <QualityLevel Bitrate="48666" FourCC="AACL" SamplingRate="44100" Channels="2" BitsPerSample="16" PacketSize="4" AudioTag="255" CodecPrivateData="1210" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20210000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20210000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="20210000" />
    <c d="20200000" />
    <c d="20200000" />
    <c d="5570000" />
    </StreamIndex>
    <StreamIndex Type="video" Chunks="16" QualityLevels="3" MaxWidth="720" MaxHeight="576" DisplayWidth="720" DisplayHeight="576" Timescale="10000000" Url="QualityLevels({bitrate})/Fragments(video={start time})/Chunks({chunk id})/WowzaSessions(2001798323).ismv">
    <QualityLevel Index="0" Bitrate="979971" FourCC="H264" MaxWidth="720" MaxHeight="576" CodecPrivateData="00000001674d401eeca05a093420000003002000000641e2c5b2c00000000168eaecb2" />
    <QualityLevel Index="1" Bitrate="192894" FourCC="H264" MaxWidth="720" MaxHeight="576" CodecPrivateData="00000001674d401eeca05a093420000003002000000641e2c5b2c00000000168eaecb2" />
    <QualityLevel Index="2" Bitrate="489564" FourCC="H264" MaxWidth="720" MaxHeight="576" CodecPrivateData="00000001674d401eeca05a093420000003002000000641e2c5b2c00000000168eaecb2" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="23600000" />
    <c d="20400000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="23200000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="30000000" />
    <c d="23200000" />
    <c d="30000000" />
    <c d="9600000" />
    </StreamIndex>
    </SmoothStreamingMedia>


    CLIENT STREAM - NOT WORKING - REQUESTS:

    "http://[...]/smil:13616116-L/QualityLevels(192894)/Fragments(video=0)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(192894)/Fragments(video=30000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(192894)/Fragments(video=60000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(489564)/Fragments(video=83600000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(489564)/Fragments(video=104000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(489564)/Fragments(video=134000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(979971)/Fragments(video=164000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"
    "http://[...]/smil:13616116-L/QualityLevels(979971)/Fragments(video=194000000)/Chunks(%7Bchunk%20id%7D)/WowzaSessions(2001798323).ismv"


    *********************************************
    *********************************************
    *********************************************
    I do not understand much about how these requests should work, but it seems to me that they are working fine. I mean, the video fragments show increasing numbers at each request. But on the application, the video is always looping every two seconds, and the looping is very synchronized with the requests made.


    I would really appreciate if someone could solve this enigma .

    Thanks again,

    Ricardo Schiller
    Last edited by ricardoschiller; 04-30-2012 at 03:30 AM.

  5. #5

    Default

    I think the problem is with the way requests are being formatted. This part of the URL looks wrong:

    Chunks(%7Bchunk%20id%7D)/

    When we get a chance we will work on the Metro setup to see if we can get it to work.

    Charlie

  6. #6

    Default

    Thank you for the quick reply .

    I've tried the main stream url in silverlight and WP7 and it works, but I haven't used fiddler to determine if there are any changes it the http requests. I'll get to that today.
    Could you give me an ideia of how the url should look like? Maybe I can intercept the http call and change the utl accordingly.


    Thank you ,

    Ricardo

  7. #7

    Default

    I don't think it is something you can fix. We need to switch our VOD streaming smooth streaming implementation to use the /Fragments lookup method rather than /Chunks. I do not believe the /Chunks method is supported in the newer smooth streaming implementation.

    Charlie

  8. #8

    Default

    Thank you Charlie.

    But where do I go from here? Is there anything I can do in order to make this work? Is there any other streaming configuration that uses only the Fragments instead of Chunks?
    I believe my client would be willing to change some configurations. I really do not fully understand what we are talking about here, but if some samples work, these could work too if property configured, right?

  9. #9

    Default

    I need to fix it on my end and release a patch. I will try to do this in the next week or so. Live streaming should work it is just VOD that has this problem. So there is nothing you can do until I fix this.

    Charlie

  10. #10

    Default

    Thank you very much for your help Charlie. We will be waiting for the patch . We will also be very grateful if you could speed the release of the patch - just because we want to enter an application development contest, and there is a time limit for that. The sooner the better . Anyway, you have been a great help.

    I'm having problems sending you a private message with the stream url, just in case if you want to use it as a test example. If you need it, just ask and I'll send it right away .


    Thanks again Charlie!
    Last edited by ricardoschiller; 04-30-2012 at 08:47 AM.

Page 1 of 2 12 LastLast

Similar Threads

  1. Video Streaming terminating 5 seconds before the end of the video
    By rminari in forum Performance Tuning Discussion
    Replies: 4
    Last Post: 05-15-2012, 04:48 AM
  2. Video Plackback Stop after few seconds
    By tribalhost in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 01-22-2012, 02:48 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
  •