Skip to main content
Inspiring
March 13, 2012
Question

Recording livepkgr to MP4 file

  • March 13, 2012
  • 1 reply
  • 6433 views

I need to record what's streamed to the livepkgr application as an MP4 file (or convert it afterwards).

As of the default settings the livepkgr applications records all incoming streams as an F4F file (using the main.asc file that came with the installation).

I've tried streaming and recording an H.264 videostream with AAC sound (as per these instructions)

If I move this recored file to another application and rename it to MP4 an external player (JWPlayer) can play the stream just fine, as can iOS devices (though with some minor issues when scrubbing).

The renamed file won't open in Windows Media Player or Quicktime Player, though.

I've tried using the f4vpp tool and processed the video into another MP4 file. This file streams just fine to the external player as well, and it resolves the scrubbing issues on iOS devices.

The file now opens in Windows Media Player, but Quicktime Player still won't open it with the following message: "Error -2002: a bad public movie atom was found in the movie (filename.mp4)"

I really need the livepkgr application to record in a format that either is by default, or can easily be converted to, a proper MP4 file that can be opened in all applications. How can I accomplish this?

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    March 13, 2012

    After flattening, it should be a proper mp4 file. I think its a "quicktime" parsing issue. Mp4 is very generic format and quictime shouldn't assume only specific boxes in the mp4.

    Anyways, what you can do is modify the livepkgr application to record the input stream as mp4 also.

    You will require to just add

    var s2 = Stream.get("mp4:" + streamObj.name);

        if (s2 == undefined )

            return;

    if (!s2.record(recordMode))

        {

            s2.trace("record failed.");

        }

    s2.play(streamObj.name,-1,-1);

    also replicate the same code as we have for stream variable "s" for s2. in unpublish

    Inspiring
    April 17, 2012

    I'm interested in the same functionality too. I need to record a live stream to mp4 files and be able to re-stream it using vod application.

    1. How do I "compile" main.asc file into .far file? Or do I just place main.asc to application folder and delete main.far?

    2. Can I just simply replace "f4f:" part in current sample with "mp4:"?

    3. If I already have couple of dozen streams recorded on the server which are in f4f/f4x format, how do I convert them to mp4?

    Adobe Employee
    April 17, 2012

    You need to rename the *.far file to *.zip file and then unzip it. After extracting all the files, go to main.asc and edit it, that way you will be able to use the code.