Hi everybody,

I'm looking for a solution to do on demand transcoding. I've been looking through the ffserver documentation but I cannot find a clear answer as how or if I can use ffserver as an RTSP server and on demand transcoder. So I have some questions:

1) The docu says that streaming from file is broken so I wonder if it is even usefull to continue. Has anybody succesfull streamed MPEG-4 over RTP from a file?

2) ffserver is fed by an ffmpeg output. I start my ffserver and if you start ffmpeg with the http://localhost:8090/feed.ffm as output it immediately starts transcoding. So the transcoding is not started by the RTSP request but by the execution of ffmpeg. Is it even possible to start the transcoding on the request ? If the input feed of the ffserver is immediately transcoded, can I start watching the stream from the start? If so, where is the file stored?

3) Everytime I start ffmpeg with the http feed as output it only convert the audio to pcm_ulaw and no video. As I understand it, I should not configure any transcoding parameters to ffmpeg ( only input file and the http feed). The transcoding parameters are configured in the ffserver conf. Is this correct?
Is there a specific input format for my source file which I should use?

4) What is the 'File' tag means in the <stream> configuration in case of RTSP?

I've also included my server.conf file below.


thanks for all help,
Philippe.




# 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

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

# 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


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

AudioBitRate 32

AudioChannels 1

AudioSampleRate 44100

VideoBitRate 64

VideoBufferSize 40

VideoFrameRate 3

VideoSize 160x128

#VideoIntraOnly

VideoGopSize 12

# VideoHighQuality
# Video4MotionVector

# Choose your codecs:
AudioCodec libfaac
VideoCodec mpeg4


# 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-rtsp.mpg>

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

Format rtp
File "/usr/local/httpd/htdocs/test1.mpg"
</Stream>





##################################################################
# Special streams

# Server status

<Stream stat.html>
Format status

# Only allow local people to get the status
ACL allow localhost
ACL allow 10.211.55.2

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


# Redirect index.html to the appropriate site

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

_______________________________________________
ffserver-user mailing list
ffserver-user@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/ffserver-user

Reply via email to