Hello,

As promissed.....

Here included I put 2 files to indicate my configuration
- a file named "prepare" wich countains all parameters to run "configure"
- a file named "ffserver.swf.conf" wich countains all the conf to run ffserver and ffmpeg (together)

hope that that mailing-list accepts joined files...

Once again  some tech info:
I am running on ubuntu-server 10.04 lts
I (re)compiled from sources provided by ubuntu, including the .diff file (use "patch -p0 < ffmpeg.......diff") sothat I could add the lame-mp3 library.
- untar the original source-file
- apply the patch  (i.e.  the .diff file)
- run "prepare" : read carefully the messages to check if all expected codecs are correctly included
- make , make install

I can not give any advice for other platforms nor systems.


have fun


Le 21/03/2012 17:47, Michal Tausk a écrit :
Hi,

glad to hear. Please, provide working config for streaming video and audio. I would like to do it, too. I don't care which format, just need a working one (mpeg-ts, flv, asf...). So far I managed to stream only MP3 through http:// URI.

Does it work through rtsp:// or through http:// ?

Thanks.


 21.3.2012 17:38, adminrezo.0441992b  wrote / napísal(a):
Finally, after several testings, I could get a working streaming
swf format  (flv + mp3), 15fps, audiobitrate=16K

I needed to make several copilations from various version.

tested the 0.6.5 version downloaded from ffmpeg.org site.
Was working so-so :
- long delay in the streaming
- pause in the streaming
- ffserver consuming about 95-98% CPU


Finally, I chose to recompile from ubuntu-source, that means, exactly the same version as provided through the binary (0.5.1).
needed to apply the patch  (.diff file provided with the source)
I included the lame-mp3 codec (wich is not provided in the binary package of ffmpeg, from ubuntu)

Finally, it is working wonderfully well
ffmpeg  approx 12% CPU
ffserver approx  0.3% CPU
on a 2.4 Ghz celeron  (old Dell 170L)


...happy at last !!!!!



Le 13/03/2012 17:50, adminrezo.0441992b a écrit :
Hello,

I am now facing a new problem.
still using my  ubuntu-server 10.04 LTS

I want to use speex audio codec with my ffmpeg and ffserver
-enable-libspeex appears when I call "ffmpeg -formats" or "ffserver -formats" - libspeex1 and libspeexdsp1 libraries are installed on the system (apt-get install .....)
but ffserver complains that it does not know about
speex  /  libspeex  /   libsppeex1  / libspeexdsp1
how come ?
finally I realize that "ffmpeg -formats" doest not display the "EA" flags for this codec

trying to stream .ogg  (audio + video)
launching separately ffserver and ffmpeg
ffsever complains when receiving connexion from ffmpeg : "could not find codec parameters (audio: vorbis,44100 Hz, stereo,s16,64kb/s) sending video only (without audio) from ffmpeg to ffserver is working (if I don't mention fps video-rate)....but can't get it working on VLC


So finally, is there a full-tested workable configuration to send video+audio with ffmpeg/ffserver ?



_______________________________________________
ffserver-user mailing list
ffserver-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffserver-user


--
Xavier COUDIN - coordinateur informatique
Lycée "Pays-de-Retz"
1 pl Joseph Girard   44210 PORNIC
tel 02 40 82 40 19    poste 167

./configure     --prefix=/usr/local \
                --enable-avfilter \
                --enable-avfilter-lavf \
                --enable-vdpau \
                --enable-bzlib \
                --enable-libgsm \
                --enable-libschroedinger \
                --enable-libspeex \
                --enable-libtheora \
                --enable-libvorbis \
                --enable-zlib \
                --disable-stripping \
                --disable-vhook \
                --enable-runtime-cpudetect \
                --enable-gpl \
                --enable-postproc \
                --enable-swscale \
                --enable-x11grab \
                --enable-static \
                --enable-nonfree \
                --enable-libmp3lame \
                --shlibdir=/usr/lib/i686/cmov \


#               --cpu=i686 \
#               --enable-runtime-cpudetect \


#               --enable-pthreads \
#               --enable-shared \
#               --enable-libx264 \
#               --enable-libopenjpeg \
#               --enable-libxvid \
#               --enable-libdc1394 \

# 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 10

# 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 10

# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 3000

# Access log file (uses standard Apache log file format)
# '-' is the standard output.
#CustomLog -
CustomLog /tmp/ffserver.log

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


##################################################################
# Definition of the live feeds. Each live feed contains one video
# and/or audio sequence coming from an ffmpeg encoder or another
# ffserver. This sequence may be encoded simultaneously with several
# codecs at several resolutions.

<Feed feed1.ffm>

# You must use 'ffmpeg' to send a live feed to ffserver. In this
# example, you can type:
#
#ffmpeg http://localhost:8090/feed1.ffm

# ffserver can also do time shifting. It means that it can stream any
# previously recorded live stream. The request should contain:
# "http://xxxx?date=[YYYY-MM-DDT][[HH:]MM:]SS[.m...]".You must specify
# a path where the feed is stored on disk. You also specify the
# maximum size of the feed, where zero means unlimited. Default:
# File=/tmp/feed_name.ffm FileMaxSize=5M
File /tmp/feed1.ffm FileMaxSize=5M
# FileMaxSize 200K

# You could specify
# ReadOnlyFile /saved/specialvideo.ffm
# This marks the file as readonly and it will not be deleted or updated.

# Specify launch in order to start ffmpeg automatically.
# First ffmpeg must be defined with an appropriate path if needed,
# after that options can follow, but avoid adding the http:// field
Launch /usr/local/bin/ffmpeg  -v 2 -f oss -i /dev/dsp1   -s cif -f video4linux2 
-i /dev/video0   -vcodec flv -acodec libmp3lame 

# Only allow connections from localhost to the feed.
ACL allow 127.0.0.1

</Feed>


##################################################################
# Now you can define each stream which will be generated from the
# original audio and video stream. Each format has a filename (here
# 'test1.mpg'). FFServer will send this stream when answering a
# request containing this filename.

<Stream test1.swf>

# coming from live feed 'feed1'
Feed feed1.ffm

# Format of the stream : you can choose among:
# mpeg       : MPEG-1 multiplexed video and audio
# mpegvideo  : only MPEG-1 video
# mp2        : MPEG-2 audio (use AudioCodec to select layer 2 and 3 codec)
# ogg        : Ogg format (Vorbis audio codec)
# rm         : RealNetworks-compatible stream. Multiplexed audio and video.
# ra         : RealNetworks-compatible stream. Audio only.
# mpjpeg     : Multipart JPEG (works with Netscape without any plugin)
# jpeg       : Generate a single JPEG image.
# asf        : ASF compatible streaming (Windows Media Player format).
# swf        : Macromedia Flash compatible stream
# avi        : AVI format (MPEG-4 video, MPEG audio sound)
Format swf

# Bitrate for the audio stream (in Kbits/s). Codecs usually support only a few
# different bitrates.
#AudioBitRate 32
AudioBitRate 16

# Number of audio channels: 1 = mono, 2 = stereo
AudioChannels 1

# Sampling frequency for audio. When using low bitrates, you should
# lower this frequency to 22050 or 11025. The supported frequencies
# depend on the selected audio codec.
#AudioSampleRate 44100
AudioSampleRate 11025

# Bitrate for the video stream
VideoBitRate 300

# Ratecontrol buffer size
VideoBufferSize 400

# Number of frames per second
VideoFrameRate 15

# If non-intra only, an intra frame is transmitted every VideoGopSize
# frames. Video synchronization can only begin at an intra frame.
VideoGopSize 15



# Size of the video frame: WxH (default: 160x128)
# The following abbreviations are defined: sqcif, qcif, cif, 4cif, qqvga,
# qvga, vga, svga, xga, uxga, qxga, sxga, qsxga, hsxga, wvga, wxga, wsxga,
# wuxga, woxga, wqsxga, wquxga, whsxga, whuxga, cga, ega, hd480, hd720,
# hd1080
#VideoSize qcif
VideoSize cif

# Transmit only intra frames (useful for low bitrates, but kills frame rate).
#VideoIntraOnly


# More MPEG-4 parameters
# VideoHighQuality
# Video4MotionVector

# Choose your codecs:
Videocodec flv
AudioCodec libmp3lame


# Suppress audio
#NoAudio

# Suppress video
#NoVideo

#quality of image : lower means better quality
#VideoQMin 3
#VideoQMax 31
VideoQMin 8
VideoQMax 25

# Set this to the number of seconds backwards in time to start. Note that
# most players will buffer 5-10 seconds of video, and also you need to allow
# for a keyframe to appear in the data stream.
#Preroll 15
Preroll 3

# ACL:

# You can allow ranges of addresses (or single addresses)
#ACL ALLOW <first address> <last address>
ACL ALLOW 172.17.212.0 172.17.212.254
ACL ALLOW localhost

# You can deny ranges of addresses (or single addresses)
#ACL DENY <first address> <last address>

# You can repeat the ACL allow/deny as often as you like. It is on a per
# stream basis. The first match defines the action. If there are no matches,
# then the default is the inverse of the last ACL statement.
#
# Thus 'ACL allow localhost' only allows access from localhost.
# 'ACL deny 1.0.0.0 1.255.255.255' would deny the whole of network 1 and
# allow everybody else.

</Stream>


##################################################################




<Stream status.html>
Format status

ACL allow localhost
ACL allow 172.17.212.0 172.17.212.254
</Stream>





# Redirect index.html to the appropriate site

<Redirect index.html>
URL http://www.ffmpeg.org/
</Redirect>


_______________________________________________
ffserver-user mailing list
ffserver-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffserver-user

Reply via email to