<p>ffmpeg, a command-line tool, can do this:</p>

<pre><code>ffmpeg -i input.mkv -c:v libx264 -crf 23 -c:a copy -c:s copy -fflags +genpts output.mkv
</code></pre>

<p>Adjust the CRF for larger or smaller size (lower number produces better quality but larger size)</p>

<p>Download ffmpeg (32-bit static version) from <a href="http://ffmpeg.zeranoe.com/builds/" rel="nofollow">here</a>.</p>

CC BY-SA 3.0
2015-12-17T03:26:44.907Z
thank you, i was also wondering if there is a command like this that allows me to keep dual audio streams?
user12302
CC BY-SA 3.0
2015-12-17T04:16:40.027Z
If the source has dual audio streams, then the above command will keep them both.
Gyan
CC BY-SA 3.0
2015-12-16T10:02:34.827Z
2015-12-16T10:02:34.827Z
Gyan
<p>I have some mkv files with a hevc encoding which is not allowing me to burn to disc in covertxtodvd as it shows no video track as the encoding isn't supported, i was wondering if it was possible to convert the files encoding into avc encoding whilst keeping embedded subtitles and the same mkv format.
Thank you for reading,
Nick W</p>

<encoding><file-formats><dvd><mkv>
How to convert an mkv file with hevc encoding to mkv with avc
user12302
# How to convert an mkv file with hevc encoding to mkv with avc

(Asked by: username_0 on 2015-12-16)

I have some mkv files with a hevc encoding which is not allowing me to burn to disc in covertxtodvd as it shows no video track as the encoding isn't supported, i was wondering if it was possible to convert the files encoding into avc encoding whilst keeping embedded subtitles and the same mkv format.
Thank you for reading,
Nick W

**Tags:** encoding, file-formats, dvd, mkv


---

## 1 answers

### Answer by username_1 on 2015-12-16. Score: 0 | Accepted answer

ffmpeg, a command-line tool, can do this:
ffmpeg -i input.mkv -c:v libx264 -crf 23 -c:a copy -c:s copy -fflags +genpts output.mkv

Adjust the CRF for larger or smaller size (lower number produces better quality but larger size)
Download ffmpeg (32-bit static version) from here.

> **Comments:**
> **username_0**: thank you, i was also wondering if there is a command like this that allows me to keep dual audio streams?  
> **username_1**: If the source has dual audio streams, then the above command will keep them both.  

---

