ffserver, streaming audio problem

FreeBSD questions mailing list FreeBSD at amadeus.demon.nl
Wed Jul 20 02:05:40 GMT 2005


Hello,
I recently installed ffmpeg (/usr/ports/multimedia/ffmpeg/) to try  
and start a streaming audio server.
the installation went smoothly though i don't seem to be able to  
connect to ffserver.
It crashes when someone tries to connect.
Has anyone been able to run it with the NoVideo option?

I have been running darkice and icecast for a long time without any  
problems.
I just wanted to try and stream in .aac format which darkice does not  
support (yet).

thanks in advance...
Arno

Here's some info about my system and ffmpeg/ffserver:

User at amadeus:~> uname -r
5.3-RELEASE-p18



User at amadeus:~> ffmpeg -version
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004  
Fabrice Bellard
   built on Jul 19 2005 23:11:58, gcc: 3.4.2 [FreeBSD] 20040728
ffmpeg      0.4.9-pre1
libavcodec  4718
libavformat 4616



User at amadeus:~> cat ffserver.conf.sample
Port 8090
BindAddress xxx.xxx.xxx.xxx
MaxClients 1000
MaxBandwidth 1000
CustomLog -

<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 200K
Launch
ACL allow 127.0.0.1
</Feed>

<Stream test1.mpg>
Feed feed1.ffm
Format mpeg
AudioBitRate 32
AudioChannels 1
AudioSampleRate 44100
AudioCodec mp2
NoVideo
</Stream>

<Stream test.mp3>
Feed feed1.ffm
Format mp2
AudioCodec mp3
AudioBitRate 64
AudioChannels 1
AudioSampleRate 44100
NoVideo
</Stream>

<Stream stat.html>
Format status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</Stream>

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>



User at amadeus:~> ffserver -f ffserver.conf.sample
ffserver started.



User at amadeus:~> ffmpeg -ac 2 -acodec aac -ab 128 -ad /dev/dsp0.0  
http://xxx.xxx.xxx.xxx:8090/test.mp3
ffmpeg version 0.4.9-pre1, build 4718, Copyright (c) 2000-2004  
Fabrice Bellard
   built on Jul 19 2005 23:11:58, gcc: 3.4.2 [FreeBSD] 20040728
Input #0, audio_device, from '':
   Duration: N/A, bitrate: N/A
   Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, 1411 kb/s
Output #0, mp3, to 'http://xxx.xxx.xxx.xxx:8090/test.mp3':
   Stream #0.0: Audio: aac, 44100 Hz, stereo, 128 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
Press [q] to stop encoding
size=     446kB time=26.1 bitrate= 140.3kbits/s
video:0kB audio:446kB global headers:0kB muxing overhead 0.000000%



User at amadeus:~> dmesg -a | tail -7
Jul 20 03:25:10 amadeus kernel: pid 8533 (ffserver), uid 501: exited  
on signal 8
Connection attempt to TCP xxx.xxx.xxx.xxx:8090 from 10.0.1.1:49424  
flags:0x02
Jul 20 03:25:13 amadeus kernel: Connection attempt to TCP  
xxx.xxx.xxx.xxx:8090 from 10.0.1.1:49424 flags:0x02
Connection attempt to TCP 127.0.0.1:8090 from 127.0.0.1:58578 flags:0x02
Jul 20 03:25:35 amadeus kernel: Connection attempt to TCP  
127.0.0.1:8090 from 127.0.0.1:58578 flags:0x02
pid 9791 (ffserver), uid 0: exited on signal 8 (core dumped)
Jul 20 03:25:52 amadeus kernel: pid 9791 (ffserver), uid 0: exited on  
signal 8 (core dumped)



User at amadeus:~> gdb ffserver ffserver.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and  
you are
welcome to change it and/or distribute copies of it under certain  
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for  
details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging  
symbols found)...
Core was generated by `ffserver'.
Program terminated with signal 8, Arithmetic exception.
Reading symbols from /usr/local/lib/libavformat.so...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libavformat.so
Reading symbols from /usr/local/lib/libavcodec.so...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libavcodec.so
Reading symbols from /lib/libm.so.3...(no debugging symbols  
found)...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /lib/libz.so.2...(no debugging symbols  
found)...done.
Loaded symbols for /lib/libz.so.2
Reading symbols from /usr/local/lib/libogg.so.5...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libogg.so.5
Reading symbols from /usr/local/lib/libvorbis.so.3...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libvorbis.so.3
Reading symbols from /usr/local/lib/libvorbisenc.so.2...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libvorbisenc.so.2
Reading symbols from /usr/local/lib/libfaac.so.0...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libfaac.so.0
Reading symbols from /lib/libc.so.5...(no debugging symbols  
found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/lib/libstdc++.so.4...(no debugging symbols  
found)...done.
Loaded symbols for /usr/lib/libstdc++.so.4
Reading symbols from /usr/local/lib/libpostproc.so.0...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libpostproc.so.0
Reading symbols from /usr/local/lib/libmp3lame.so.0...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libmp3lame.so.0
Reading symbols from /usr/local/lib/libmp4v2.so.0...(no debugging  
symbols found)...done.
Loaded symbols for /usr/local/lib/libmp4v2.so.0
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols  
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x280cc5e0 in __divdi3 () from /usr/local/lib/libavformat.so
(gdb) run
Starting program: /usr/local/bin/ffserver
(no debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...(no  
debugging symbols found)...(no debugging symbols found)...
Program exited normally.
(gdb) quit



More information about the freebsd-questions mailing list