[FFmpeg-user] ffmpeg/ffserver run causes ffmpeg crash

Arnie Bearak arnstrb at yahoo.com
Tue May 3 17:11:30 CEST 2011


I am trying to encode a set of pgm files and stream them out to  ffserver using 
the following command listed below. I start ffserver, and when I run the ffmpeg 
command, it starts to do the encoding but eventually takes a segmentation 
fault.   It is producing an ffmpeg warning that I don't understand

[libx264 @ 0xad2ffc0] VBV buffer (655360) > level limit (300000)


ffmpeg -r 1  -i frame_%05d.pgm   -vcodec libx264 -y  -threads 0 -b 230k -vpre 
slow http://condor1:8090/feed1.ffm

The output of the ffmpeg run is

Input #0, image2, from 'frame_%05d.pgm':
  Duration: 00:00:24.00, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: pgm, gray, 3332x332, 1 fps, 1 tbr, 1 tbn, 1 tbc
[buffer @ 0xad2c0f0] w:3332 h:332 pixfmt:gray
[scale @ 0xad2c4d0] w:3332 h:332 fmt:gray -> w:3344 h:336 fmt:yuv420p 
flags:0xa0000004
[libx264 @ 0xad2ffc0] VBV buffer (655360) > level limit (300000)
[libx264 @ 0xad2ffc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle 
SSE4.1 Cache64
[libx264 @ 0xad2ffc0] profile High, level 5.1
Output #0, ffm, to 'http://condor1:8090/feed1.ffm':
  Metadata:
    encoder         : Lavf52.103.0
    Stream #0.0: Video: libx264, yuv420p, 3344x336, q=3-69, 18 kb/s, 1000k tbn, 
1 tbc
Stream mapping:
  Stream #0.0 -> #0.0

And the bt for the core dump is
0x0000003aac27275e in free () from /lib64/libc.so.6
#1  0x0000003fcf6a08b5 in avformat_free_context (s=0xad25cd0)
    at libavformat/utils.c:2599
#2  0x000000000040511c in av_bitstream_filter_filter ()
#3  0x000000000040aac8 in av_bitstream_filter_filter ()
#4  0x0000003aac21d994 in __libc_start_main () from /lib64/libc.so.6
#5  0x0000000000404a09 in av_bitstream_filter_filter ()
#6  0x00007fff392c3f18 in ?? ()
#7  0x0000000000000000 in ?? ()




My ffserver.config file looks as follows:  (there are lots of things commented 
out here)

# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
Port 8090
RTSPPort 5454

# Address on which the server is bound. Only useful if you have
# several network interfaces.
BindAddress 0.0.0.0

# Number of simultaneous HTTP connections that can be handled. It has
# to be defined *before* the MaxClients parameter, since it defines the
# MaxClients maximum limit.
MaxHTTPConnections 2000

# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000000
# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog -

# Suppress that if you want to launch ffserver as a daemon.
NoDaemon


<Feed feed1.ffm>

File /tmp/feed1.ffm
FileMaxSize 5M
</Feed>

<Stream test.asf>
# the source feed
Feed feed1.ffm
# the output stream format - ASF
#Format asf
Format mp4
#VideoCodec msmpeg4
VideoCodec libx264
AVPresetVideo slow
# this must match the ffmpeg -r argument
VideoFrameRate 1
# generally leave this is a large number
VideoBufferSize 80000
# another quality tweak
#VideoBitRate 200
VideoBitRate 18
# quality ranges - 1-31 (1 = best, 31 = worst)
#VideoQMin 1
#VideoQMax 5
#VideoQMin 0
#VideoQMax 69
#VideoSize 352x288
#VideoSize 3332x332
VideoSize 3344x336
# This sets how many seconds in past to start
PreRoll 0
#we have no audio
Noaudio
</Stream>

<Stream stat.html>
Format status

# Only allow local people to get the status

#FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico
</Stream>

If anyone has ideas on why this is happening, I would appreciate some advice.

Thanks,
Arnie


More information about the ffmpeg-user mailing list