# Error using export\_selection.py

**URL:** <https://forum.logik.tv/t/error-using-export-selection-py/7867>\
**Category:** Python\
**Tags:** ffmpeg, mp4, hook, python\
**Created:** [March 7, 2023, 12:15pm UTC](https://forum.logik.tv/t/error-using-export-selection-py/7867 "2023-03-07T12:15:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kily](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@kily](https://forum.logik.tv/u/kily)\
**Post date:** [March 7, 2023, 12:15pm UTC](https://forum.logik.tv/t/error-using-export-selection-py/7867/1 "2023-03-07T12:15:12Z")

</div>

HI everyone.

I’m trying to use a hook example provided by flame (in /opt/Autodesk/flame\_version/python\_utilities/scripts). This hook provides the ability to export mp4. I am trying to adapt it to my needs, but I get an error just **using the native hook (without any modification)**

> ERROR:root:Traceback (most recent call last):  
> File “/opt/Autodesk/shared/python/export\_selection.py”, line 141, in run\_ffmpeg  
> os.mkfifo(audio\_pipe\_name, 0o644)  
> OSError: [Errno 5] Input/output error

This is the piece of code:

```auto
try:
        # Create new audio pipe
        os.mkfifo(audio_pipe_name, 0o644)

        # Launch read_frame command
        read_frame_args = shlex.split(read_frame_cmd)
        read_frame_process = subprocess.Popen(read_frame_args, stdout=subprocess.PIPE)

```

line 141 is “os.mkfifo(audio\_pipe\_name, 0o644)”

flame 2022.2 / rocky linux 8.5  
python 3.9.13  
ffmpeg 4.2.7

any suggestion?
