i've resolve with the Alex Cohen's solution:
in ffserver.c from line #605:
CHANGED:
if (my_http_addr.sin_port) {
server_fd = socket_open_listen(&my_http_addr);
if (server_fd < 0)
return -1;
}
TO
if (my_http_addr.sin_port) {
my_http_addr.sin_family = AF_INET;
server_fd = socket_open_listen(&my_http_addr);
if (server_fd < 0)
return -1;
}
but now i got this error when i try to stream with rtsp
the code:
ffmpeg -f video4linux2 -s 640x480 -r 25 -i /dev/video0 -an -vcodec
libx264 -bf 5 http://localhost:5454/feed2.ffm
the output:
ffmpeg version 0.8.7, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 10 2011 18:37:34 with gcc 4.6.1
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc
--enable-version3 --enable-x11grab
libavutil 51. 9. 1 / 51. 9. 1
libavcodec 53. 8. 0 / 53. 8. 0
libavformat 53. 5. 0 / 53. 5. 0
libavdevice 53. 1. 1 / 53. 1. 1
libavfilter 2. 23. 0 / 2. 23. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[video4linux2 @ 0x920b360] Estimating duration from bitrate, this may be
inaccurate
Input #0, video4linux2, from '/dev/video0':
Duration: N/A, start: 44978.608602, bitrate: 122879 kb/s
Stream #0.0: Video: rawvideo, yuyv422, 640x480, 122879 kb/s, 25 tbr, 1000k
tbn, 25 tbc
[http @ 0x920b8a0] HTTP error 505 RTSP Version not supported
http://localhost:5454/feed2.ffm: Input/output error
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/879018
Title:
ffserver cannot bind listening port
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libav/+bug/879018/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs