# Create File with Alpha

**URL:** <https://casparcgforum.org/t/create-file-with-alpha/4140>\
**Category:** General\
**Created:** [April 15, 2021, 1:38pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140 "2021-04-15T13:38:18Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![skuhle](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@skuhle](https://casparcgforum.org/u/skuhle)\
**Post date:** [April 15, 2021, 1:38pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/1 "2021-04-15T13:38:18Z")

</div>

Hi,  
I tried to find a solution but somehow i dont catch the options and settings for ffmpeg. Here is what I want to do:  
I have a html template that works fine. i want to render it to a video file with a transparent background. As I understand this I need an Alpha Channel for it. The HTML “has” a transparent background (plays white bg in browser and black in ccg).  
I tried to use  
add 1 file testfile.mp4  
but that comes out without alpha. or lets say it has a black background.  
in another discussion vimlesh uses qtrle as a flag/option for ffmpeg, but that puts out an empty file. I think that has to do with a missing quicktime encoder? because of security issues i dont want to install quicktime. if move is the only way to output a video with alpha, well i dont know, i have to rethink my project.  
thanks for some help and corrections

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [April 15, 2021, 1:46pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/2 "2021-04-15T13:46:07Z")

</div>

> [@skuhle](#):
>
> add 1 file testfile.mp4

Try:

`ADD 1 FILE "testfile.mov" -vcodec libx264 SEPARATE_KEY`

That gives you a file “testfile.mov” with the fill and a file “testfile\_A.mov” with the key. If you play “testfile.mov” the key file will be played automatically.

---

<div class="post-metadata">

**Author:** ![skuhle](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@skuhle](https://casparcgforum.org/u/skuhle)\
**Post date:** [April 15, 2021, 4:04pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/3 "2021-04-15T16:04:28Z")

</div>

Thank you, @didikunz  
I tried that, but i get only one file, testfile.mov, no “a” file.  
but this mov file at least has a content which is great.  
when i insert the file in my Video Program it seems that the move file has still a black background instead of a transparent one.  
i was looking for a tool to make sure that the video file is with a proper background, i tried mediainfo, but i dont know what it should say. that i try because i somehow want to check on every level where the problem might be…  
thanks for help

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [April 15, 2021, 4:12pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/4 "2021-04-15T16:12:25Z")

</div>

> [@skuhle](#):
>
> it seems that the move file has still a black background instead of a transparent one.

Sure you will never get a transparent background in a h264 file, as that is not supported with that codec. What version of Caspar do you use? I today tried on a 2.0.7 and got both files with that command.

---

<div class="post-metadata">

**Author:** ![markusnygard](https://casparcgforum.org/user_avatar/casparcgforum.org/markusnygard/32/8_2.png) [@markusnygard](https://casparcgforum.org/u/markusnygard)\
**Post date:** [April 15, 2021, 4:27pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/5 "2021-04-15T16:27:20Z")

</div>

It depend where you want to use the file. If it is in a Adobe product then I would record it as NDI in NDI Tools Studio Monitor. Super simple.

---

<div class="post-metadata">

**Author:** ![skuhle](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@skuhle](https://casparcgforum.org/u/skuhle)\
**Post date:** [April 15, 2021, 4:47pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/6 "2021-04-15T16:47:06Z")

</div>

Thanks to you both:  
@didikunz Server Version is 2.3.2 5e6e83f5 Dev  
do you have an idea of a codec working with transparency like png against jpeg?  
size does not matter that much

@markusnygard :  
in the end it will be lightworks  
ndi might be interresting as well. i will give it a try, but is ndi recording transparency?  
i will try.  
thanks

---

<div class="post-metadata">

**Author:** ![skuhle](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@skuhle](https://casparcgforum.org/u/skuhle)\
**Post date:** [April 15, 2021, 4:48pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/7 "2021-04-15T16:48:52Z")

</div>

@didikunz  
i read here about the version thing, that acmp changed a bit from version to version.  
i now have a word file with my notes and if there is a way for me as a newby to help with the documention, i try to help

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [April 15, 2021, 4:57pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/8 "2021-04-15T16:57:31Z")

</div>

I tried with version 2.3.2 Beta 1 (I have no other around) and it seems, that that is not working. On my system I need to kill Caspar server to get it to stop recording, but I do not get any transparency anyway.

You can use ProRes or the like to get a file format with transparency.

---

<div class="post-metadata">

**Author:** ![skuhle](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/b3f665/32.png) [@skuhle](https://casparcgforum.org/u/skuhle)\
**Post date:** [April 15, 2021, 4:59pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/9 "2021-04-15T16:59:22Z")

</div>

That stop recording thing works, i tried remove 1 file filename  
how would prores command look like? i dont know about all those fancy parameters.  
thanks

---

<div class="post-metadata">

**Author:** ![didikunz](https://casparcgforum.org/user_avatar/casparcgforum.org/didikunz/32/7_2.png) [@didikunz](https://casparcgforum.org/u/didikunz)\
**Post date:** [April 15, 2021, 5:04pm UTC](https://casparcgforum.org/t/create-file-with-alpha/4140/10 "2021-04-15T17:04:52Z")

</div>

> [@skuhle](#):
>
> how would prores command look like?

I guess it’s Prores instead of libx264. I use the official client to send these commands, They also end up in the log file, so that you can see them there and copy paste to whatever you use.
