[FFmpeg-user] FFM moving time segment

Eric Lovelace Eric.Lovelace at msdmail.net
Tue Nov 18 18:37:46 CET 2014


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?


Command line ffmpeg start:
Ffmpeg -i "rtmp://" -flags:a +global_header -pixel_format yuv420p -acodec libfdk_aac -vcodec libx264 -fs 2097152 /tmp/1.ffm

HTTPPort 8090
RTSPPort 554
MaxHTTPConnections 1000
MaxBandwidth 10000000
MaxClients 200
CustomLog -

<Stream test1.rtp>
Format rtp
MulticastPort 5000
MulticastTTL 63

VideoCodec libx264

AVOptionAudio flags +global_header
AudioCodec libfdk_aac

File /tmp/1.ffm

<Stream status.html>
Format status

ACL allow localhost

More information about the ffmpeg-user mailing list