# Live Streaming with RTMP

**URL:** <https://devforum.zoom.us/t/live-streaming-with-rtmp/63328>\
**Category:** API and Webhooks\
**Tags:** faq, live-streaming, guide\
**Created:** [January 27, 2022, 10:57pm UTC](https://devforum.zoom.us/t/live-streaming-with-rtmp/63328 "2022-01-27T22:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [January 27, 2022, 11:10pm UTC](https://devforum.zoom.us/t/live-streaming-with-rtmp/63328/5 "2022-01-27T23:10:41Z")

</div>

# Example

## 🔉 Parsing Audio From RTMP Streams

If you want to parse audio from RTMP for a production application, you would import libraries such as FFMPEG and perform the parsing, remuxing, and file writing directly from your programming language.

However, in the interest of keeping this guide concise, I’ll demonstrate how you can parse audio from an RTMP stream via the terminal. In the future, we’ll release a sample application that goes into more detail.

### Prerequisites

1. Download and install [FFMPEG](https://www.ffmpeg.org/download.html)

### Listen for RTMP traffic

The following command will listen for RTMP traffic sent to your local machine. It then copies the data and only writes the audio to an output file. The same could be done with video.

```auto
ffmpeg -listen 1 -i rtmp://localhost/live/STREAM_NAME -vn -acodec copy output-audio.aac

```

### Stream to FFMPEG

Now that we have a server running, open a new terminal window. In the new window, provide the command that you used earlier to stream a video to your server:

```auto
ffmpeg -re -i ~/Downloads/sample-mp4-file.mp4 -c copy -f flv rtmp://localhost/live/STREAM_NAME

```

When the stream is complete, you can open output-audio.aac and listen to the audio from the stream.

---

_[View the full topic](https://devforum.zoom.us/t/live-streaming-with-rtmp/63328)._
