[FFmpeg-user] FFM moving time segment
Eric Lovelace
Eric.Lovelace at msdmail.net
Tue Nov 18 18:37:46 CET 2014
Hello,
I am trying to send an rtp multicast of a stream with the configuration below. It works; however, when the max file size is reached (or the disk fills up if that parameter is excluded from ffmpeg) the program ends. The desired behavior would be to just keep a small section of the stream as per the docs the ffm file can "store a moving time segment of an infinite movie or a whole movie." The current behavior confuses me as clients are able to play the sdp file and receive the content from the beginning which seems inconsistent with multicast. How do I make ffmpeg create an FFM with a moving time segment of an infinite movie?
Thanks,
Eric
Command line ffmpeg start:
Ffmpeg -i "rtmp://192.168.10.10/push/test" -flags:a +global_header -pixel_format yuv420p -acodec libfdk_aac -vcodec libx264 -fs 2097152 /tmp/1.ffm
ffserver.cfg:
HTTPPort 8090
RTSPPort 554
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 1000
MaxBandwidth 10000000
MaxClients 200
CustomLog -
<Stream test1.rtp>
Format rtp
MulticastAddress 224.1.1.17
MulticastPort 5000
MulticastTTL 63
NoLoop
VideoCodec libx264
AVOptionAudio flags +global_header
AudioCodec libfdk_aac
File /tmp/1.ffm
</Stream>
<Stream status.html>
Format status
ACL allow localhost
</Stream>
More information about the ffmpeg-user
mailing list