3

I'm attempting to stream from a file, using the following command:

ffmpeg -re -i video.webm -c copy -f webm rtmp://localhost:8090/stream

However, I get the following error:

TCP connection to localhost:8090 failed: Connection refused

This is the config file I'm using, which has the port, BindAddress, and ACL allow 127.0.0.1 already set. What's missing for this to be able to work?

http://ffmpeg.org/sample.html

6
  • 1
    You didn't provide very much information. I assume by "config file" you're referring to ffserver. You should provide the ffmpeg console output, the ffserver output, and the ffserver config file contents.
    – llogan
    Mar 4 '13 at 6:59
  • I thought I had included the link to the config file the first time, but there it is now.
    – Fibericon
    Mar 4 '13 at 7:45
  • That is the sample config file. Are you using that without modifying it?
    – llogan
    Mar 4 '13 at 18:48
  • Yes, it's unmodified.
    – Fibericon
    Mar 5 '13 at 2:10
3

Can you quickly just try to change your localhost references to 127.0.0.1 in your config file? If that helps, then you have an idea of the problem.

1
  • Yeah, that did it.
    – Fibericon
    Mar 6 '13 at 3:32
0

On Ubuntu 15.10 ffmpeg 2.7.6, I needed to add to the default /etc/ffserver.conf file:

<Feed feed1.ffm>
    ACL allow 127.0.0.1
    ACL allow localhost
    ACL allow 192.168.0.0 192.168.255.255
</Feed>

inside the Feed element (there were other ACL lines, but for Stream).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.