Hello,
I am having difficulties setting up ffserver with an ffmpeg feed under
Ubuntu 10.10 x64.
The ffserver instance seems to run without a hassle, but ffmpeg throws a
"Connection refused" error at me and quits (Encoding with the same
settings to a file instead works well). Below are the details. I tried
different codecs (libvorbis/libtheora and libvorbis/libvpx),
ffserver/ffmpeg from Ubuntu repositories and from a recent git checkout,
but the error persists.
I would be very happy if anyone could help me with this.
Marcel
-------- FFServer conf
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
<Feed feed1.ffm>
File /home/marcel/ffmpeg/feed1.ffm
FileMaxSize 15M
ACL allow 127.0.0.1
</Feed>
<Stream test.webm>
#<Stream test.ogg>
Feed feed1.ffm
Format webm
#Format ogg
AudioCodec libvorbis
AudioBitRate 128
AudioChannels 2
AudioSampleRate 44100
VideoCodec libvpx
#VideoCodec libtheora
VideoBitRate 700
VideoBufferSize 40
VideoFrameRate 15
VideoSize 352x288
VideoGopSize 12
</Stream>
-------- FFServer output
marcel@marcel-MacBookPro:~/ffmpeg/git/ffmpeg$ ./ffserver -f
../../ffserver3.conf
FFserver version git-d1b6f33, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 27 2011 15:55:29 with gcc 4.4.5
configuration: --enable-libvpx --enable-libtheora --enable-libmp3lame
--enable-libvorbis --enable-gpl
libavutil 50. 36. 0 / 50. 36. 0
libavcore 0. 16. 1 / 0. 16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52. 94. 0 / 52. 94. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 74. 0 / 1. 74. 0
libswscale 0. 12. 0 / 0. 12. 0
Thu Jan 27 16:28:13 2011 FFserver started.
Thu Jan 27 16:28:29 2011 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4149
Thu Jan 27 16:28:29 2011 127.0.0.1 - - [POST] "/feed1.ffm HTTP/1.1" 200 4096
-------- FFMpeg output
marcel@marcel-MacBookPro:~/ffmpeg/git/ffmpeg$ ./ffmpeg -loglevel verbose
-f alsa -i plughw:1,0 -f video4linux2 -i /dev/video0
http://localhost:8090/feed1.ffm
FFmpeg version git-d1b6f33, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 27 2011 15:55:29 with gcc 4.4.5
configuration: --enable-libvpx --enable-libtheora --enable-libmp3lame
--enable-libvorbis --enable-gpl
libavutil 50. 36. 0 / 50. 36. 0
libavcore 0. 16. 1 / 0. 16. 1
libavcodec 52.108. 0 / 52.108. 0
libavformat 52. 94. 0 / 52. 94. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 74. 0 / 1. 74. 0
libswscale 0. 12. 0 / 0. 12. 0
[alsa @ 0x20c3510] capture with some ALSA plugins, especially dsnoop,
may hang.
[alsa @ 0x20c3510] Estimating duration from bitrate, this may be inaccurate
Input #0, alsa, from 'plughw:1,0':
Duration: N/A, start: 10463.345872, bitrate: N/A
Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
[video4linux2 @ 0x20c4790] [3]Capabilities: 4000001
[video4linux2 @ 0x20c4790] Querying the device for the current frame size
[video4linux2 @ 0x20c4790] Setting frame size to 352x288
[video4linux2 @ 0x20c4790] Estimating duration from bitrate, this may be
inaccurate
Input #1, video4linux2, from '/dev/video0':
Duration: N/A, start: 10463.375499, bitrate: 48660 kb/s
Stream #1.0: Video: rawvideo, yuyv422, 352x288, 48660 kb/s, 30 tbr,
1000k tbn, 30 tbc
TCP connection to localhost:8090 failed: Connection refused
Last message repeated 1 times
[buffer @ 0x20e4db0] w:352 h:288 pixfmt:yuyv422
[ffsink @ 0x20e4e30] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'out'
[scale @ 0x20de400] w:352 h:288 fmt:yuyv422 -> w:352 h:288 fmt:yuv420p
flags:0xa0000004
[libvpx @ 0x20eadc0] v0.9.2
[libvpx @ 0x20eadc0] --enable-pic --enable-shared --disable-install-bins
--disable-install-srcs --target=x86_64-linux-gcc
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Metadata:
encoder : Lavf52.94.0
Stream #0.0: Audio: libvorbis, 44100 Hz, 2 channels, s16, 128 kb/s
Stream #0.1: Video: libvpx, yuv420p, 352x288, q=2-31, 700 kb/s,
1000k tbn, 15 tbc
Stream mapping:
Stream #0.0 -> #0.0
Stream #1.0 -> #0.1
Press [q] to stop encoding
ffmpeg: libavutil/mathematics.c:79: av_rescale_rnd: Assertion `c > 0'
failed.
Abgebrochen
marcel@marcel-MacBookPro:~/ffmpeg/git/ffmpeg$
-------- Even more infos:
The port seems to be open though:
root@marcel-MacBookPro:/home/marcel/ffmpeg# netstat -tpl|grep 8090
tcp 0 0 *:8090 *:*
LISTEN 21948/ffserver
root@marcel-MacBookPro:/home/marcel/ffmpeg# nmap -p 8090 localhost
Starting Nmap 5.21 ( http://nmap.org ) at 2011-01-27 17:42 CET
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000076s latency).
Hostname localhost resolves to 2 IPs. Only scanned 127.0.0.1
rDNS record for 127.0.0.1: localhost.localdomain
PORT STATE SERVICE
8090/tcp open unknown
Nmap done: 1 IP address (1 host up) scanned in 0.14 seconds
root@marcel-MacBookPro:/home/marcel/ffmpeg#
_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user