[Live-devel] MP4 video trak samples: were do 'non-frame' NAL units belong?

Joel Keller jkeller at miovision.com
Mon Mar 25 06:38:35 PDT 2013


>> My questions are:
>>
>> 1)  What is the correct thing to do with these NAL units in the MP4 file?

>According to ISO 14496, SPS and PPS should ONLY appears in 'avcC' box.

Thanks for the confirmation.  That makes sense to me.

>> 2)  How can I make openRTSP/live555 create an MP4 file without this
>> stuttering?

>Collect NALUs with the same RTP timestamp and send them as a frame
>into any third
>party muxer that supporting ISO base media format, e.g. libavformat
>from FFmpeg.

>If you set avformat context correctly, it will produce what you want.

Just so I'm clear, you are suggesting using live555 for receiving the
RTSP/RTP stream, and then passing the NALU stream to another library (ie.
libavformat) to containerize the video, correct?  I was hoping use only
live555 (QuickTimeFileSink) to keep things simple, but using another
library would be an option.

Looks like I can either figure out how to properly patch the QuickTimeFileSink
class to create proper MP4 files, or use another library for
containerization.


Thanks very much for your response Peng!


-Joel



On Sun, Mar 24, 2013 at 2:24 AM, Peng Zheng <howtofly at gmail.com> wrote:

> > My questions are:
> >
> > 1)  What is the correct thing to do with these NAL units in the MP4 file?
>
> According to ISO 14496, SPS and PPS should ONLY appears in 'avcC' box.
>
> > 2)  How can I make openRTSP/live555 create an MP4 file without this
> > stuttering?
>
> Collect NALUs with the same RTP timestamp and send them as a frame
> into any third
> party muxer that supporting ISO base media format, e.g. libavformat
> from FFmpeg.
>
> If you set avformat context correctly, it will produce what you want.
>
> Peng
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130325/45b68638/attachment.html>


More information about the live-devel mailing list