Skip to content

Instantly share code, notes, and snippets.

@anddam
Last active February 28, 2016 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anddam/3ccf9893b7a1b2d38931 to your computer and use it in GitHub Desktop.
Save anddam/3ccf9893b7a1b2d38931 to your computer and use it in GitHub Desktop.
~/M/> ffmpeg -y -i in.mkv -c:s mov_text -ac 2 -b:a 256K -c:v copy -strict -2 out.mp4
ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 7.0.2 (clang-700.1.81)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --enable-videotoolbox --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'in.mkv':
Metadata:
CREATION_TIME : 2015-05-19 06:55:10
MAJOR_BRAND : isom
MINOR_VERSION : 1
COMPATIBLE_BRANDS: isomavc1iso6
ENCODER : Lavf56.1.0
Duration: 00:21:17.08, start: 0.083000, bitrate: 1262 kb/s
Stream #0:0(und): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown), 1280x720 [SAR 1:1 DAR 16:9], 24.42 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
CREATION_TIME : 2015-05-19 06:55:10
LANGUAGE : und
Stream #0:1(eng): Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
CREATION_TIME : 2015-05-19 06:40:53
LANGUAGE : eng
Stream #0:2: Subtitle: subrip
[mp4 @ 0x7fb0bb01fa00] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, mp4, to 'out.mp4':
Metadata:
COMPATIBLE_BRANDS: isomavc1iso6
MAJOR_BRAND : isom
MINOR_VERSION : 1
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 24.42 fps, 23.98 tbr, 16k tbn, 1k tbc (default)
Metadata:
CREATION_TIME : 2015-05-19 06:55:10
LANGUAGE : und
Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
CREATION_TIME : 2015-05-19 06:40:53
LANGUAGE : eng
encoder : Lavc56.60.100 aac
Stream #0:2: Subtitle: mov_text ([8][0][0][0] / 0x0008)
Metadata:
encoder : Lavc56.60.100 mov_text
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Stream #0:2 -> #0:2 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
frame= 551 fps=0.0 q=-1.0 size= 3827kB time=00:00:31.29 bitrate=1001.6kbits/s
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -5 / timestamp: 24959 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -5 / timestamp: 26160 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -7 / timestamp: 28229 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
frame= 1079 fps=1079 q=-1.0 size= 7557kB time=00:00:55.05 bitrate=1124.5kbits/s
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -4 / timestamp: 47048 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -3 / timestamp: 49050 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
frame= 1607 fps=1071 q=-1.0 size= 12108kB time=00:01:08.10 bitrate=1456.5kbits/s
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 72173 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 86387 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
frame= 2159 fps=1079 q=-1.0 size= 15982kB time=00:01:29.92 bitrate=1456.0kbits/s
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -5 / timestamp: 91859 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 104538 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -4 / timestamp: 109110 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
frame= 2682 fps=1072 q=-1.0 size= 18947kB time=00:01:51.73 bitrate=1389.1kbits/s
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -2 / timestamp: 112313 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 114215 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -3 / timestamp: 119220 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 122123 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -2 / timestamp: 131832 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
[mp4 @ 0x7fb0bb01fa00] Application provided duration: -1 / timestamp: 133734 is out of range for mov/mp4 format
[mp4 @ 0x7fb0bb01fa00] pts has no value
frame= 3224 fps=1074 q=-1.0 size= 22211kB time=00:02:14.72 bitrate=1350.6kbits/s
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344064, current: 2248912; changing to 4344065. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344065, current: 2251584; changing to 4344066. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344066, current: 2250256; changing to 4344067. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344067, current: 2249584; changing to 4344068. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344068, current: 2250912; changing to 4344069. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344069, current: 2254256; changing to 4344070. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344070, current: 2252912; changing to 4344071. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:0; previous: 4344071, current: 2252256; changing to 4344072. This may result in incorrect timestamps in the output file.
[aac @ 0x7fb0bb021200] Queue input is backward in time
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:1; previous: 13054984, current: 6764544; changing to 13054985. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:1; previous: 13054985, current: 6765568; changing to 13054986. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:1; previous: 13054986, current: 6766592; changing to 13054987. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7fb0bb01fa00] Non-monotonous DTS in output stream 0:1; previous: 13054987, current: 6767616; changing to 13054988. This may result in incorrect timestamps in the output file.
*** about 12500 lines like the previous one deleted ***
frame= 3741 fps=1068 q=-1.0 size= 25230kB time=00:04:39.58 bitrate= 739.3kbits/s
frame= 4225 fps=1056 q=-1.0 size= 28968kB time=00:04:39.58 bitrate= 848.8kbits/s
frame= 4743 fps=1053 q=-1.0 size= 32226kB time=00:04:39.58 bitrate= 944.3kbits/s
[aac @ 0x7fb0bb021200] Queue input is backward in time
frame= 5270 fps=1053 q=-1.0 size= 37305kB time=00:04:54.46 bitrate=1037.9kbits/s
frame= 5787 fps=1052 q=-1.0 size= 41203kB time=00:04:54.46 bitrate=1146.3kbits/s
frame= 6304 fps=1050 q=-1.0 size= 45216kB time=00:04:54.46 bitrate=1257.9kbits/s
frame= 6832 fps=1051 q=-1.0 size= 49434kB time=00:04:54.46 bitrate=1375.3kbits/s
frame= 7371 fps=1052 q=-1.0 size= 53153kB time=00:05:10.67 bitrate=1401.5kbits/s
frame= 7911 fps=1054 q=-1.0 size= 57399kB time=00:05:29.83 bitrate=1425.6kbits/s
frame= 8441 fps=1055 q=-1.0 size= 61034kB time=00:05:51.93 bitrate=1420.7kbits/s
frame= 8871 fps=1043 q=-1.0 size= 64091kB time=00:06:09.87 bitrate=1419.5kbits/s
frame= 9413 fps=1045 q=-1.0 size= 67835kB time=00:06:32.49 bitrate=1415.8kbits/s
frame= 9940 fps=1046 q=-1.0 size= 72333kB time=00:06:54.46 bitrate=1429.7kbits/s
frame=10429 fps=1042 q=-1.0 size= 76196kB time=00:07:15.34 bitrate=1433.8kbits/s
[aac @ 0x7fb0bb021200] Queue input is backward in time
frame=10990 fps=1046 q=-1.0 size= 79330kB time=00:09:45.34 bitrate=1110.2kbits/s
frame=11507 fps=1046 q=-1.0 size= 79330kB time=00:09:45.36 bitrate=1110.2kbits/s
av_interleaved_write_frame(): Invalid argument
frame=12035 fps=1045 q=-1.0 Lsize= 86999kB time=00:09:45.39 bitrate=1217.5kbits/s
video:70777kB audio:15905kB subtitle:9kB other streams:0kB global headers:0kB muxing overhead: 0.354357%
Conversion failed!
~/M/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment