Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm looking for a way to have FFserver automatically save the current stream to a file locally. I have a server setup with Ubuntu 12 that has FFserver on it, we stream to it from our classroom using FFmpeg.

This all works fine, but what I want is for it to do the stream out but at the same time save it to a local file. I would love to be able to name and date that file also, but I can think of something else if not.

My current config is:

Port 8090
BindAddress IP
MaxHTTPConnections 30
MaxClients 20
MaxBandwidth 2000
CustomLog - 

<Feed cam1.ffm> 
File /tmp/cam1.ffm
FileMaxSize 10000K
</Feed> 

<Stream cam1.flv> 
Feed cam1.ffm 
Format flv 
VideoCodec flv 
VideoFrameRate 10
VideoBufferSize 20000 
VideoBitRate 200 
VideoQMin 5
VideoQMax 10 
VideoSize qvga
PreRoll 0 
#Noaudio 
AVOptionVideo flags +global_header
AVOptionAudio flags +global_header
</Stream>

<Stream stat.html>
Format status
</Stream>

I read through the documentation but nothing jumped out at me to do this. I thought maybe if there was a way to have FFServer run a script when input connects that would be even better because I think I can run ffplay or another program to grab the stream directly to an FLV file through the script it calls.

I just can't find anyway to have FFserver launch a script when input connects. Unless of course there's another way.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.