Potrebujem pomoct s jednym problemom s ktorym zápasim už týždeň :D
Testovane aj na Debian Squeeze aj na Ubuntu Server 11.04 a to isté ->
Nainśtaloval som si ffmpeg cez tento tut: http://ubuntuforums.org/showthread.php?t=786095
a teraz..
FFServer konfiguracia:
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 1000
CustomLog -
NoDaemon
<Feed feed.ffm>
File /tmp/feed.ffm
FileMaxSize 64M
ACL allow 127.0.0.1
</Feed>
<Stream feed.mp3>
Feed feed.ffm
Format mp2
AudioCodec libmp3lame
AudioBitRate 128k
AudioChannels 2
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.google.com/
</Redirect>
A server beží skvele.
Ale ak chcem napr. streamovať mp3 (libmp3lame mam samozreme):
ffmpeg -i sph.mp3 -f mp3 http://127.0.0.1:8090/feed.ffm
Tak to hodí asi takýto výstup:
buri@ubuntuserver:~/videos$ ffmpeg -i sph.mp3 -f mp3 http://127.0.0.1:8090/feed.ffm
ffmpeg version N-32264-g2f870e2, Copyright (c) 2000-2011 the FFmpeg developers
built on Sep 1 2011 18:36:30 with gcc 4.5.2
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
libavutil 51. 14. 0 / 51. 14. 0
libavcodec 53. 12. 0 / 53. 12. 0
libavformat 53. 10. 0 / 53. 10. 0
libavdevice 53. 3. 0 / 53. 3. 0
libavfilter 2. 37. 0 / 2. 37. 0
libswscale 2. 0. 0 / 2. 0. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mp3 @ 0x2ff5460] max_analyze_duration 5000000 reached at 5016000
[mp3 @ 0x2ff5460] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'sph.mp3':
Duration: 00:06:15.38, start: 0.000000, bitrate: 320 kb/s
Stream #0.0: Audio: mp3, 48000 Hz, stereo, s16, 320 kb/s
Output #0, mp3, to 'http://127.0.0.1:8090/feed.ffm':
Metadata:
TSSE : Lavf53.10.0
Stream #0.0: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (mp3 -> libmp3lame)
Press [q] to stop, [?] for help
buri@ubuntuserver:~/videos$
A končí.. iba to prebehne a ani nezačne mapovať stream a ide exit..
Nerobil s tým dakto?.. Toto isté mi robilo aj pri Debiane aj pri Ubuntu Servery a mam uz podozrenie source kódov..
Budem velmi rád aj niekto pomôže :) Dík.