<p>I followed your instructions. I changed localhost to 127.0.0.1:10000, and I was using input from an rtsp.</p>
<p>Here is my command. It worked for me. I was able to get the stream in VLC player.</p>
<pre><code>ffmpeg -i &quot;rtsp://someurl/&quot; -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 \
       -f flv rtmp://127.0.0.1:10000/live
</code></pre>

CC BY-SA 4.0
2021-01-08T12:14:16.407Z
2021-01-20T12:25:30.650Z
2021-01-20T12:25:30.650Z
Usamah
<ol>
<li><p>I am trying to stream using ffmpeg rtmp using,</p>
<p>ffmpeg -i out2.mp4 -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 -f flv rtmp://localhost/live</p>
</li>
</ol>
<p>The process starts but nothing is happening after handler_name<a href="https://i.sstatic.net/BHB59.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BHB59.jpg" alt="enter image description here" /></a></p>
<ol start="2">
<li>When I use the command, ffmpeg -f flv -i out2.mp4 -c copy -f flv -listen 1 rtmp://localhost:1935/live/app.</li>
</ol>
<p>I get---&gt; Cannot open connection tcp://localhost:1935?listen&amp;listen_timeout=-1000
rtmp://localhost/live: Immediate exit requested</p>

<ffmpeg><encoding><rtmp>
ffmpeg rtmp server connection issues
Pals
# ffmpeg rtmp server connection issues

(Asked by: username_0 on 2020-04-28)

1. I am trying to stream using ffmpeg rtmp using,

   ffmpeg -i out2.mp4 -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 -f flv rtmp://localhost/live

The process starts but nothing is happening after handler\_name[![enter image description here](https://i.sstatic.net/BHB59.jpg)](https://i.sstatic.net/BHB59.jpg)

2. When I use the command, ffmpeg -f flv -i out2.mp4 -c copy -f flv -listen 1 rtmp://localhost:1935/live/app.

I get---> Cannot open connection tcp://localhost:1935?listen&listen\_timeout=-1000
rtmp://localhost/live: Immediate exit requested

**Tags:** ffmpeg, encoding, rtmp


---

## 1 answers

### Answer by username_1 on 2021-01-08. Score: 1

I followed your instructions. I changed localhost to 127.0.0.1:10000, and I was using input from an rtsp.
Here is my command. It worked for me. I was able to get the stream in VLC player.
ffmpeg -i "rtsp://someurl/" -c:v copy -c:a aac -listen 1 -ar 44100 -ab 64000 \
       -f flv rtmp://127.0.0.1:10000/live


---

