LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Bind(port 8090): Invalid argument error in ffserver patch found (https://www.linuxquestions.org/questions/linux-software-2/bind-port-8090-invalid-argument-error-in-ffserver-patch-found-910731/)

unkajim 10-29-2011 12:22 AM

Bind(port 8090): Invalid argument error in ffserver patch found
 
I was getting this error with ffserver failing to start on the latest release on the latest Ubuntu(11.10) and still got it when I rolled back to Ubuntu 10.04 LTS with the latest ffmpeg from git and also when I tried an older release of ffmpeg. Lots of Googling yielded no answer until I found this Russian site and thanks to Google Translate, was able to read this patch. If you open ffserver.c in a text editor, and find the text below(it is around line number 4000 or so), this is where you'll make a small edit. Insert the line with the "+"(without including the "+" of course) save the changes and recompile(make). It worked for me.

Code:

my_http_addr.sin_port = htons(val);
 + my_http_addr.sin_family = AF_INET;
 } else if (!strcasecmp(cmd, "BindAddress")) {
 get_arg(arg, sizeof(arg), &p);
 if (resolve_host(&my_http_addr.sin_addr, arg) != 0) {

And the url for the Russian site:
http://www.mianet.ru/index.php/sysad...erver-a-ffmpeg

cables 01-01-2012 03:52 PM

It worked for me, too. Thanks for contributing this fix.

Have you considered submitting it to the developers at ffmpeg.org?


All times are GMT -5. The time now is 09:26 PM.