[FFmpeg-trac] #3394(avformat:new): mp4 -> mkv produces broken file
FFmpeg
trac at avcodec.org
Tue Feb 18 13:14:57 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 tessus):
Just ran 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-60712-g5f4219b-tessus Copyright (c) 2000-2014 the FFmpeg
developers
built on Feb 17 2014 20:55:39 with llvm-gcc 4.2.1 (LLVM build 2336.1.00)
configuration: --prefix=/Users/tessus/data/ext/ffmpeg/sw --as=yasm
--extra-version=tessus --disable-shared --enable-static --disable-ffplay
--enable-gpl --enable-pthreads --enable-postproc --enable-libmp3lame
--enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid
--enable-libspeex --enable-bzlib --enable-zlib --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libxavs --enable-version3 --enable-
libvo-aacenc --enable-libvo-amrwbenc --enable-libvpx --enable-libgsm
--enable-libopus --enable-libmodplug --enable-fontconfig --enable-
libfreetype --enable-libass --enable-libbluray --enable-filters --enable-
runtime-cpudetect
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 '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=793 q=-1.0 Lsize= 1789371kB time=01:41:11.96
bitrate=2414.1kbits/s
video:1454812kB audio:332061kB subtitle:57 data:0 global headers:0kB
muxing overhead 0.136624%
}}}
{{{
$ md5sum out.mkv
35de7829297090a333718ed8dd100e17 out.mkv
}}}
After that I ran the same command as above with the additional option `-t
300` and uploaded the file for you as `3394_out_300.mkv`. It might be
easier for you to check the binary.
Wrt the config options: I create a static binary, so wouldn't I need
`--enable-static`?
Why don't they have any effect?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3394#comment:17>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list