# Casparcg To Youtube

**URL:** <https://casparcgforum.org/t/casparcg-to-youtube/5984>\
**Category:** General\
**Tags:** development\
**Created:** [August 10, 2023, 12:25pm UTC](https://casparcgforum.org/t/casparcg-to-youtube/5984 "2023-08-10T12:25:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bau](https://casparcgforum.org/user_avatar/casparcgforum.org/bau/32/1734_2.png) [@Bau](https://casparcgforum.org/u/Bau)\
**Post date:** [August 10, 2023, 12:25pm UTC](https://casparcgforum.org/t/casparcg-to-youtube/5984/1 "2023-08-10T12:25:06Z")

</div>

So i need a bit of guidance with AMCP and adding a 1080p, 25fps stream out to youtube.  
Any good information or documentation for this? Youtube request h264.

Bau

---

<div class="post-metadata">

**Author:** ![STL](https://casparcgforum.org/letter_avatar_proxy/v4/letter/s/6de8d8/32.png) [@STL](https://casparcgforum.org/u/STL)\
**Post date:** [August 10, 2023, 1:31pm UTC](https://casparcgforum.org/t/casparcg-to-youtube/5984/2 "2023-08-10T13:31:45Z")

</div>

Hello,

You can have a look at [Simple Video Player](https://casparcgforum.org/t/simple-video-playout/61), you will find a lot of streaming examples with AMCP commands.

---

<div class="post-metadata">

**Author:** ![Bau](https://casparcgforum.org/user_avatar/casparcgforum.org/bau/32/1734_2.png) [@Bau](https://casparcgforum.org/u/Bau)\
**Post date:** [August 15, 2023, 8:04am UTC](https://casparcgforum.org/t/casparcg-to-youtube/5984/3 "2023-08-15T08:04:23Z")

</div>

Hey STL, thank you for your reply. I’ve looked into that before, however it doesn’t really say much about it. I thought the creators of casparcg (server) had some kind of expanded documentation on it.

Bau

---

<div class="post-metadata">

**Author:** ![Bohoaush](https://casparcgforum.org/letter_avatar_proxy/v4/letter/b/ba8739/32.png) [@Bohoaush](https://casparcgforum.org/u/Bohoaush)\
**Post date:** [August 19, 2023, 5:17pm UTC](https://casparcgforum.org/t/casparcg-to-youtube/5984/4 "2023-08-19T17:17:54Z")

</div>

Hi,

the rtmp output from CasparCG is made through the ffmpeg consumer. That means that the parameters needed in the command are ffmpeg parameters. To find everything about them you can look at [ffmpeg documentation](https://ffmpeg.org/ffmpeg-all.html)

You should also know that in current stable release of CasparCG as well as most previous versions contain a bug in the rtmp output, so make sure you are using build after commit [670bec3](https://github.com/CasparCG/server/commit/670bec33e704d7951192dfe8a63787bf38c6a49c), for example current master

To get started, you can try this command which I personally use for most of streaming use cases. Of course change the URL and KEY with what YouTube gives you.

```auto
ADD 1 STREAM rtmp://URL/KEY -codec:v libx264 -x264opts:v keyint=50 -preset:v faster -codec:a aac -strict -2 -b:a 128k -ar:a 48k -b:v 6M -maxrate:v 6500k -bufsize:v 2M -filter:v format=pix_fmts=yuv420p,fps=25 -filter:a pan=stereo|c0=c0|c1=c1 -format flv

```

This will give you a FullHD 25p stream with 6Mbps variable bitrate maxing out at around 6.5Mbps, 2channel audio in aac at 128kbps

there are multiple discussions about this and similar topics on the forum ([Search results for 'rtmp' - CasparCG Community Forum](https://casparcgforum.org/search?q=rtmp)) and the CasparCG server’s github repo ([Issues · CasparCG/server · GitHub](https://github.com/CasparCG/server/issues?q=is%3Aissue+rtmp))

Hope this helps
