Segmentation Fault

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

Segmentation Fault

Henk Klopping
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-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Henk Klopping
Hi people,

has anybody any clue why my I get SIGSEGV's? See my previous
posting..

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-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Michel Bardiaux-2
Henk Klopping wrote:
> Hi people,
>
> has anybody any clue why my I get SIGSEGV's? See my previous
> posting..

Ping in the original thread. Or post the complete info again. Why force
people to dig in old messages? And which one are they supposed to reply
to, the old thread or this one?


>
> Suuuomikkie vinnouuven,


--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

The Wanderer-2
Michel Bardiaux wrote:

> Henk Klopping wrote:
>> Hi people,
>>
>> has anybody any clue why my I get SIGSEGV's? See my previous
>> posting..
>
> Ping in the original thread. Or post the complete info again. Why
> force people to dig in old messages? And which one are they supposed
> to reply to, the old thread or this one?

This *is* the original thread (original and previously only message
posted on the 6th); he just didn't quote anything, so only people who
happen to have kept the old message and threaded the new one correctly
will see the fact.

--
    The Wanderer

    My usual .sig is on vacation while I adjust to my new computer
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Michel Bardiaux-2
The Wanderer wrote:

> Michel Bardiaux wrote:
>
>> Henk Klopping wrote:
>>> Hi people,
>>>
>>> has anybody any clue why my I get SIGSEGV's? See my previous
>>> posting..
>> Ping in the original thread. Or post the complete info again. Why
>> force people to dig in old messages? And which one are they supposed
>> to reply to, the old thread or this one?
>
> This *is* the original thread (original and previously only message
> posted on the 6th); he just didn't quote anything, so only people who
> happen to have kept the old message and threaded the new one correctly
> will see the fact.
>
Sorry. When Henk's 2nd message arrived, I could swear that Thunderbird
did not show any hint of threading, esp. no "Re:". At that point his 2nd
message was in my IN box but the 1st had already been filed in my ffmpeg
archive folder. But if I look at the full headers now, the 2nd message
has both "References" and "Re:".

Maybe I am like Terminator2: "I need a vacation" :-)

Greetings,
--
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:[hidden email]

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Henk Klopping
In reply to this post by Michel Bardiaux-2
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-user

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-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Henk Klopping
In reply to this post by Henk Klopping
On Wed, Feb 06, 2008 at 09:32:27PM +0100, Henk Klopping wrote:
> I'm experiencing problems trying to get ffmpeg/ffserver to work.

I have read a number of postings that suggest that the nighly
builds are not stable. Now, I have downloaded a fair number
of them, they all compile, ffmpeg seems to work fine, as does
ffplay, but ffserver keeps on SIGSEGV-ing. Is there someone here
who has a working stable ffserver up and running, if so, what
configuration, with which build/release?

I'd like to know, as I intend to download and compile such a
version myself - if that also SIGSEGV's, it _must_ be something
weird on my old SuSE box, I assume.

Help, anybody?

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-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Henk Klopping
In reply to this post by Henk Klopping
On Wed, Feb 06, 2008 at 09:32:27PM +0100, Henk Klopping wrote:
> Hi there,
>
> I'm experiencing problems trying to get ffmpeg/ffserver to work.

Not much response yet, I see. Anyway, I decided to do some
debugging myself. When the server crashes, this is what seems
to cause it:

--
Invalid read of size 4
   at 0x806D4B5: av_read_frame_internal (utils.c:504)
   by 0x7FFFFFFF: ???
 Address 0x8 is not stack'd, malloc'd or (recently) free'd

Process terminating with default action of signal 11 (SIGSEGV)
 Access not within mapped region at address 0x8
   at 0x806D4B5: av_read_frame_internal (utils.c:504)
   by 0x7FFFFFFF: ???
--

Any clues, anybody?

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-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Stefano Sabatini
On date Wednesday 2008-02-13 21:30:39 +0100, Henk Klopping encoded:

> On Wed, Feb 06, 2008 at 09:32:27PM +0100, Henk Klopping wrote:
> > Hi there,
> >
> > I'm experiencing problems trying to get ffmpeg/ffserver to work.
>
> Not much response yet, I see. Anyway, I decided to do some
> debugging myself. When the server crashes, this is what seems
> to cause it:
>
> --
> Invalid read of size 4
>    at 0x806D4B5: av_read_frame_internal (utils.c:504)
>    by 0x7FFFFFFF: ???
>  Address 0x8 is not stack'd, malloc'd or (recently) free'd
>
> Process terminating with default action of signal 11 (SIGSEGV)
>  Access not within mapped region at address 0x8
>    at 0x806D4B5: av_read_frame_internal (utils.c:504)
>    by 0x7FFFFFFF: ???
> --
>
> Any clues, anybody?

Please provide more context, most people don't store old mails in
their inbox, so you need to feed them with the complete command which
crashed ffmpeg/ffserver.

Regards.
--
ffmpeg-user random tip #10
One minute of pure noise with ffmpeg:
ffmpeg -ar 48000 -t 60 -f s16le -acodec pcm_s16le -i /dev/urandom  \
    -ab 64K -f mp2 -acodec mp2 -y noise.mp2
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Segmentation Fault

Henk Klopping
I wrote:

> --
> Invalid read of size 4
>    at 0x806D4B5: av_read_frame_internal (utils.c:504)
>    by 0x7FFFFFFF: ???
>  Address 0x8 is not stack'd, malloc'd or (recently) free'd
>
> Process terminating with default action of signal 11 (SIGSEGV)
>  Access not within mapped region at address 0x8
>    at 0x806D4B5: av_read_frame_internal (utils.c:504)
>    by 0x7FFFFFFF: ???
> --
>
> Any clues, anybody?

On Thu, Feb 14, 2008 at 12:49:50PM +0100, Stefano Sabatini wrote:

> Please provide more context, most people don't store old mails in
> their inbox, so you need to feed them with the complete command which
> crashed ffmpeg/ffserver.

I am an old school Internet user, who dislikes trashing other people's
mailboxes with the same stuff over and over again. However, I can see
your point, so, here it is again, and humble apologies for it:

--
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-user