[FFmpeg-trac] #5872(undetermined:new): ffmpeg creates bad .mov when encoding hap video

FFmpeg trac at avcodec.org
Thu Sep 29 16:04:27 EEST 2016

#5872: ffmpeg creates bad .mov when encoding hap video
             Reporter:  rich99       |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:  mov corrupt  |               Blocked By:
  hap                                |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
 This is a test command to generate a hap mkv file:
 ffmpeg -f lavfi -i testsrc -vcodec hap -t 10 out_hap.mkv

 The created mkv/hap file will not play in ffplay. However, encoding to mov
 will play correctly as so:
 ffmpeg -f lavfi -i testsrc -vcodec hap -t 10 out_hap.mov

 And if the out_hap.mov is muxed using mkvmerge to mkv, it will also play
 correctly in ffplay.
 mkvmerge -o out_hap_good.mkv out_hap.mov

 ffmpeg complains that V_QUICKTIME is not supported.

 I've tried to debug the internals when reading at matroska_parse_tracks in
 matroskadec.c. codec_id is V_QUICKTIME but codec_priv is empty. So it
 might me a problem with how the header is written.

 ffprobe -i out_hap.mkv

 [matroska,webm @ 0000000002613700] Unknown/unsupported AVCodecID
 [matroska,webm @ 0000000002613700] Could not find codec parameters for
 stream 0 (Video: none, none, 320x240): unknown codec
 Consider increasing the value for the 'analyzeduration' and 'probesize'
 Input #0, matroska,webm, from 'out_hap.mkv':
     ENCODER         : Lavf57.51.100
   Duration: 00:00:10.00, start: 0.000000, bitrate: 738 kb/s
     Stream #0:0: Video: none, none, 320x240, SAR 1:1 DAR 4:3, 25 fps, 25
 tbr, 1k tbn, 1k tbc (default)
       ENCODER         : Lavc57.58.100 hap
       DURATION        : 00:00:10.000000000
 Unsupported codec with id 0 for input stream 0

 Tested with ffmpeg-20160927-92de2c2-win64-static and various versions I
 have compiled in 3.1.2, on Windows 10 x64.

Ticket URL: <https://trac.ffmpeg.org/ticket/5872>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list