[FFserver-user] ffserver bitrate, formats and other issues questions.

Anton warm at stack.ru
Fri May 20 05:21:48 CEST 2011


Hi.

I installed next version of ffserver (ffmpeg package):

#ffserver -h
FFserver version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers
  built on May 16 2011 08:49:21 with gcc 4.6.0 20110429 (prerelease)
  configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx
--enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-gpl --enable-version3
--enable-runtime-cpudetect --disable-debug
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0


I am trying to transcode a few DVB channels via ffserver and still have no success. The problems are:

1. It seems that my installation can not produce more them 1Mbit/s video stream per channel and actually it even cannot
produce more then one channel at a time.

Port 8090
BindAddress 0.0.0.0
MaxHTTPConnections 200
MaxClients 100
MaxBandwidth 5000000
CustomLog -
NoDaemon

<Feed russia24.ffm>
        File /dev/shm/russia24.ffm
        FileMaxSize 36M # this affects on streaming but how ?
        ACL allow 127.0.0.1
</Feed>
<Stream russia24.mpegts>
        Feed russia24.ffm
        Format mpegts
        AudioBitRate 96
        AudioChannels 1
        AudioSampleRate 48000
        VideoCodec libxvid
#       VideoHighQuality # works (?)
        VideoBitRate 1000
        VideoBufferSize 20000000 # bits ? Bytes ? What ?
        VideoFrameRate 25
        VideoSize 640x480
        VideoGopSize 15
</Stream>

When VideoBitRate is set to 2000 the stream is useless - image not stable and breakes. Mplayer very often says "Cache
not filling, consider increasing -cache and/or -cache-min!". But VideoBitRate 1000 sreams petty good stable image.

ffserver uses 12.5 % of CPU (in top) regardless of bitrate, number of clients or number of streaming channels. Feeding
ffmpeg on this machine uses 3-6 %, CPU is "Intel(R) Xeon(R) CPU X3470  @ 2.93GHz". I believe that CPU is powerful
enough.

What is actual limits on bitrate in ff server ?



2. When I start 3 same stream channels (3 same config sections like above but different channels and feeds) A/V sync is
several seconds!

Is it possible to sync audio and video ? How ?



3. Actually I would like to stream via libx264 codec and still can not find working example.

Can any one to show working example with libx264 ?

Also I tried to use theora via ffmpeg2theora but this program exits very soon when gets some error :-(.


4. Where can I find table of compatibility formats and codecs ? Not all formats work for streaming and not all
streaming formats can carry any codecs. It is like roulette ...


Can any one help me ?


-- 
Anton [WARM-RIPE]
Stack ltd division head
tel. 8 (3822) 555-797



More information about the ffserver-user mailing list