Hi Everyone, 

I understand that, as of now, FFMPEG doesn't support ADIFF format under
AAC stream types.

I want to include the same. 

I require an advice as to how to go about.

The following is my understanding reading code for adts type of aac
headers:

There are 4 functions under a particular format- 
     /**
     * Tell if a given file has a chance of being parsed as this format.
     * The buffer provided is guaranteed to be AVPROBE_PADDING_SIZE
       bytes
     * big so you do not have to check for that unless you need more.
     */
    int (*read_probe)(AVProbeData *);
    /** Read the format header and initialize the AVFormatContext
       structure. Return 0 if OK. 'ap' if non-NULL contains
       additional parameters. Only used in raw format right
       now. 'av_new_stream' should be called to create new streams.  */
    int (*read_header)(struct AVFormatContext *,
                       AVFormatParameters *ap);
    /** Read one packet and put it in 'pkt'. pts and flags are also
       set. 'av_new_stream' can be called only if the flag
       AVFMTCTX_NOHEADER is used.
       @return 0 on success, < 0 on error.
               When returning an error, pkt must not have been allocated
               or must be freed before returning */
    int (*read_packet)(struct AVFormatContext *, AVPacket *pkt);
    /** Close the stream. The AVFormatContext and AVStreams are not
       freed by this function */
    int (*read_close)(struct AVFormatContext *);


So basically, after 'probing' all formates FFMPEG has to know that there
are a good number of frames of the particular type.In ADTS, according to
what I could make out, the function returns the number of frames, which
is compared and FFMPEG decides that it has to be demuxed as the
particular format. For ADIF, the header is larger so can I just
replicate the same code and increase the AVPROBE_PADDING_SIZE?

Could the read_header() for ADTS be used to replicate for ADIF? Would
this be different because ADIF has only 1 header?

Kindly advice. I am a newbie :). Any sort of advice would be really
helpful.

Cheers,
Bob

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to