


The first step then is to join them into a single, big VOB file. VOB file are usually 1 Gb each in order to be compatible with all operating systems, as some cannot read files larger than that size. Audio tracks will be encoded in mp3 format. The video stream will be encoded with H.264 codec, currently the best guy in town. For our task I will be using Matroska Multimedia Container container (.mkv files), as it is capable of storing different audio, video and subtitle tracks together.

Input #0, matroska,webm, from 'input.mkv':ĭuration: 00:00:50.42, start: 0.In this guide I'll show you how to do that by using FFmpeg (version 3.2.5 or greater) on a Linux-based operating system - I'm currently using Debian Stable, aka Jessie.įFmpeg is able to deal with a vast amount of audio/video formats and containters. To convert all three audio tracks I tried this which runs without giving an error:įfmpeg -i input.mkv -c:v copy -c:a:1 pcm_s16be -c:a:2 pcm_s16be -c:a:3 pcm_s16be output.mkvīut the output file contains only one stereo track.įfmpeg gives the following information on the input.mkv file: ffmpeg version 4.4.1-3+b2 Copyright (c) 2000-2021 the FFmpeg developersĬonfiguration: -prefix=/usr -extra-version=3+b2 -toolchain=hardened -libdir=/usr/lib/x86_64-linux-gnu -incdir=/usr/include/x86_64-linux-gnu -arch=amd64 -enable-gpl -disable-stripping -enable-gnutls -enable-ladspa -enable-libaom -enable-libass -enable-libbluray -enable-libbs2b -enable-libcaca -enable-libcdio -enable-libcodec2 -enable-libdav1d -enable-libflite -enable-libfontconfig -enable-libfreetype -enable-libfribidi -enable-libgme -enable-libgsm -enable-libjack -enable-libmp3lame -enable-libmysofa -enable-libopenjpeg -enable-libopenmpt -enable-libopus -enable-libpulse -enable-librabbitmq -enable-librubberband -enable-libshine -enable-libsnappy -enable-libsoxr -enable-libspeex -enable-libsrt -enable-libssh -enable-libtheora -enable-libtwolame -enable-libvidstab -enable-libvorbis -enable-libvpx -enable-libwebp -enable-libx265 -enable-libxml2 -enable-libxvid -enable-libzimg -enable-libzmq -enable-libzvbi -enable-lv2 -enable-omx -enable-openal -enable-opencl -enable-opengl -enable-sdl2 -enable-pocketsphinx -enable-librsvg -enable-libmfx -enable-libdc1394 -enable-libdrm -enable-libiec61883 -enable-chromaprint -enable-frei0r -enable-libx264 -enable-shared The following command works but creates a video with only one stereo track:įfmpeg -i input.mkv -c:v copy -c:a pcm_s16be output.mkv I have mkv files with multitrack AAC audio which have to be converted to PCM-S16-BE.
