Charles Woloszynski wrote: > I am working to generate H.264 video clips using gstreamer and I want to > use QuickTime as the playback engine. > > I used: > > gst-launch videotestsrc pattern=1 num-buffers=60 ! TIVidenc1 codecName=h264enc engineName=codecServer ! qtmux ! filesink location=file > > But, the output file is not correctly formatted. I was told that the > output of the TIVidenc1 is in a byte stream in NALU format, but the > qtmux expects the video in packetized format with right codec_data (avcC > atom) field information. > > I am new to these formats, so I am looking for any pointers to help. > > First, is there a way to feed NALU directly into QuickTime? I would say that is the way given above, but the result would not be according to any spec and it would be a matter of luck for anything to 'like it' that way. > > Second, is there an existing tool to convert NALU into the right format > (gstreamer plugin?) A recent (git) version of h264parse should be able to do that (with properties set properly; IIRC access-unit=true output-format=0) > > Third, can someone help me understand these two formats (pointer to > their definition?) so I can look into how to create a plugin to do this > coversion? The bytestream format is defined in the H264 spec (MPEG-4 part 10) Annex B. The packetized format (AVC sample format) is defined in an MP4 file format spec or so (IIRC MPEG-4 part 14 or 15). Mark. > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > > > ------------------------------------------------------------------------ > > _______________________________________________ > Gstreamer-embedded mailing list > Gstreamer-embedded at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded