[FFmpeg-user] system freeze when running ffserver and ffmpeg, it is not stable
Soho Soho123
soho123.2012 at gmail.com
Wed Feb 20 09:30:42 CET 2013
Hi all,
When I try to MJPG Streamer to send video frame from usb webcam to
remote client,
it is stable for long time in my target system
But when I try to use ffserver and ffmpeg to do the same thing,
the system is not stable for a few minutes.
the system will freeze after a few minutes.
Does someone have idea about the stable issue?
ffserver.conf:
====================
Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 10
MaxBandwidth 100000
CustomLog -
<Feed feed1.ffm>
File /tmp/feed1.ffm
FileMaxSize 5M
ACL allow 127.0.0.1
</Feed>
<Stream test.mjpeg>
Feed feed1.ffm
Format mjpeg
VideoSize 640x480
VideoFrameRate 30
VideoBitRate 20000
VideoQMin 1
VideoQMax 10
Noaudio
</Stream>
====================
ffserver command line:
====================
ffserver -f /etc/ffserver.conf &
====================
the log of ffserver:
======================
# ffserver version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 8 2013 14:39:10 with gcc 4.4.5-1.5.5p4 (GCC)
configuration: --enable-cross-compile --cross-prefix=rsdk-linux-
--arch=mips --target-os=linux --disable
-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-txtpages --disable-w32threads --d
isable-os2threads --disable-ffplay --disable-postproc
--disable-mips32r2 --disable-yasm --disable-vis --di
sable-altivec --disable-mipsdspr1 --disable-mipsdspr2
--disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs
--bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena
ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4
--disable-decoders --enable-decoder=mjpeg --
enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo
--enable-encoder=rawvideo --enable-dec
oder=vorbis --enable-encoder=vorbis --disable-hwaccels
--disable-muxers --disable-demuxers --enable-muxer=
rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov
libavutil 52. 13.100 / 52. 13.
100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
Mon Feb 18 12:52:42 2013 FFserver started.
==========================================
the command of ffmpeg:
==========================================
ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i
/dev/video0 -c copy http://localhost:8090/feed1.ffm
==========================================
the log of ffmpeg:
==========================================
# ffmpeg -f video4linux2 -r 30 -s 640x480 -input_format mjpeg -i /dev/video0 -c
copy http://localhost:8090/feed1.ffm
ffmpeg version 1.1.1 Copyright (c) 2000-2013 the FFmpeg developers
configuration: --enable-cross-compile --cross-prefix=rsdk-linux-
--arch=mips --target-os=linux --disable
-doc --disable-htmlpages --disable-manpages --disable-podpages
--disable-txtpages --disable-w32threads --d
isable-os2threads --disable-ffplay --disable-postproc
--disable-mips32r2 --disable-yasm --disable-vis --di
sable-altivec --disable-mipsdspr1 --disable-mipsdspr2
--disable-mipsfpu --enable-small --prefix=/ffmpeg-1.1.1/romfs
--bindir=/ffmpeg-1.1.1/romfs --enable-pic --disable-encoders --ena
ble-encoder=mjpeg --enable-encoder=flv --enable-encoder=mpeg4
--disable-decoders --enable-decoder=mjpeg --
enable-decoder=flv --enable-decoder=mpeg4 --enable-decoder=rawvideo
--enable-encoder=rawvideo --enable-dec
oder=vorbis --enable-encoder=vorbis --disable-hwaccels
--disable-muxers --disable-demuxers --enable-muxer=
rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov
libavutil 52. 13.100 / 52. 13.
100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
[video4linux2,v4l2 @ 0x811210] Estimating duration from bitrate, this
may be inaccurate
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1361374794.360000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj422p, 640x480, -5 kb/s, 30 tbr,
1000k tbn, 30 tbc
Wed Feb 20 15:39:54 2013 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4175
Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
Metadata:
creation_time : now
encoder : Lavf54.59.106
Stream #0:0: Video: mjpeg, yuvj422p, 640x480, q=1-10, -5 kb/s,
1000k tbn, 30 tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
==========================================
More information about the ffmpeg-user
mailing list