[FFmpeg-devel] 回复: [PATCH] libavformat/movenc: add support for HEVC in .3gp

Gyan Doshi ffmpeg at gyani.pro
Wed Dec 9 18:06:04 EET 2020

On 09-12-2020 07:33 pm, Sun Zhenliang wrote:
> 1) 3GPP TS 26.244 V16.1.0 (2020-09)  and ISO/IEC 14496-15: "Information technology – Coding of audio-visual objects – Part 15: Carriage of NAL unit structured video in the ISO base media file format"   states HEVC's sample entry in 3GPP file format. I think these documentations says we can store hevc in 3gp files.

Ok. How should the major and minor brands be set? See the function 
mov_write_ftyp_tag_internal(), starting lines 4933. There might be some 
modifications for HEVC as well.

> 2) I just found that I could encode hevc into 3gp files by adding tags to 3GP tag list. By just adding one line, ffmpeg could make 3gp file with hevc and ffplay can also play it correctly. That's enough for me.  Because I don't set parameters very much, I didn't find any parameter restrictions.

ffplay / libavformat is not very picky and won't be the common player 
consuming these files once this is merged.


More information about the ffmpeg-devel mailing list