From owner-freebsd-questions@FreeBSD.ORG Wed Jul 20 02:05:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3D8C16A41F for ; Wed, 20 Jul 2005 02:05:39 +0000 (GMT) (envelope-from FreeBSD@amadeus.demon.nl) Received: from post-24.mail.nl.demon.net (post-24.mail.nl.demon.net [194.159.73.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8595543D46 for ; Wed, 20 Jul 2005 02:05:39 +0000 (GMT) (envelope-from FreeBSD@amadeus.demon.nl) Received: from amadeus.demon.nl ([82.161.18.200]:49573 helo=[10.0.1.1]) by post-24.mail.nl.demon.net with esmtp (Exim 4.51) id 1Dv3xq-0008ma-BE for freebsd-questions@freebsd.org; Wed, 20 Jul 2005 02:05:38 +0000 Mime-Version: 1.0 (Apple Message framework v730) Content-Transfer-Encoding: 7bit Message-Id: <51DC41ED-B81C-4DEA-A51A-72B6F1572652@amadeus.demon.nl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: "freebsd-questions@FreeBSD. ORG" From: FreeBSD questions mailing list Date: Wed, 20 Jul 2005 04:05:36 +0200 X-Mailer: Apple Mail (2.730) Subject: ffserver, streaming audio problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jul 2005 02:05:40 -0000 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@amadeus:~> uname -r 5.3-RELEASE-p18 User@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@amadeus:~> cat ffserver.conf.sample Port 8090 BindAddress xxx.xxx.xxx.xxx MaxClients 1000 MaxBandwidth 1000 CustomLog - File /tmp/feed1.ffm FileMaxSize 200K Launch ACL allow 127.0.0.1 Feed feed1.ffm Format mpeg AudioBitRate 32 AudioChannels 1 AudioSampleRate 44100 AudioCodec mp2 NoVideo Feed feed1.ffm Format mp2 AudioCodec mp3 AudioBitRate 64 AudioChannels 1 AudioSampleRate 44100 NoVideo Format status ACL allow localhost ACL allow 192.168.0.0 192.168.255.255 URL http://www.ffmpeg.org/ User@amadeus:~> ffserver -f ffserver.conf.sample ffserver started. User@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@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@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