Results 1 to 9 of 9

Thread: about LiveStreamRecord

  1. #1
    Join Date
    Oct 2012
    Posts
    16

    Default about LiveStreamRecord

    hi,
    i want to use LiveStreamRecord api to record live stream as mp4 files, a mp4 file is 5 minutes long.
    here is my problem:
    when the network is not well , the recorded files are often less than 5 minutes, and the files can not play, how can i fix this problem?
    thanks!

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    To record as mp4 you can add the mp4: prefix to the live encoder stream name.
    For example:
    mp4:[StreamName]

    Do the files play when they are the full 5 minutes at the moment? i.e. when the bandwidth on your network is available?

    Jason

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

    Default

    There is a switch in LiveStreamRecord to record to .mp4. The stream must be h.264 video and AAC or MP3 audio. I don't think there is anything you can do to fix the problem of bad recordings due to bad network conditions.

    Richard

  4. #4
    Join Date
    Oct 2012
    Posts
    16

    Default

    they can play when they are the full 5 minutes.

  5. #5
    Join Date
    Oct 2012
    Posts
    16

    Default

    the bad network conditions i mean that the bandwidth is unstable but the network still works.
    sometimes a mp4 just records for 1 or 2 minutes and wowza starts to record a new one.
    i name mp4 files according to the length of the file,so is there any method that i can get the length of the just finished mp4 file?
    thanks.

  6. #6

    Default

    Hi,

    In a custom module, you can implement the IMediaWriterActionNotify interface to catch when the writing of the file is complete.

    http://www.wowza.com/forums/content....f-live-streams

    From here, you can get the duration use
    StreamUtils.getStreamLength(stream.getAppInstance(), file.getName());
    Roger.

  7. #7
    Join Date
    Oct 2012
    Posts
    16

    Default

    sometimes i play the recorded mp4 file with vlc,vlc shows that the mp4 file is not the standard mp4 file format.
    this situation occurs often when the network is not very stable.
    is this because the mp4 fine head Incomplete?
    what should i do to avoid this situation?
    thanks.

  8. #8
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Is this after writing the code suggested by Roger?
    In a custom module, you can implement the IMediaWriterActionNotify interface to catch when the writing of the file is complete.

    http://www.wowza.com/forums/content....f-live-streams

    From here, you can get the duration use
    Code:
    StreamUtils.getStreamLength(stream.getAppInstance(), file.getName());
    Roger.
    Are you using Wowza on a shared platform or as a dedicated server?
    If the server is a shared platform then you may have to try using a dedicated server or if you're already using a dedicated server then your bandwidth need may need to be spread across multiple servers.

    Jason

  9. #9
    Join Date
    Oct 2012
    Posts
    16

    Default

    there is only one wowza in my project,i published some ipcameras on it ,and my code follows this http://www.wowza.com/forums/content....f-live-streams.
    can`t wowza writes blank frames in the recorded file,when network is not very stable?
    thanks

Similar Threads

  1. Changes in Livestreamrecord* from 3.1.2 to 3.5.2?
    By brambles in forum General Forum
    Replies: 1
    Last Post: 03-26-2013, 05:43 AM
  2. LiveStreamRecord add on
    By editor14 in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 05-29-2012, 08:25 AM
  3. LiveStreamRecord problem
    By catdude in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 02-13-2012, 04:44 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
  •