Дано кусок кода, который упаковывает avi и srt в mkv
mkvmerge -o "/home/d/Видео/daria/season2/some.mkv" "--forced-track" "0:no" "--language" "2:eng" "--default-track" "2:yes" "--forced-track" "2:no" "-a" "2" "-d" "0" "-S" "-T" "--no-global-tags" "--no-chapters" "/home/d/Видео/daria_hi_qual/season2/some.avi" "--sub-charset" "0:CP1251" "--language" "0:rus" "--default-track" "0:yes" "--forced-track" "0:no" "-s" "0" "-D" "-A" "-T" "--no-global-tags" "--no-chapters" "/home/d/Видео/daria_hi_qual/season2/ru_sub/some.srt" "--track-order" "0:0,0:2,1:0"
Да, я ниосилятор :(