Results 1 to 8 of 8

Thread: Export DVR video segment to MP4 file

  1. #1

    Question Export DVR video segment to MP4 file

    in my wowza setup I have an application configured as live-record, with the dvr plugin which stores the latest n hours of video.
    Now I need the ability to export arbitrary video segments recorded with the dvr plugin, such that they are viewable with a standard media player (such as windows media player, vlc, or others).

    I searched for a way to recompose the thousands of files stored in the /dvr/ folder, but without any success.
    I even tried the "LiveStreamRecord" example, successfully recording videos to MP4 files, but the problem is that the user should be able to get an MP4 file of something happened before, for example he may want to download the latest 5 minutes.

    Is there anyone who can suggest a way to do this?
    Should I write a custom module with Wowza IDE? And if so, any suggestion on where to start?

    Please note that the DVR is still needed, and that I don't want to waste disk space recording all the streams with the dvr and in mp4!



  2. #2
    Join Date
    May 2011


    It is not currently possible to re-compose the .m4fa and .m4fv files into an MP4 file. It would require a custom module to parse and modify the atom structure of the fragmented MP4 file. I understand that additional disk space is used when you pair recording with both nDVR and live-record, but if you wish to have a final output in .MP4 format, you'll need to continue to use StreamType live-record or the Live Stream Record module. This How to plan your nDVR workflow article describes the different recording options in Wowza Media Server.


  3. #3


    Thanks Lisa,
    You say that with a custom module I could parse the atom structure of m4fa and m4fv files, but is there some documentation on how these files are made?
    If it is available, this could be the best solution to my problem.

    For the moment I decided to go with nDVR for about an hour of recordings, plus liveStreamRecord for the remaining hours, and I'm writing a custom module based on LiveStreamRecord to integrate wowza with our existing application.
    This module splits mp4 files every some minutes, and when an user request to download a video from X to Y I can merge these small pieces together in an unique mp4 file.

    Thank you,

  4. #4
    Join Date
    May 2011


    We do not have any documentation specific to the .m4fa and .m4fv files. Re-composing the .m4f* files isn't currently supported.


  5. #5
    Join Date
    May 2011


    I'll also add that the .m4fa and .m4fv files are an internal format. I don't know of anything planned, but it is possible that the atom structure could change in the future. Since there is a possibility of change, it is not recommended to re-compose the .m4f* files.


  6. #6
    Join Date
    Jun 2014

    Default Easy method to export recorded DVR to mp4 file

    I managed to export wowza recorded DVR chunks to one mp4 file using the following method :

    Install on you local computer or on your server the following script :

    Download all chunks, based on manifest file, using the command :
    PHP Code:
    php AdobeHDS.php --manifest "<url to your DVR manifest file>/manifest.f4m?DVR" --delete 
    more information here :
    This will produce a single mp4 file ( in flv container ).

    Download the generated flv file and change flv container to mp4 using MP4tools.
    Use the "MP4" tab and configure "passthrough" for video and audio track.

    You can extract a specific segment of your video if needed with the same tool using the "Edit files" tab

    The resulting file is proper mp4 file.

  7. #7
    Join Date
    Dec 2007


    Thanks for adding this. Engineering remarked that this is not guaranteed to work in future updates.


  8. #8
    Join Date
    Oct 2014


    Thanks livd3o.

    With your tip I was able to join the fragments into a single .flv file, and after that, to a .mp4 file.
    But in my case, the audio was missing. The video was ok, but the audio not.
    I'm using ubuntu 14.04, PHP 5.5.9-1ubuntu4.4, and avconv.
    I tried to play the .flv and .mp4 files, and both were video ok, but mute.

    Does anybody know what could be wrong?

    I'm new to wowza.

    Thanks in advance for any help.

Similar Threads

  1. Replies: 1
    Last Post: 11-12-2013, 07:53 AM
  2. Support for multiple SPS/PPS in MP4 file streaming containing H264 encoded video
    By hchouhan in forum Video On Demand Streaming Discussion
    Replies: 3
    Last Post: 03-20-2013, 06:41 AM
  3. recorded .mp4 format video file does not play while in live streaming
    By vinodkumarc in forum Live Streaming and Encoder Discussion
    Replies: 6
    Last Post: 10-02-2012, 06:16 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