# Mp4 Export

**URL:** <https://forum.logik.tv/t/mp4-export/6969>\
**Category:** Flame Questions\
**Tags:** exporting\
**Created:** [October 20, 2022, 1:02pm UTC](https://forum.logik.tv/t/mp4-export/6969 "2022-10-20T13:02:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbcvfx](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dbcvfx](https://forum.logik.tv/u/dbcvfx)\
**Post date:** [October 20, 2022, 1:02pm UTC](https://forum.logik.tv/t/mp4-export/6969/1 "2022-10-20T13:02:24Z")

</div>

Hi,

Can we export mp4 from Flame?

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [October 20, 2022, 1:54pm UTC](https://forum.logik.tv/t/mp4-export/6969/2 "2022-10-20T13:54:28Z")

</div>

no  
Edit: I have not seen the details of the latest release, so that may have changed.  
2nd Edit: no

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [October 20, 2022, 2:15pm UTC](https://forum.logik.tv/t/mp4-export/6969/3 "2022-10-20T14:15:09Z")

</div>

> [@How does one make an MP4?](https://forum.logik.tv/t/how-does-one-make-an-mp4/3031):
>
> Delivery spec calls for an MP4 and in the past I’ve had h264 quicktimes bounced. Should I use something like handbrake?

---

<div class="post-metadata">

**Author:** ![Jeff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/jeff/32/9305_2.png) [@Jeff](https://forum.logik.tv/u/Jeff)\
**Post date:** [October 20, 2022, 3:03pm UTC](https://forum.logik.tv/t/mp4-export/6969/4 "2022-10-20T15:03:27Z")

</div>

Hey there Deepak,

A few months ago I asked the same question you’ve asked with my coworker @Josh_Laurence and with the immeasurable help of @ManChicken we discovered that the answer is indeed yes.

The reason I haven’t really published my findings to the community at large is because there are a few caveats and “holes” that I haven’t quite figured out, but we’re currently using it to wonderful success every day here at Assembly. Big caveat- this is for Rocky Linux. I would think it works with a few adjustments for Mac. mostly the ffmpeg part, but my guide here is not for Mac because I am not on a Mac.

The way this works is by exporting an .mov H264 from Flame from a carefully configured “Profile” file that makes a nicely compressed .mov H264 via a .cdxprof file. I say nicely because the default profiles that come shipped with Flame I found do not create H264s that are both “main” and “cbr” which is where I would lean if I were making these files using other means (Media Encoder for example). I made 3 for 3 different commonly used bitrates. They are zipped up in this zip here:

[MP4\_cdxprof.zip](https://forum.logik.tv/uploads/short-url/2HtYA1IpOj43KaMvALmeTmG5bp5.zip) (2.6 KB)

They should be loaded to this location:

/opt/Autodesk/mediaconverter/2023.1/profiles/Quicktime/video/H264/

Then, load these 3 Export Preset .xml files to this location:

[MP4\_H264\_5mbps.xml](https://forum.logik.tv/uploads/short-url/3kRvO0jvW3XzjPczFrFmWw2J6g5.xml) (1.8 KB)  
[MP4\_H264\_10mbps.xml](https://forum.logik.tv/uploads/short-url/se6iIDkF94uK0944pHhCltaN9sV.xml) (1.8 KB)  
[MP4\_H264\_20mbps.xml](https://forum.logik.tv/uploads/short-url/jcq03oO5NTGAfl1PcBAwpq5g7P0.xml) (1.8 KB)

/opt/Autodesk/shared/export/presets/movie\_file/

These .xml presets were created in Flame and use the above profiles to create a .mov h264. You can create your own, you just have to ensure you adjust the python script we’ll be getting to in a moment.

Now you load the python hook to the python location:

/opt/Autodesk/shared/python

[remux-to-mp4.py](https://forum.logik.tv/uploads/short-url/98RQRtazNr5yRNQV8pMRZgwBbhO.py) (2.0 KB)

This is the brilliant work of Bob Maple who did all of the heavy lifting on python to make this a reality. This hook looks to see if you have used the above mentioned .xml Export Presets, and if so, it uses ffmpeg to re-encode the .mov h264 into an .mp4 h264 and then deletes the .mov to clean things up. I toyed with the idea of circumventing ffmpeg and simply renaming the .mov to .mp4, but you run several metadata related risks if your delivery requires .mp4’s. The video codec portion passes through; however, the bug we could not solve is that we must re-encode the audio. When we didn’t re-encode the audio with ffmpeg, we found the audio would go out of sync. This is the part of the workflow that if someone else can figure out why and how to avoid this, I would love to not have to re-encode the audio. But for now, this is a necessary evil that I have come to terms with, and I don’t think it’s all that bad.

Finally, confirm that ffmpeg is installed on your system by running this command:

man ffmpeg

If nothing happens, then install ffmpeg:

```auto
sudo dnf -y install https://download.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum-config-manager --enable powertools
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm -y
sudo dnf install --nogpgcheck https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-8.noarch.rpm -y
sudo dnf install -y ffmpeg
sudo dnf -y install ffmpeg-devel
rpm -qi ffmpeg

```

Once all of that is done, whenever you use the shared preset “MP4\_H264” to export something, the python hook will come into play and convert your .mov into an .mp4 automagically. As we talked about, the only pitfall right now is that we need to double encode the audio as .aac–Flame does it and then FFMPEG has to do it too. If you can live with that, then it seems to be working well for me.

And again, I ask the community–if you can figure out how to make this work without double encoding the audio, hat’s off to you. Until then, feel free to ask questions and I can probably answer them since I’ve spent a bit of time with all of this.

---

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [October 20, 2022, 4:13pm UTC](https://forum.logik.tv/t/mp4-export/6969/5 "2022-10-20T16:13:14Z")

</div>

I use Jeff’s setup on Mac and it works great.

For Mac the expected location of ffmpeg is slightly different from linux:

– Download the Mac build: [Download FFmpeg](https://ffmpeg.org/download.html)  
– Extract from the zip file  
– Using terminal to copy the files to /usr/local/bin:

```auto
cd ~/Downloads/
sudo mkdir -p /usr/local/bin/
sudo cp ./ffmpeg /usr/local/bin
sudo chmod ugo+x /usr/local/bin/ffmpeg

```

After this, in the terminal try:

```auto
ffmpeg -help

```

and you will get the help manual if it was installed correctly.

---

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [October 20, 2022, 4:23pm UTC](https://forum.logik.tv/t/mp4-export/6969/6 "2022-10-20T16:23:54Z")

</div>

I have a separate python hook that lets you export from the Media Hub, skip the export dialog, and export straight to a path based on the project, date, time, etc. But I can’t get that one and the mp4 remux to work together. I’m trying to figure that out… It seems like the export from my python hook does not trigger the hook after export that does the remux.

---

<div class="post-metadata">

**Author:** ![Nick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/nick/32/8014_2.png) [@Nick](https://forum.logik.tv/u/Nick)\
**Post date:** [October 20, 2022, 6:21pm UTC](https://forum.logik.tv/t/mp4-export/6969/7 "2022-10-20T18:21:33Z")

</div>

Wow. This works really well. Nice timesaver for getting review postings out quickly.

---

<div class="post-metadata">

**Author:** ![Jeff](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/jeff/32/9305_2.png) [@Jeff](https://forum.logik.tv/u/Jeff)\
**Post date:** [October 21, 2022, 5:52am UTC](https://forum.logik.tv/t/mp4-export/6969/8 "2022-10-21T05:52:57Z")

</div>

And just to clarify for those on Mac, this may be apparent but you’ll have to modify the python script to account for the Mac location of ffmpeg as opposed to the location specified in the python script by default that would be pointing to the Rocky Linux default installation location.

If you’re using the location Bryan specified above, you would change the line that starts with this:

```auto
ffmpeg_cmd = ['/bin/ffmpeg'

```

To this :

```auto
ffmpeg_cmd = ['/usr/local/bin/ffmpeg'

```

---

<div class="post-metadata">

**Author:** ![dbcvfx](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@dbcvfx](https://forum.logik.tv/u/dbcvfx)\
**Post date:** [October 21, 2022, 10:25am UTC](https://forum.logik.tv/t/mp4-export/6969/9 "2022-10-21T10:25:12Z")

</div>

> [@Jeff](#):
>
> … need to double encode the audio as .aac–Flame does it and then FFMPEG has to do it too. If you can live with that, then it seems to be working well for me.And again, I ask the community–if you can figure out how to make this work without double encoding the audio, hat’s off to you. Until then, feel free to ask questions and I can probably answer them since I’ve spent a bit of time with all of this.

Lovely!!

Thanks Jeff, will check it out.

---

<div class="post-metadata">

**Author:** ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)\
**Post date:** [October 21, 2022, 5:33pm UTC](https://forum.logik.tv/t/mp4-export/6969/10 "2022-10-21T17:33:21Z")

</div>

For the adventurous one here is a great tool to generate movies out of image sequences:

> **[GitHub - jedypod/generate-dailies: Daily is a tool to transcode scene-linear...](https://github.com/jedypod/generate-dailies)**
>
> Daily is a tool to transcode scene-linear openexr images into display-referred quicktime movies. - GitHub - jedypod/generate-dailies: Daily is a tool to transcode scene-linear openexr images into d...

I use it to automatically generate Rec709 (dailies) and ACEScct (for grading) movies out of EXRs.  
Is fairly flexible as is based on presets you can set in a config file.  
It includes the option to process color spaces with OCIO.  
It support Mp4, MOV, HEVC, ProRes, DNH… etc  
I belief it can also do a simple text slate.

---

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [May 16, 2023, 4:45pm UTC](https://forum.logik.tv/t/mp4-export/6969/11 "2023-05-16T16:45:28Z")

</div>

> [@bryanb](#):
>
> …I have a separate python hook that lets you export from the Media Hub, skip the export dialog, and export straight to a path based on the project, date, time, etc. But I can’t get that one and the mp4 remux to work together. I’m trying to figure that out… It seems like the export from my python hook does not trigger the hook after export that does the remux.

I ended up making one script that combines the two tasks I was attempting. If anyone is interested I can share it here but you will need to know enough python to modify some lines to suite your facility’s folder structure.

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [May 26, 2023, 9:00am UTC](https://forum.logik.tv/t/mp4-export/6969/12 "2023-05-26T09:00:30Z")

</div>

@bryanb that would be very useful please

---

<div class="post-metadata">

**Author:** ![bryanb](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/bryanb/32/136_2.png) [@bryanb](https://forum.logik.tv/u/bryanb)\
**Post date:** [May 30, 2023, 4:16pm UTC](https://forum.logik.tv/t/mp4-export/6969/13 "2023-05-30T16:16:06Z")

</div>

@johnt Hey I think you’d actually be better off using John Geehreng’s script. It will help you set up the export path and other things that you would have to manually edit in my script:

> [@Mp4 GUI Export](https://forum.logik.tv/t/mp4-gui-export/8388):
>
> I have a new version of the mp4 gui script and I was finally able to get Rec709 colors to match. This is based off of Autodesk’s Export Selection Script and @MikeV 's work. You can select pretty much anything but a Desktop, right-click or go to the Main Menu and look for MP4 GUI. The script will render your clips/sequences, and then save them into a “FROM\_FLAME” shared library. Once rendered and saved, it’ll make the appropriate subfolders and run your clips/sequences through ffmpeg. You can pro…

---

<div class="post-metadata">

**Author:** ![johnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnt/32/14040_2.png) [@johnt](https://forum.logik.tv/u/johnt)\
**Post date:** [May 30, 2023, 4:36pm UTC](https://forum.logik.tv/t/mp4-export/6969/14 "2023-05-30T16:36:24Z")

</div>

Thanks for your reply. I saw this the other day and it looked ace.

---

<div class="post-metadata">

**Author:** ![paul\_round](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/paul_round/32/389_2.png) [@paul\_round](https://forum.logik.tv/u/paul_round)\
**Post date:** [February 19, 2025, 12:39pm UTC](https://forum.logik.tv/t/mp4-export/6969/15 "2025-02-19T12:39:44Z")

</div>

Are we still not able to natively export mp4?

---

<div class="post-metadata">

**Author:** ![PeteRypstra](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/peterypstra/32/2238_2.png) [@PeteRypstra](https://forum.logik.tv/u/PeteRypstra)\
**Post date:** [February 19, 2025, 1:10pm UTC](https://forum.logik.tv/t/mp4-export/6969/16 "2025-02-19T13:10:33Z")

</div>

We are in 2025.2. The bitrate is a bit low for the autodesk preset. I was thinking of keeping the filename as MP4 but using the below setting instead of high?

 ![Screenshot 2025-02-19 at 13.11.57](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/a/aee3e339cfb5c68a172d7472b57c926c82d0ffed.png)  
Keen to hear thoughts on this. It would just be for client viewables. Not sure if this would fail with clearcast or extreme reach

---

<div class="post-metadata">

**Author:** ![cnoellert](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/cnoellert/32/559_2.png) [@cnoellert](https://forum.logik.tv/u/cnoellert)\
**Post date:** [February 19, 2025, 3:12pm UTC](https://forum.logik.tv/t/mp4-export/6969/17 "2025-02-19T15:12:38Z")

</div>

I’ve been using Baseline20 for years now.

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [February 19, 2025, 10:57pm UTC](https://forum.logik.tv/t/mp4-export/6969/18 "2025-02-19T22:57:40Z")

</div>

I use this as well for client review.

---

<div class="post-metadata">

**Author:** ![johnag](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/johnag/32/573_2.png) [@johnag](https://forum.logik.tv/u/johnag)\
**Post date:** [February 19, 2025, 11:26pm UTC](https://forum.logik.tv/t/mp4-export/6969/19 "2025-02-19T23:26:08Z")

</div>

I have a project coming up that has about 100 social deliverables and I want to change my workflow . I normally export a proreshq422 and use media encoder to make the mp4’s, typically 16mbs files.

Is it ok to despatch my files directly from flame as Baseline20. That spec seems more than adequate (although I did get a request for a 30mbs file.

Also, how can I make some bit rate customisations to save them as presets.

---

<div class="post-metadata">

**Author:** ![ytf](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/ytf/32/109_2.png) [@ytf](https://forum.logik.tv/u/ytf)\
**Post date:** [February 19, 2025, 11:31pm UTC](https://forum.logik.tv/t/mp4-export/6969/20 "2025-02-19T23:31:41Z")

</div>

You can edit the presets as ascii files to change the bitrates, but I’ve been doing most of my deliveries at 50, and the custom one I made for 50 out of flame seems to have stopped working several updates ago. I’ve been using media encoder again.

[Next page](https://forum.logik.tv/t/mp4-export/6969.md?page=2)
