# Keep original container (file type) after converting

**URL:** https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794
**Category:** Custom Commands
**Created:** [May 22, 2018, 12:09am UTC](https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794 "2018-05-22T00:09:50Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Kevin\_Mason](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@Kevin\_Mason](https://discussion.mcebuddy2x.com/u/Kevin_Mason)
#### Post date: [May 22, 2018, 12:09am UTC](https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794/1 "2018-05-22T00:09:52Z")

</div>

I use channels DVR and recently encountered some lag issues with ffwd and rew on recordings. After some discussions with other members and testing on my own I have come to the conclusion that the playback is much better with mp4 compression. I have come to the conclusion that Channels DVR doesn’t support mp4 files themselves. After some more discussing and testing I have found that if I use the MP4 High Quality “profile” setting within MCEbuddy then change the extension back to .mpg it will play beautifully.  
I love the automation within MCEbuddy monitoring and then converting. Is it possible for MCE buddy to keep the original container??  
I just tried using the custom renaming command with conversion tasks  
%originalfilename%.%originalext%  
The output file is named xxy.mpg.mp4 from a file xxy.mpg being converted

I would like a file with mp4 compression output as xxy.mpg

Can MCebuddy do this automatically for me? I would love to not have to log in and change filenames on my server running the DVR service

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 22, 2018, 2:17am UTC](https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794/2 "2018-05-22T02:17:34Z")

</div>

You don’t need to use customcommands for this one.

You can modify the profile to change the extension to your choice. I would recommend creating a new profile with a new name, you can copy all the settings from MP4 High Quality and then just add this line:

> RenameExt=.mpg

Do remember, this doesn’t keep the original container but just the filename. The container is defined by your profile in this case it’s a MP4. It’s just changing the extension of the file, most players are smart enough to ignore the extension and look at the actual content to determine the container and the codecs within the container.

See this post:

> [@MCEBuddy - Understanding Profiles Basics](https://discussion.mcebuddy2x.com/t/mcebuddy-understanding-profiles-basics/27):
>
> MCEBuddy [Profiles Basics](https://discussion.mcebuddy2x.com/t/27) Stock MCEBuddy profiles are in the profiles.conf file located in the config directory where MCEBuddy is installed. One can create new profiles or customize existing ones. It’s highly recommended to create your own custom profiles.conf file in a directory outside of MCEBuddy’s installation folder (e.g. C:\MCECustomProfile) and configure MCEBuddy to use that custom profiles.conf from Settings → Expert Settings → Profiles.conf → Click on … → select your custom profiles.…

and this for more advanced stuff:

> [@MCEBuddy - Advanced Settings, Commands and Tweaking](https://discussion.mcebuddy2x.com/t/mcebuddy-advanced-settings-commands-and-tweaking/30):
>
> Advanced concepts to use MCEBuddy Refer to the [MCEBuddy Profiles Basics](https://discussion.mcebuddy2x.com/t/27) page to learn about basic Profiles creation NOTE: Advanced Conversion Parameters apply to profiles.conf Do NOT edit mcebuddy.conf. As of v2.3.13 ALL Advanced Configuration Parameters (except FFmpegBackupRemux) in mcebuddy.conf can be accessed through the GUI, Settings → Expert Settings page DO NOT REPLACE THE NEW CONFIGURATION FILES WITH THE OLD FILES AS PARAMETERS IN THE NEW FILES ARE ADDED/UPDATED WITH EACH RELEASE. …

---

<div class="post-metadata">

### Author: ![Kevin\_Mason](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@Kevin\_Mason](https://discussion.mcebuddy2x.com/u/Kevin_Mason)
#### Post date: [May 22, 2018, 11:14pm UTC](https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794/3 "2018-05-22T23:14:14Z")

</div>

Thanks I knew there had to be something I was missing. I looked at the profiles section, didn’t see it. I bet if I would have opened the profiles.conf and looked around a bit I would have had a eureka moment. I love your product! I especially love your commitment to support!

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [May 23, 2018, 7:45pm UTC](https://discussion.mcebuddy2x.com/t/keep-original-container-file-type-after-converting/1794/4 "2018-05-23T19:45:53Z")

</div>

You’re welcome, spread the word 🙂
