Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Play stream that has finished recording

  1. #1

    Default Can't play stream that has finished recording

    Hello!

    I have an IP camera from which I successfully pull the stream on startup of WMS. The stream is recorded via nDVR, and I can subscribe to it with an OSMF Flash player (particularly the one that ships with Wowza 3.1.2 and can be found at examples/SimpleVideoStreaming/clientOSMF), but once I stop recording the stream from the camera, I can't seem to play the record. I use stream manager web interface to turn off the recording by clicking "stop receiving stream".
    The interesting part is that right after I turn off the camera stream, I go back to the OSMF player that is still playing back the stream (shifted several seconds before the camera stream), and it plays smoothly until the time that I stopped recording. If I reconnect to the same stream and play it, there is no video. The button goes from "Play" back to "Stop", but no error is shown.

    I play a URL like this: http://host:1935/appName/streamName/manifest.f4m?DVR
    I have verified that all the right files are created at [install-dir]/dvr/appName/_definst_/streamName.0/...

    Is there something I am doing wrong? I only wish to play what nDVR has recorded.

    (The beginning of the following thread seems to be about a similar problem: http://www.wowza.com/forums/showthre...aying!-...What)


    There's another thing about the nDVR addon that I would like to know. It is said in the tutorials that it is possible make several short recordings instead of a long continuous one. How can that be accomplished? Is it possible to make several consequent recordings and then, leveraging the Playlist Request API, playback the playlist that covers a short period of time beginning in one actual recording and continuing for some time in the next one, seamlessly? Or perhaps it would be okay to make a looong recording that will only be played by small sections, via custom playlists?

    Thank you
    Last edited by Hunternif; 11-02-2012 at 05:25 AM. Reason: added some urls

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

    Default

    First, follow this guide to configure for nDVR:

    http://www.wowza.com/forums/content....live-streaming

    And use the player in /examples/LiveDvrStreaming to test DVR functionality.

    Richard

  3. #3

    Default

    Thanks for the reply, Richard.

    I had followed the guide before, so I did the troubleshooting test now, and I was able to play (using Strobe player) both live and recorded DVR stream from a test Flex application that sent video from my webcam over RTMP. However, with Strobe or other OSMF player I still cannot play the stream recorded from the IP camera, after I stop it using stream manager. I have window duration set to 30 seconds, and when I try to play the stream after I have stopped recording it, Strobe player shows ~55 seconds on the seek bar, but does not play anything. Could it be the stream manager that somehow stops the playback as well as recording?
    As I have described before, I am able to seek and play my recorded 30 seconds if the player had been connected to the live stream before I stopped recording. When I reconnect to the same stream, it appears like it is around 55 seconds long (while it should be around 30), and when I hit play it jumps right to the end, showing nothing. The stream appears to be empty. However, the required files are all there, in [wms]/dvr/appName/_definst_/streamName.0/..., so what should I do to play them?

    Could you suggest a workflow for recording and playing a stream from an IP camera using nDVR addon?

    Also, could you provide some insight into my second question in the first post?

    Thank you

    PS I wish I could change the name of this thread to mention the IP Camera
    Last edited by Hunternif; 10-26-2012 at 02:03 AM.

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

    Default

    I get similar results. I will have to get back to you, on the 2nd question too

    Richard

  5. #5

    Default

    I tried using the provided DvrStartDurationPlaylistRequestDelegate and I wasn't able to play the stream while it was still recording. Strobe player displayed correct duration, but when I tried playing it the seekbar thumb jumped right to the end. The picture was black the whole time.

    But then I got something really interesting.

    All this time my IP camera stream address was set in a file at "[wowzahome]/content/camera.stream" and looked like this: rtsp://address
    Then I tried the following: I streamed that camera to another wowza server to application "live"; then I used the video streaming from that other server in my "camera.stream" file, so that its contents looked like this: rtsp://other-wowza-adress:1935/live/camera.stream.
    And that worked!.. almost
    I was able to play the stream after I had stopped recording it, able to set starting time and duration with DvrStartDurationPlaylistRequestDelegate on both live and recorded stream.
    BUT apart from that it's a convoluted solution, the experience was really buggy. For different playlists within the same ~10 minute recording I have had the following:
    - in most of my attempts the recorded stream behaved like before - skipped to the end right away;
    - sometimes I could start playing it from certain moments in time, but then it would jump to the beginning even though I clicked in the middle of the seekbar;
    - sometimes the picture froze, and wouldn't play even the parts of the seekbar that were okay previously;
    - sometimes it stopped playing before the end of the seekbar and jumped to the end or even to the beginning;
    - sometimes the duration on the seekbar showed times like 1900 hours when jumping to the end;
    - the duration was always a few seconds off from what I had requested, but I'm guessing that had something to do with alignment to chunks;
    - also when I played the pre-recorded stream with default playlist (just .../manifest.f4m?dvr) (or a playlist with start time close to 0), it did play back, but like a live stream, i.e. no duration, seekbar thumb unmoving.

    I hope these symptoms will help you figure out what's wrong with my workflow or my setup - or maybe nDVR itself?..

    Thank you
    Last edited by Hunternif; 10-31-2012 at 11:01 PM.

  6. #6
    Join Date
    May 2011
    Posts
    456

    Default

    I am further investigating the playback report with Strobe.

    -Lisa

  7. #7
    Join Date
    May 2011
    Posts
    456

    Default

    The proper way to stop the recording is not through Stream Manager, but instead stop the recording using the nDVR Recording API. When you stop the stream using Stream Manager it completely unloads the stream. The player may or may not be able to resume playing. Behavior varies between players, but you can't rely on the player being able to resume playing when the stream is stopped with Stream Manager.

    -Lisa

  8. #8

    Default

    Thank you Lisa, I ought to have tried nDVR Recording API earlier.
    Now that I did, it prints positive responses when I call "...action=start" or "...action=stop" using HTTPDvrStreamRecord provider, but I'm still having trouble playing DVR recordings with Strobe. The symptoms are the same:

    - correct duration displayed;
    - if not playing from the beginning of the recording, player skips to the end of the seekbar right away;
    - occasionally I am able to start playing somewhere in the middle of the seekbar, but then seekbar thumb jumps to the beginning;
    - occasionally the picture freezes.
    Last edited by Hunternif; 11-07-2012 at 07:04 AM. Reason: forgot to include the stream in startup streams

  9. #9
    Join Date
    May 2011
    Posts
    456

    Default

    Is there a pattern to when the you can start playing back/seeking successfully and when not? I suspect the freezing is due to buffering from the Strobe player. Does the playback continue?

    Which version of Wowza Server are you using? For nDVR workflows, I recommend upgrading to the latest patch, 3.1.2 patch 16 which includes recent fixes for nDVR adaptive bitrate and HLS workflows.

    -Lisa

  10. #10

    Default

    I installed patch 16 for 3.1.2.
    Though I couldn't find a link to it anywhere on the site, so I literally guessed it by looking at a URL for some old patch that had been posted in the forums.

    The pattern to play UNsuccessfully is to set starttime > 100 (some small value around 0) and play from the beginning.
    The only way I can reliably play is to set starttime to some small value around 0. For other values of starttime, it only occasionally happened that I clicked in the middle of the seekbar and the picture of the first frame appeared (from time 0, not where I had clicked). After that I could seek the whole duration. In other words, I haven't found a pattern that would help you.

    Looks like WMS 3.5 has just come out, I will have to test with that.
    Last edited by Hunternif; 11-13-2012 at 03:14 AM.

Page 1 of 3 123 LastLast

Similar Threads

  1. playback finished DVRs in origin-edge configuration dont work
    By yaroslavv in forum AddOn: Wowza nDVR
    Replies: 30
    Last Post: 04-08-2013, 08:25 AM
  2. Sending finished DVR stream to an Edge Server
    By javicho in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 05-17-2012, 10:48 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
  •