[FFmpeg-devel] [PATCH] mp4toannexb modification / improvement

Luca Abeni lucabe72
Mon Jun 7 10:08:48 CEST 2010


On 06/04/2010 03:58 PM, Luca Abeni wrote:
> On 04/06/10 15:48, Michael Niedermayer wrote:
>> On Fri, Jun 04, 2010 at 01:34:06PM +0200, Luca Abeni wrote:
>> [...]
>>> Which kind of solution do you prefer? Changing line 2171 in something
>>> that allocates memory for the "output extradata", and copies the input
>>> extradata in this new buffer?
>>
>> yes
>
> Ok, good. I'll work on that patch during the weekend, and I'll probably
> post it on Monday.

So, here are some patches:
copy_extradata_3.diff modifies ffmpeg.c to copy the extradata from the
                       input codec to the output codec (instead of just
                       copying a pointer to the extradata), as suggested
                       above
improve_mp4toannexb_2.diff modifies the mp4toannexb BSF to convert the
                            extradata. The previous patch is needed,
                            otherwise there are problems with "-vcodec copy"
                            (see previous email)
use_bsf_for_sdp.diff uses the previous mp4toannexb BSF improvement to
                      correctly print the SPS and PPS in the SDP, even when
                      the bitstream is in "AVC" syntax


				Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: improve_mp4toannexb_2.diff
Type: text/x-diff
Size: 1968 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100607/2bc17405/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy_extradata_3.diff
Type: text/x-diff
Size: 1085 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100607/2bc17405/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_bsf_for_sdp.diff
Type: text/x-diff
Size: 683 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100607/2bc17405/attachment-0002.diff>



More information about the ffmpeg-devel mailing list