Opened 8 years ago
Closed 8 years ago
#5872 closed defect (fixed)
ffmpeg creates bad .mov when encoding hap video
Reported by: | rich99 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | mkv |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
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 V_QUICKTIME. [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' options Input #0, matroska,webm, from 'out_hap.mkv': Metadata: 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) Metadata: 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.
Change History (10)
comment:1 by , 8 years ago
Keywords: | mkv added; mov corrupt removed |
---|
comment:2 by , 8 years ago
Keywords: | mov corrupt added; mkv removed |
---|---|
Version: | unspecified → git-master |
comment:3 by , 8 years ago
Command:
ffmpeg -f lavfi -i testsrc -vcodec hap -t 10 out_hap.mkv
Output:
ffmpeg version N-81784-g92de2c2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.100 / 57. 58.100 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 25 tbr, 25 tbn, 25 tbc File 'out_hap.mkv' already exists. Overwrite ? [y/N] y Output #0, matroska, to 'out_hap.mkv': Metadata: encoder : Lavf57.51.100 Stream #0:0: Video: hap (Hap1 / 0x31706148), rgba, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc57.58.100 hap Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hap (native)) Press [q] to stop, [?] for help frame= 250 fps=0.0 q=-0.0 Lsize= 901kB time=00:00:09.96 bitrate= 741.2kbits/s speed=78.9x video:892kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.013708%
comment:4 by , 8 years ago
Trying to play the file:
ffplay out_hap.mkv
Output:
ffplay version N-81784-g92de2c2 Copyright (c) 2003-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.100 / 57. 58.100 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 [matroska,webm @ 0000000002669d60] Unknown/unsupported AVCodecID V_QUICKTIME. [matroska,webm @ 0000000002669d60] Could not find codec parameters for stream 0 (Video: none, none, 320x240): unknown codec Consider increasing the value for the 'analyzeduration' and 'probesize' options Input #0, matroska,webm, from 'out_hap.mkv': Metadata: 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) Metadata: ENCODER : Lavc57.58.100 hap DURATION : 00:00:10.000000000 No codec could be found with id 0 Failed to open file 'out_hap.mkv' or configure filtergraph
comment:5 by , 8 years ago
Uncut output for:
ffmpeg -v 9 -loglevel "trace" -f lavfi -i testsrc -vcodec hap -t 3 out_hap.mkv
ffmpeg -v 9 -loglevel "trace" -f lavfi -i testsrc -vcodec hap -t 3 out_hap.mkv ffmpeg version N-81784-g92de2c2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.100 / 57. 58.100 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'. Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'. Reading option '-i' ... matched as input file with argument 'testsrc'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'hap'. Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '3'. Reading option 'out_hap.mkv' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument 9. Successfully parsed a group of options. Parsing a group of options: input file testsrc. Applying option f (force format) with argument lavfi. Successfully parsed a group of options. Opening an input file: testsrc. detected 16 logical cores [Parsed_testsrc_0 @ 0000000000e78020] size:320x240 rate:25/1 duration:-1.000000 sar:1/1 [AVFilterGraph @ 0000000000e72a40] query_formats: 2 queried, 1 merged, 0 already done, 0 delayed [lavfi @ 00000000025b24a0] All info found [lavfi @ 00000000025b24a0] stream 0: start_time: 0.000 duration: -368934881474191040.000 [lavfi @ 00000000025b24a0] format: start_time: 0.000 duration: -9223372036854.775 bitrate=0 kb/s Input #0, lavfi, from 'testsrc': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 0/1, 25 tbr, 25 tbn, 25 tbc Successfully opened the file. Parsing a group of options: output file out_hap.mkv. Applying option vcodec (force video codec ('copy' to copy stream)) with argument hap. Applying option t (record or transcode "duration" seconds of audio/video) with argument 3. Successfully parsed a group of options. Opening an output file: out_hap.mkv. [file @ 00000000026377e0] Setting default whitelist 'file,crypto' Successfully opened the file. [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'video_size' to value '320x240' [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'pix_fmt' to value '2' [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'pixel_aspect' to value '1/1' [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 0000000002647de0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 0000000002647de0] w:320 h:240 pixfmt:rgb24 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2 [format @ 00000000026482c0] compat: called with args=[rgba] [format @ 00000000026482c0] Setting 'pix_fmts' to value 'rgba' [auto-inserted scaler 0 @ 00000000026486e0] Setting 'flags' to value 'bicubic' [auto-inserted scaler 0 @ 00000000026486e0] w:iw h:ih flags:'bicubic' interl:0 [format @ 00000000026482c0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format' [AVFilterGraph @ 00000000026306e0] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed [swscaler @ 0000000002650c20] Forcing full internal H chroma due to input having non subsampled chroma [auto-inserted scaler 0 @ 00000000026486e0] w:320 h:240 fmt:rgb24 sar:1/1 -> w:320 h:240 fmt:rgba sar:1/1 flags:0x4 Output #0, matroska, to 'out_hap.mkv': Metadata: encoder : Lavf57.51.100 Stream #0:0, 0, 1/1000: Video: hap, 1 reference frame (Hap1 / 0x31706148), rgba, 320x240 [SAR 1:1 DAR 4:3], 0/1, q=2-31, 200 kb/s, 25 fps, 1k tbn, 25 tbc Metadata: encoder : Lavc57.58.100 hap Stream mapping: Stream #0:0 -> #0:0 (rawvideo (native) -> hap (native)) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 Clipping frame in rate conversion by 0.000008 [matroska @ 0000000002635240] get_metadata_duration returned: 0 [matroska @ 0000000002635240] Write early duration from recording time = 3000 [matroska @ 0000000002635240] Writing block at offset 668, size 3650, pts 0, dts 0, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 4325, size 3641, pts 40, dts 40, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 7973 bytes, pts 80dts 80 [matroska @ 0000000002635240] Writing block at offset 7988, size 3641, pts 80, dts 80, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 11636, size 3650, pts 120, dts 120, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 15293 bytes, pts 160dts 160 [matroska @ 0000000002635240] Writing block at offset 15308, size 3655, pts 160, dts 160, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 18970, size 3660, pts 200, dts 200, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 22637 bytes, pts 240dts 240 [matroska @ 0000000002635240] Writing block at offset 22652, size 3655, pts 240, dts 240, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 26314, size 3656, pts 280, dts 280, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 29977 bytes, pts 320dts 320 [matroska @ 0000000002635240] Writing block at offset 29993, size 3665, pts 320, dts 320, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 33665, size 3658, pts 360, dts 360, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 37330 bytes, pts 400dts 400 [matroska @ 0000000002635240] Writing block at offset 37346, size 3669, pts 400, dts 400, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 41022, size 3662, pts 440, dts 440, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 44691 bytes, pts 480dts 480 [matroska @ 0000000002635240] Writing block at offset 44707, size 3674, pts 480, dts 480, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 48388, size 3656, pts 520, dts 520, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 52051 bytes, pts 560dts 560 [matroska @ 0000000002635240] Writing block at offset 52067, size 3669, pts 560, dts 560, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 55743, size 3663, pts 600, dts 600, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 59413 bytes, pts 640dts 640 [matroska @ 0000000002635240] Writing block at offset 59429, size 3661, pts 640, dts 640, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 63097, size 3660, pts 680, dts 680, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 66764 bytes, pts 720dts 720 [matroska @ 0000000002635240] Writing block at offset 66780, size 3656, pts 720, dts 720, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 70443, size 3655, pts 760, dts 760, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 74105 bytes, pts 800dts 800 [matroska @ 0000000002635240] Writing block at offset 74121, size 3661, pts 800, dts 800, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 77789, size 3669, pts 840, dts 840, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 81465 bytes, pts 880dts 880 [matroska @ 0000000002635240] Writing block at offset 81481, size 3654, pts 880, dts 880, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 85142, size 3659, pts 920, dts 920, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 88808 bytes, pts 960dts 960 [matroska @ 0000000002635240] Writing block at offset 88824, size 3671, pts 960, dts 960, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 92502, size 3586, pts 1000, dts 1000, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 96095 bytes, pts 1040dts 1040 [matroska @ 0000000002635240] Writing block at offset 96111, size 3580, pts 1040, dts 1040, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 99698, size 3583, pts 1080, dts 1080, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 103288 bytes, pts 1120dts 1120 [matroska @ 0000000002635240] Writing block at offset 103304, size 3585, pts 1120, dts 1120, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 106896, size 3580, pts 1160, dts 1160, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 110483 bytes, pts 1200dts 1200 [matroska @ 0000000002635240] Writing block at offset 110499, size 3586, pts 1200, dts 1200, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 114092, size 3579, pts 1240, dts 1240, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 117678 bytes, pts 1280dts 1280 [matroska @ 0000000002635240] Writing block at offset 117694, size 3593, pts 1280, dts 1280, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 121294, size 3592, pts 1320, dts 1320, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 124893 bytes, pts 1360dts 1360 [matroska @ 0000000002635240] Writing block at offset 124909, size 3600, pts 1360, dts 1360, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 128516, size 3592, pts 1400, dts 1400, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 132115 bytes, pts 1440dts 1440 [matroska @ 0000000002635240] Writing block at offset 132131, size 3584, pts 1440, dts 1440, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 135722, size 3595, pts 1480, dts 1480, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 139324 bytes, pts 1520dts 1520 [matroska @ 0000000002635240] Writing block at offset 139340, size 3602, pts 1520, dts 1520, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 142949, size 3606, pts 1560, dts 1560, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 146562 bytes, pts 1600dts 1600 [matroska @ 0000000002635240] Writing block at offset 146578, size 3609, pts 1600, dts 1600, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 150194, size 3635, pts 1640, dts 1640, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 153836 bytes, pts 1680dts 1680 [matroska @ 0000000002635240] Writing block at offset 153852, size 3618, pts 1680, dts 1680, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 157477, size 3625, pts 1720, dts 1720, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 161109 bytes, pts 1760dts 1760 [matroska @ 0000000002635240] Writing block at offset 161125, size 3628, pts 1760, dts 1760, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 164760, size 3625, pts 1800, dts 1800, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 168392 bytes, pts 1840dts 1840 [matroska @ 0000000002635240] Writing block at offset 168408, size 3609, pts 1840, dts 1840, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 172024, size 3623, pts 1880, dts 1880, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 175654 bytes, pts 1920dts 1920 [matroska @ 0000000002635240] Writing block at offset 175670, size 3635, pts 1920, dts 1920, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 179312, size 3624, pts 1960, dts 1960, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 182943 bytes, pts 2000dts 2000 [matroska @ 0000000002635240] Writing block at offset 182959, size 3686, pts 2000, dts 2000, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 186652, size 3672, pts 2040, dts 2040, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 190331 bytes, pts 2080dts 2080 [matroska @ 0000000002635240] Writing block at offset 190347, size 3680, pts 2080, dts 2080, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 194034, size 3677, pts 2120, dts 2120, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 197718 bytes, pts 2160dts 2160 [matroska @ 0000000002635240] Writing block at offset 197734, size 3669, pts 2160, dts 2160, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 201410, size 3672, pts 2200, dts 2200, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 205089 bytes, pts 2240dts 2240 [matroska @ 0000000002635240] Writing block at offset 205105, size 3659, pts 2240, dts 2240, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 208771, size 3659, pts 2280, dts 2280, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 212437 bytes, pts 2320dts 2320 [matroska @ 0000000002635240] Writing block at offset 212453, size 3649, pts 2320, dts 2320, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 216109, size 3648, pts 2360, dts 2360, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 219764 bytes, pts 2400dts 2400 [matroska @ 0000000002635240] Writing block at offset 219780, size 3650, pts 2400, dts 2400, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 223437, size 3657, pts 2440, dts 2440, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 227101 bytes, pts 2480dts 2480 [matroska @ 0000000002635240] Writing block at offset 227117, size 3639, pts 2480, dts 2480, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 230763, size 3647, pts 2520, dts 2520, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 234417 bytes, pts 2560dts 2560 [matroska @ 0000000002635240] Writing block at offset 234433, size 3656, pts 2560, dts 2560, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 238096, size 3651, pts 2600, dts 2600, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 241754 bytes, pts 2640dts 2640 [matroska @ 0000000002635240] Writing block at offset 241770, size 3651, pts 2640, dts 2640, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 245428, size 3656, pts 2680, dts 2680, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 249091 bytes, pts 2720dts 2720 [matroska @ 0000000002635240] Writing block at offset 249107, size 3649, pts 2720, dts 2720, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 252763, size 3655, pts 2760, dts 2760, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 256425 bytes, pts 2800dts 2800 [matroska @ 0000000002635240] Writing block at offset 256441, size 3657, pts 2800, dts 2800, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 260105, size 3662, pts 2840, dts 2840, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 263774 bytes, pts 2880dts 2880 [matroska @ 0000000002635240] Writing block at offset 263790, size 3668, pts 2880, dts 2880, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Writing block at offset 267465, size 3666, pts 2920, dts 2920, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [matroska @ 0000000002635240] Starting new cluster at offset 271138 bytes, pts 2960dts 2960 [matroska @ 0000000002635240] Writing block at offset 271154, size 3673, pts 2960, dts 2960, duration 40, keyframe 1 [rawvideo @ 00000000025b36c0] PACKET SIZE: 230400, STRIDE: 960 [output stream 0:0 @ 0000000002648600] EOF on sink link output stream 0:0:default. No more output streams to write to, finishing. [matroska @ 0000000002635240] end duration = 3000 [matroska @ 0000000002635240] stream 0 end duration = 3000 frame= 75 fps=0.0 q=-0.0 Lsize= 270kB time=00:00:02.96 bitrate= 746.5kbits/s speed=13.5x video:267kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.183291% Input file #0 (testsrc): Input stream #0:0 (video): 76 packets read (17510400 bytes); 76 frames decoded; Total: 76 packets (17510400 bytes) demuxed Output file #0 (out_hap.mkv): Output stream #0:0 (video): 75 frames encoded; 75 packets muxed (273052 bytes); Total: 75 packets (273052 bytes) muxed 76 frames successfully decoded, 0 decoding errors [AVIOContext @ 0000000000e7eec0] Statistics: 395 seeks, 353 writeouts
comment:6 by , 8 years ago
Remuxing .mov to mkv also produces unplayable mkv.
ffmpeg -v 9 -loglevel 99 -i out_hap.mov -vcodec copy out_hap_2.mkv ffmpeg version N-81784-g92de2c2 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.4.0 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib libavutil 55. 30.100 / 55. 30.100 libavcodec 57. 58.100 / 57. 58.100 libavformat 57. 51.100 / 57. 51.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 63.100 / 6. 63.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 2.100 / 2. 2.100 libpostproc 54. 0.100 / 54. 0.100 Splitting the commandline. Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'. Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'. Reading option '-i' ... matched as input file with argument 'out_hap.mov'. Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'copy'. Reading option 'out_hap_2.mkv' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option v (set logging level) with argument 9. Successfully parsed a group of options. Parsing a group of options: input file out_hap.mov. Successfully parsed a group of options. Opening an input file: out_hap.mov. [file @ 0000000002613260] Setting default whitelist 'file,crypto' Probing mov,mp4,m4a,3gp,3g2,mj2 score:100 size:2048 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 70797466 'ftyp' parent:'root' sz: 20 8 274094 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] ISO: File Type Major Brand: qt [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 65646977 'wide' parent:'root' sz: 8 28 274094 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 7461646d 'mdat' parent:'root' sz: 273060 36 274094 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 766f6f6d 'moov' parent:'root' sz: 1006 273096 274094 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6468766d 'mvhd' parent:'moov' sz: 108 8 998 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] time scale = 1000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6b617274 'trak' parent:'moov' sz: 857 116 998 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 64686b74 'tkhd' parent:'trak' sz: 92 8 849 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 73746465 'edts' parent:'trak' sz: 36 100 849 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 74736c65 'elst' parent:'edts' sz: 28 8 28 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] track[0].edit_count = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] duration=3000 time=0 rate=1.000000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6169646d 'mdia' parent:'trak' sz: 721 136 849 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6468646d 'mdhd' parent:'mdia' sz: 32 8 713 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 726c6468 'hdlr' parent:'mdia' sz: 45 40 713 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] ctype= mhlr (0x726c686d) [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stype= vide [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 666e696d 'minf' parent:'mdia' sz: 636 85 713 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 64686d76 'vmhd' parent:'minf' sz: 20 8 628 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 726c6468 'hdlr' parent:'minf' sz: 44 28 628 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] ctype= dhlr (0x726c6864) [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stype= url [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 666e6964 'dinf' parent:'minf' sz: 36 72 628 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 66657264 'dref' parent:'dinf' sz: 28 8 28 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type url size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] Unknown dref type 0x08206c7275 size 12 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6c627473 'stbl' parent:'minf' sz: 528 108 628 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 64737473 'stsd' parent:'stbl' sz: 128 8 520 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] size=112 4CC= Hap1/0x31706148 codec_type=0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6c656966 'fiel' parent:'stsd' sz: 10 8 26 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 70736170 'pasp' parent:'stsd' sz: 16 18 26 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 73747473 'stts' parent:'stbl' sz: 24 136 520 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] track[0].stts.entries = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] sample_count=75, sample_duration=512 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 63737473 'stsc' parent:'stbl' sz: 28 160 520 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] track[0].stsc.entries = 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 7a737473 'stsz' parent:'stbl' sz: 320 188 520 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] sample_size = 0 sample_count = 75 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 6f637473 'stco' parent:'stbl' sz: 20 508 520 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 0, offset 24, dts 0, size 3650, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 1, offset e66, dts 512, size 3641, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 2, offset 1c9f, dts 1024, size 3641, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 3, offset 2ad8, dts 1536, size 3650, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 4, offset 391a, dts 2048, size 3655, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 5, offset 4761, dts 2560, size 3660, distance 0, keyframe 1 [...] [...] [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 71, offset 3f173, dts 36352, size 3662, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 72, offset 3ffc1, dts 36864, size 3668, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 73, offset 40e15, dts 37376, size 3666, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] AVIndex stream 0, sample 74, offset 41c67, dts 37888, size 3673, distance 0, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] Processing st: 0, edit list 0 - media time: 0, duration: 38400 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 61746475 'udta' parent:'moov' sz: 33 973 998 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] type: 727773a9 '®swr' parent:'udta' sz: 25 8 25 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] lang "und" tag "encoder" value "Lavf57.51.100" atom "®swr" 27 13 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] on_parse_exit_offset=274094 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] Before avformat_find_stream_info() pos: 274094 bytes read:33774 seeks:1 nb_streams:1 [hap @ 00000000026242e0] DXT1 texture [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 0, dts 0 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] All info found [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0: start_time: 0.000 duration: 3.000 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] format: start_time: 0.000 duration: 3.000 bitrate=730 kb/s [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] After avformat_find_stream_info() pos: 3686 bytes read:66542 seeks:2 frames:1 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out_hap.mov': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf57.51.100 Duration: 00:00:03.00, start: 0.000000, bitrate: 730 kb/s Stream #0:0(eng), 1, 1/12800: Video: hap, 1 reference frame (Hap1 / 0x31706148), rgb0, 320x240, 0/1, 728 kb/s, SAR 1:1 DAR 4:3, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default) Metadata: handler_name : DataHandler encoder : Lavc57.58.100 hap Successfully opened the file. Parsing a group of options: output file out_hap_2.mkv. Applying option vcodec (force video codec ('copy' to copy stream)) with argument copy. Successfully parsed a group of options. Opening an output file: out_hap_2.mkv. [file @ 00000000026164e0] Setting default whitelist 'file,crypto' Successfully opened the file. Output #0, matroska, to 'out_hap_2.mkv': Metadata: major_brand : qt minor_version : 512 compatible_brands: qt encoder : Lavf57.51.100 Stream #0:0(eng), 0, 1/1000: Video: hap, 1 reference frame (Hap1 / 0x31706148), rgb0, 320x240 (0x0) [SAR 1:1 DAR 4:3], 0/1, q=2-31, 728 kb/s, 25 fps, 25 tbr, 1k tbn, 12800 tbc (default) Metadata: handler_name : DataHandler encoder : Lavc57.58.100 hap Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help cur_dts is invalid (this is harmless if it occurs once at the start per stream) [matroska @ 0000000002614d00] get_metadata_duration returned: 0 [matroska @ 0000000002614d00] Writing block at offset 807, size 3650, pts 0, dts 0, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 1, dts 40000 [matroska @ 0000000002614d00] Writing block at offset 4464, size 3641, pts 40, dts 40, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 2, dts 80000 [matroska @ 0000000002614d00] Starting new cluster at offset 8112 bytes, pts 80dts 80 [matroska @ 0000000002614d00] Writing block at offset 8127, size 3641, pts 80, dts 80, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 3, dts 120000 [matroska @ 0000000002614d00] Writing block at offset 11775, size 3650, pts 120, dts 120, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 4, dts 160000 [matroska @ 0000000002614d00] Starting new cluster at offset 15432 bytes, pts 160dts 160 [matroska @ 0000000002614d00] Writing block at offset 15447, size 3655, pts 160, dts 160, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 5, dts 200000 [matroska @ 0000000002614d00] Writing block at offset 19109, size 3660, pts 200, dts 200, duration 40, keyframe 1 [...] [...] [matroska @ 0000000002614d00] Writing block at offset 260244, size 3662, pts 2840, dts 2840, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 72, dts 2880000 [matroska @ 0000000002614d00] Starting new cluster at offset 263913 bytes, pts 2880dts 2880 [matroska @ 0000000002614d00] Writing block at offset 263929, size 3668, pts 2880, dts 2880, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 73, dts 2920000 [matroska @ 0000000002614d00] Writing block at offset 267604, size 3666, pts 2920, dts 2920, duration 40, keyframe 1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000692600] stream 0, sample 74, dts 2960000 [matroska @ 0000000002614d00] Starting new cluster at offset 271277 bytes, pts 2960dts 2960 [matroska @ 0000000002614d00] Writing block at offset 271293, size 3673, pts 2960, dts 2960, duration 40, keyframe 1 No more output streams to write to, finishing. [matroska @ 0000000002614d00] end duration = 3000 [matroska @ 0000000002614d00] stream 0 end duration = 3000 frame= 75 fps=0.0 q=-1.0 Lsize= 270kB time=00:00:02.96 bitrate= 746.8kbits/s speed=15.2x video:267kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.234197% Input file #0 (out_hap.mov): Input stream #0:0 (video): 75 packets read (273052 bytes); Total: 75 packets (273052 bytes) demuxed Output file #0 (out_hap_2.mkv): Output stream #0:0 (video): 75 packets muxed (273052 bytes); Total: 75 packets (273052 bytes) muxed 0 frames successfully decoded, 0 decoding errors [AVIOContext @ 000000000262e020] Statistics: 395 seeks, 353 writeouts [AVIOContext @ 000000000261b4a0] Statistics: 307832 bytes read, 2 seeks
comment:7 by , 8 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | mkv added; mov corrupt hap removed |
Please test this patch:
http://ffmpeg.org/pipermail/ffmpeg-devel/2016-September/200305.html
comment:8 by , 8 years ago
That was fast!
Tested with the above commands and it fixes the issue.
Remuxing hap/mov file to mkv with copy also works.
comment:9 by , 8 years ago
This also fixes uncompressed tiff in mkv, which didn't work before.
ffmpeg -f lavfi -i testsrc -vcodec tiff -compression_algo raw -pix_fmt yuv444p -t 10 out_tiff.mkv
comment:10 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied as 5781256c013ee5be914105bef9fabd90ab7d7e3f, thank you for the report and the testing!
Please provide the complete, uncut console output together with the command that produces the unsupported file.