On Mon, Feb 11, 2008 at 11:40:37AM +0100, Michel Bardiaux wrote:
> Ping in the original thread.
I shall repost, see below.
I feel a bit awkward about it, though, as I feel that reposting
is offensive en impolite: why fill up everybody's mailbox with the
same stuff over and over again? Anyway, as you requested it, here
we go!
Any help you (or anybody else, for that matter) can give would be greatly
appreciated: I planned to use ffserver/ffmpeg to live-stream some event
and find myself rather stuck..
BTW: I currently use a more recent build of ffplay, but to no avail.
--
Hi there,
I'm experiencing problems trying to get ffmpeg/ffserver to work.
This is what I try to do:
- get a feed from a Linksys WVC54G webcam;
- stream that into ffserver (using ffmpeg);
- have ffserver restream the output;
- read the output stream (using e.g. ffplay or WMP).
I am using the latest SVN stuff and latest GCC, on top of a SuSE 8.1
system, uname -a says:
Linux angeldust 2.4.33.3 #1 SMP Fri Oct 27 19:42:41 CEST 2006 i686 unknown
Compiling the source is no problem at all, nor is installing it.
FFplay works fine too, but I can't get the server to stream properly
and after a while it produces a Segmentation fault:
$ ffserver
FFserver version SVN-r11876, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-gpl
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Feb 6 2008 20:45:30, gcc: 4.2.2
ffserver started.
127.0.0.1 - - [Wed Feb 6 20:52:18 2008] "GET /camera1.ffm HTTP/1.1" 200 8245
127.0.0.1 - - [Wed Feb 6 20:52:18 2008] "GET /camera1.ffm HTTP/1.1" 200 20533
127.0.0.1 - - [Wed Feb 6 20:53:22 2008] "GET /Live.asf HTTP/1.1" 200 117
145.66.56.13 2000-01-04 22:21:37 -
http://angeldust.fortean.org:8090/Live.asf 0 0 1 - {27410AD8-B34B-48AD-8790-E6AAC91E5612} 8.0.0.4477 en-GB - - wmplayer.exe 8.0.0.4477 Windows_2000 5.1.0.2600 Pentium 0 0 0 http TCP - wmv1 - - 0 - 0 0 0 0 0 0 0 0 0 100 - - - -
145.66.56.13 - - [Wed Feb 6 20:53:46 2008] "POST /Live.asf HTTP/1.0" 404 146
127.0.0.1 - - [Wed Feb 6 20:54:56 2008] "GET /stat.html HTTP/1.1" 200 2237
Segmentation fault
$_
*** Note that the WMP reports that it is playing at 24 Kb/sec but the
stat.html page shows that it actually is in WAIT_FEED state after
the initial tranfer of 615 bytes.
This is the command I use to fire up the stream from the camera:
$ ffmpeg -an -r 5 -i
http://camera1/img/video.asf http://localhost:8090/camera1.ffm
FFmpeg version SVN-r11876, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-gpl
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Feb 6 2008 20:45:30, gcc: 4.2.2
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 15.00 (15/1)
Input #0, asf, from '
http://camera1/img/video.asf': Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 0:1 DAR 0:1], 15.00 tb(r)
Output #0, ffm, to '
http://localhost:8090/camera1.ffm': Stream #0.0: Video: wmv1, yuv420p, 352x240 [PAR 0:1 DAR 0:1], q=3-31, 24 kb/s, 5.00 tb(c)
Stream #0.1: Video: flv, yuv420p, 352x288 [PAR 0:1 DAR 0:1], q=1-5, 200 kb/s, 5.00 tb(c)
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.0 -> #0.1
[flv @ 0x84eb2d0]removing common factors from framerate
Press [q] to stop encoding
[wmv1 @ 0x84eb2d0]rc buffer underflow
[flv @ 0x84eb2d0]rc buffer underflow
[asf @ 0x84340d4]freeing incomplete packet size 5926, new 7318rate= 308.0kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5924, new 4864trate= 306.8kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5924, new 5704trate= 304.7kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5930, new 4654rate= 304.9kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5926, new 5846itrate= 305.5kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 7906, new 5488itrate= 306.2kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 7906, new 5064trate= 305.9kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5928, new 8300itrate= 305.8kbits/s
[asf @ 0x84340d4]freeing incomplete packet size 5924, new 8240itrate= 305.4kbits/s
*** then the command aborts, due to the Segmentation fault on ffserver
The libraries all seem to be there:
$ ldd /usr/local/bin/ffserver
libm.so.6 => /lib/i686/libm.so.6 (0x40025000)
libfaac.so.0 => /usr/local/lib/libfaac.so.0 (0x40048000)
libfaad.so.0 => /usr/local/lib/libfaad.so.0 (0x40059000)
libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0x40097000)
libdl.so.2 => /lib/libdl.so.2 (0x40126000)
libc.so.6 => /lib/i686/libc.so.6 (0x40129000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
$ ldd /usr/local/bin/ffmpeg
libm.so.6 => /lib/i686/libm.so.6 (0x40025000)
libfaac.so.0 => /usr/local/lib/libfaac.so.0 (0x40048000)
libfaad.so.0 => /usr/local/lib/libfaad.so.0 (0x40059000)
libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0x40097000)
libdl.so.2 => /lib/libdl.so.2 (0x40126000)
libc.so.6 => /lib/i686/libc.so.6 (0x40129000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
The configuration file:
-------------------------------------------------
## FFserver.conf
-------------------------------------------------
Port 8090
BindAddress 0.0.0.0
MaxClients 1000
MaxBandwidth 10000
CustomLog -
NoDaemon
<Feed camera1.ffm>
ACL allow 127.0.0.1
File /fs0/ffserver/input
FileMaxSize 1G
</Feed>
<Stream Live.asf>
Feed camera1.ffm
Format asf
VideoCodec wmv1
VideoIntraOnly
VideoSize 352x240
VideoBitRate 24
VideoGopSize 30
AudioBitRate 24
NoAudio
</stream>
<Stream stat.html>
Format status
ACL allow localhost
</Stream>
-------------------------------------------------
Any help would be greatly appreciated.
Suuuomikkie vinnouuven,
--
Henk Kloepping Voice : +31 598 42 31 31
European Fortean Foundation e-mail :
[hidden email]
To join ISOC.NL:
http://www.isoc.nl_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-userSuuuomikkie vinnouuven,
--
Henk Kloepping Voice : +31 598 42 31 31
European Fortean Foundation e-mail :
[hidden email]
To join ISOC.NL:
http://www.isoc.nl_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user