[FFmpeg-trac] #3394(avformat:new): mp4 -> mkv produces broken file
FFmpeg
trac at avcodec.org
Tue Feb 18 12:54:26 CET 2014
#3394: mp4 -> mkv produces broken file
-------------------------------------+-------------------------------------
Reporter: tessus | Owner:
Type: defect | Status: new
Priority: important | Component: avformat
Version: git-master | Resolution:
Keywords: mkv | Blocked By:
regression | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by cehoyos):
I tested the following:
{{{
$ ffmpeg -i mp4-mkv-input-big.mp4 -i mp4-mkv-input-big.srt -scodec copy
-vcodec copy -acodec ac3 ~/out.mkv
ffmpeg version N-60710-g61d5970 Copyright (c) 2000-2014 the FFmpeg
developers
built on Feb 18 2014 10:42:46 with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 52. 64.100 / 52. 64.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 1.102 / 4. 1.102
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 17.104 / 0. 17.104
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mp4-mkv-input-big.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
creation_time : 2014-02-09 20:22:13
Duration: 01:41:11.96, start: 0.000000, bitrate: 2473 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1920x1080 [SAR 1:1 DAR 16:9], 1962 kb/s, 23.98 fps, 23.98 tbr, 24k tbn,
47.95 tbc (default)
Metadata:
creation_time : 2014-02-09 20:22:13
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp,
380 kb/s (default)
Metadata:
creation_time : 2014-02-09 17:38:55
Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo,
fltp, 124 kb/s (default)
Metadata:
creation_time : 2014-02-09 17:54:44
Input #1, srt, from 'mp4-mkv-input-big.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
Output #0, matroska, to '/home/cehoyos/out.mkv':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isomavc1
encoder : Lavf55.33.100
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080
[SAR 1:1 DAR 16:9], q=2-31, 1962 kb/s, 23.98 fps, 1k tbn, 24k tbc
(default)
Metadata:
creation_time : 2014-02-09 20:22:13
Stream #0:1(eng): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1,
fltp, 448 kb/s (default)
Metadata:
creation_time : 2014-02-09 17:38:55
Stream #0:2: Subtitle: subrip
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac -> ac3)
Stream #1:0 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame=145580 fps=2897 q=-1.0 Lsize= 1789364kB time=01:41:11.96
bitrate=2414.1kbits/s
video:1454812kB audio:332061kB subtitle:57 data:0 global headers:0kB
muxing overhead 0.136231%
}}}
{{{
$ md5sum out.mkv
35ea0dd5238a3fdbf7d169850bbfc30b out.mkv
}}}
The output file plays fine in vlc for five minutes showing correct
subtitles.
I can reproduce the problem with the file mp4-mkv-broken.mkv you uploaded,
please find out what is different about the command I am testing.
Unrelated:
Please remove the following options from your configure line, they have no
effect:
--as=yasm --disable-shared --enable-static --enable-pthreads --enable-
postproc --enable-bzlib --enable-zlib --enable-filters --enable-runtime-
cpudetect
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3394#comment:16>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list