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.