# Ffmpeg on windows script

**URL:** <https://forums.plex.tv/t/ffmpeg-on-windows-script/124492>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [November 23, 2015, 2:13am UTC](https://forums.plex.tv/t/ffmpeg-on-windows-script/124492 "2015-11-23T02:13:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![flexraid\_nas](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flexraid\_nas](https://forums.plex.tv/u/flexraid_nas)\
**Post date:** [November 23, 2015, 2:13am UTC](https://forums.plex.tv/t/ffmpeg-on-windows-script/124492/1 "2015-11-23T02:13:38Z")

</div>

Was wondering if anybody can share their script that they are using in windows to covernt mkv files to mp4 so PMS can do a direct play over to the clients that are streaming. I want to also keep the dts audio so I can stream local and use my surround sound, is it possible to have both audios?

---

<div class="post-metadata">

**Author:** ![foebik](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/foebik/32/4306_2.png) [@foebik](https://forums.plex.tv/u/foebik)\
**Post date:** [December 2, 2015, 2:06am UTC](https://forums.plex.tv/t/ffmpeg-on-windows-script/124492/2 "2015-12-02T02:06:16Z")

</div>

Hey Flex, I did a google search on part of your request above and found a few interesting links.  
`script that they are using in windows to convert mkv files to mp4`

> **[r/PowerShell - Script to batch convert .mkv files to .mp4 files.](https://www.reddit.com/r/PowerShell/comments/2yjunv/script_to_batch_convert_mkv_files_to_mp4_files/)**
>
> 25 votes and 15 comments so far on Reddit

  
[https://forums.plex.tv/discussion/161825/mkv-to-mp4-hit-me](https://forums.plex.tv/discussion/161825/mkv-to-mp4-hit-me)

---

<div class="post-metadata">

**Author:** ![flexraid\_nas](https://avatars.discourse-cdn.com/v4/letter/f/e47c2d/32.png) [@flexraid\_nas](https://forums.plex.tv/u/flexraid_nas)\
**Post date:** [December 2, 2015, 2:11am UTC](https://forums.plex.tv/t/ffmpeg-on-windows-script/124492/3 "2015-12-02T02:11:48Z")

</div>

thank you I did come across this few days ago, like you mentioned I had a look and most of the viewing is either direct play or direct stream.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:53pm UTC](https://forums.plex.tv/t/ffmpeg-on-windows-script/124492/4 "2020-01-08T19:53:05Z")

</div>


