# Output for rtmp module

**URL:** <https://openvidu.discourse.group/t/output-for-rtmp-module/4504>\
**Category:** How to implement?\
**Tags:** v2\
**Created:** [March 22, 2023, 7:02pm UTC](https://openvidu.discourse.group/t/output-for-rtmp-module/4504 "2023-03-22T19:02:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![EvandroDC](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/evandrodc/32/2181_2.png) [@EvandroDC](https://openvidu.discourse.group/u/EvandroDC)\
**Post date:** [March 22, 2023, 7:02pm UTC](https://openvidu.discourse.group/t/output-for-rtmp-module/4504/1 "2023-03-22T19:02:33Z")

</div>

Hello i am trying to use the rtmp module to send a signal to a rtmp nginx server that will proxy it to the AWS elemental media live. The media live channel is receiving the signal but that stream only shows a black screen. I would like to know if there is a way to configure the video/audio codecs for the output because the elemental channel only accepts H264 and AAC, for video and audio. Thank you for your time.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [March 23, 2023, 4:57pm UTC](https://openvidu.discourse.group/t/output-for-rtmp-module/4504/2 "2023-03-23T16:57:25Z")

</div>

In fact, libx264 is used for video and aac for audio.

We use this nginx configuration to check it in our e2e tests

```auto
worker_processes auto;
rtmp_auto_push on;
events {}
rtmp {
    server {
        listen 1935;
        listen [::]:1935 ipv6only=on;
        application live {
        	live on;
			recorder all {
				record video;
				record_path /tmp;
				record_max_size 100000K;
				record_unique on;
				record_suffix rtmp.flv;
			}
        }
    }
}

```

---

<div class="post-metadata">

**Author:** ![EvandroDC](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/evandrodc/32/2181_2.png) [@EvandroDC](https://openvidu.discourse.group/u/EvandroDC)\
**Post date:** [March 23, 2023, 6:40pm UTC](https://openvidu.discourse.group/t/output-for-rtmp-module/4504/3 "2023-03-23T18:40:13Z")

</div>

Thank you for the quick reply. Is there a way to set this codecs, for example a a profile and level for the h264, passing parameters to the API endpoint that starts the broadcast or are they fixed? Again thank you for your time.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [March 23, 2023, 9:05pm UTC](https://openvidu.discourse.group/t/output-for-rtmp-module/4504/4 "2023-03-23T21:05:03Z")

</div>

We are here to help, don’t worry. Thank you for posting your doubts and helping the community 🙂

It is not currently possible, but it is an interesting feature.

RTMP is also tested for most common platforms like YouTube and Twitch, so we thought the configuration of the codec was commonly used.

I’ll ping the team, looks interesting to make it customizable.

cc @micael.gallego @pabloFuente @CSantosM
