I am trying to encode a mkv-file while keeping the audiostreams and the subtitles. This is the command I am using:
avconv -i inputfile.mkv -c:v mpeg2video -acodec copy - scodec copy -b:v 5000k -maxrate:v 6000k -bufsize 1835k outputfile.mkv
The problem is that my mkv contains more than one audiostream and subtitle. And using the upper command the output file only contains the default marked audiostream and subtitle. Is there any additional command to copy all containing audiostreams and subtitles?