Kokeilin laittaa Areenan tallenteen tekstityksineen samaan tiedostoon Matroskaksi, näytti toimivan:
$ ffmpeg -i video.flv -i video.fin.srt -vcodec copy -acodec copy -scodec copy video.mkv
ffmpeg version 2.7.2 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 41.100 / 56. 41.100
libavformat 56. 36.100 / 56. 36.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, flv, from 'video.flv':
Duration: 00:42:17.30, start: 0.000000, bitrate: 2818 kb/s
Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 2744 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 131 kb/s
Input #1, srt, from 'video.fin.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
[matroska @ 0x55b0e0420600] Codec for stream 0 does not use global headers but container format requires global headers
[matroska @ 0x55b0e0420600] Codec for stream 1 does not use global headers but container format requires global headers
[matroska @ 0x55b0e0420600] Codec for stream 2 does not use global headers but container format requires global headers
Output #0, matroska, to 'video.mkv':
Metadata:
encoder : Lavf56.36.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2744 kb/s, 25 fps, 25 tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 131 kb/s
Stream #0:2: Subtitle: subrip
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (copy)
Press [q] to stop, [?] for help
frame=20531 fps=0.0 q=-1.0 size= 283380kB time=00:13:46.20 bitrate=2809.8kbits/frame=41160 fps=41155 q=-1.0 size= 568889kB time=00:27:26.52 bitrate=2830.4kbitframe=60769 fps=40509 q=-1.0 size= 839734kB time=00:40:31.96 bitrate=2828.6kbitframe=63432 fps=40392 q=-1.0 Lsize= 871046kB time=00:42:17.30 bitrate=2812.3kbits/s
video:830065kB audio:39632kB subtitle:19kB other streams:0kB global headers:0kB muxing overhead: 0.152961%
Ihan vaan, jos joku muukin kaipaa tietoa miten tuon voisi tehdä. Jos joku on tehnyt toisin, niin voi senkin kertoa. Pari varoitusta näkyy tuonne keskelle tehneen, mutta en tiedä onko sillä mitään väliä.
Muokkaus: Kaikissa jakeluissa ei sitten ehkä ole ffmpeg:tä, mutta avconv löytyy. Toimii ihan samalla tavalla, mutta laita komennoksi ffmpeg:n sijasta avconv. Ja liitteenä lyhyt skripti (lisenssi: käytä ihan miten vaan haluat, jos osaat; en ota vastuuta).