Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: ISO Mux expecting H.264 NALU or AnnexB?
Started by kdixon at 06-17-2009 14:48. Topic has 7 replies.

Print Search « Previous Thread Next Thread »
  06-17-2009, 14:48
kdixon is not online. Last active: 12/11/2009 11:18:11 PM kdixon

Top 500 Posts
Joined on 06-05-2009
Posts 16
ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
According to the documentation the ISO Mux is expecting an input type of MEDIATYPE_Video / MEDIASUBTYPE_avc1.
2 Questions:

1. Does MEDIASUBTYPE_avc1 (as shown in the docs) correspond to the FOURCC "avc1", e.g. GUID 31637661-0000-0010-8000-00AA00389B71 ?

2. Does the "avc1" FOURCC correspond to a H.264 NALU or AnnexB stream?

I have seen other vendors using the FOURCC "AVC1" to represent NALU, and the FOURCC "H264" or "h264" to represent AnnexB. Does LEAD also follow this convention?

So, what format of byte stream is the ISO Multiplexer expecting?

   Report 
  06-18-2009, 14:07
Adnan Ismail is not online. Last active: 3/19/2010 7:13:59 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 2,047
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
Our ISO Mux can take input video with any of the following sub types:
MEDIASUBTYPE_mp4v
MEDIASUBTYPE_MP4V
MEDIASUBTYPE_avc1
MEDIATYPE_ISOBASE
ISOMEDIATYPE_mp4v

From our own encoders, MEDIASUBTYPE_avc1 can be produced using our LEAD H264 Encoder.
It can also produce the following sub types:
MEDIASUBTYPE_L264
MEDIASUBTYPE_LX64
MEDIASUBTYPE_h264
ISOMEDIATYPE_avc1

If you choose MEDIASUBTYPE_h264, the output will have the standard FourCC of "h264".
If you choose MEDIASUBTYPE_avc1, our encoder output will have the standard FourCC of "avc1".

The MEDIASUBTYPE_L264 and MEDIASUBTYPE_LX64 will produce proprietary variations of the compression (fourCC "L264"), so don't use them if you want compatibility with non-LEAD codecs.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
  06-18-2009, 15:01
kdixon is not online. Last active: 12/11/2009 11:18:11 PM kdixon

Top 500 Posts
Joined on 06-05-2009
Posts 16
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
So if I select the input type for the ISO Multiplexer to be MEDIASUBTYPE_avc1, is it expecting an H.264 NALU stream or an H.264 Annex B byte stream?

   Report 
  06-18-2009, 20:36
kdixon is not online. Last active: 12/11/2009 11:18:11 PM kdixon

Top 500 Posts
Joined on 06-05-2009
Posts 16
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
I tried several tests, using both our hardware H.264 encoders, and your own H.264 encoder. All were set to output avc1 format. When fed into the ISO Multiplexer, then connected to the File Writer filter from Microsoft, it creates files that do not work. VLC and QuickTime cannot play them.

If I use MPEG4 instead of H.264, then VLC can play them if I make the extension .m4v.

I need put H.264 in an MP4 container or 3GPP container. How would you advise I do this?

   Report 
  06-21-2009, 11:24
Adnan Ismail is not online. Last active: 3/19/2010 7:13:59 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 2,047
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
You can generate 3GP files using our H263 encoder as explained in the last part of this help topic:
http://www.leadtools.com/Help/LEADTOOLS/v16/Multimedia/Filters/Filters/LEADH263Encoder(2.0)_UI.htm

About MP4, see this forum post:
http://support.leadtools.com/SupportPortal/CS/forums/20614/ShowPost.aspx


Adnan Ismail
LEADTOOLS Technical Support

   Report 
  06-23-2009, 17:59
kdixon is not online. Last active: 12/11/2009 11:18:11 PM kdixon

Top 500 Posts
Joined on 06-05-2009
Posts 16
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
The ISO Multiplexer seems to require an Annex B stream, and of course won't accept it unless the FourCC is "avc1"

   Report 
  06-23-2009, 18:57
kdixon is not online. Last active: 12/11/2009 11:18:11 PM kdixon

Top 500 Posts
Joined on 06-05-2009
Posts 16
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
To correct my above comment:

The ISO Multiplexer seems to require a NALU stream, and of course won't accept it unless the FourCC is "avc1"

   Report 
  06-24-2009, 13:35
Adnan Ismail is not online. Last active: 3/19/2010 7:13:59 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 2,047
Re: ISO Mux expecting H.264 NALU or AnnexB?
Reply Quote
Our ISO Mux accepts types other than "avc1". If you have reason to believe the Mux or any other LEAD component is behaving incorrectly, please send an email to support@leadtools.com with details on how to reproduce the problem and verify it.
Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Enduser » Multimedia Code... » Re: ISO Mux expecting H.264 NALU or AnnexB?

Powered by Community Server, by Telligent Systems