[FFmpeg-trac] #3306(avformat:new): avformat cannot mux HEVC into MP4 or MKV container, but MOV works

FFmpeg trac at avcodec.org
Wed Jan 15 05:05:58 CET 2014


#3306: avformat cannot mux HEVC into MP4 or MKV container, but MOV works
-------------------------------------+-------------------------------------
             Reporter:  thebombzen   |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avformat     |                  Version:  git-
             Keywords:  hevc mp4     |  master
  mov matroska muxer                 |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 FFmpeg does not support Muxing HEVC into either Matroska or MP4. However,
 it does work in the MOV muxer. MP4Box/gpac does support muxing HEVC into
 an MP4 container, and FFmpeg can read files muxed by MP4Box/gpac with
 HEVC, so an MP4 container does support HEVC. FFmpeg can also read MOV
 containers with HEVC streams that are muxed by FFmpeg. Matroska supports
 everything (in theory) so this should also work.

 How to reproduce:

 This works fine:
 {{{
 ffmpeg -f hevc -r 60 -i bbb3d_sunflower_video.hevc -c copy video.mov
 }}}

 This does not work:
 {{{
 ffmpeg -f hevc -r 60 -i bbb3d_sunflower_video.hevc -c copy video.mp4
 }}}
 and neither does this:
 {{{
 ffmpeg -f hevc -r 60 -i bbb3d_sunflower_video.hevc -c copy video.mkv
 }}}
 These return
 {{{
 [mp4 @ 0x107d6a0] Could not find tag for codec hevc in stream #0, codec
 not currently supported in container
 }}}
 and
 {{{
 [matroska @ 0x12fb6a0] Can't write packet with unknown timestamp
 av_interleaved_write_frame(): Invalid argument
 }}}

 The raw HEVC streams were encoded using x265.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3306>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list