[FFmpeg-user] update atomically

Anthony Griffiths neuronetv at gmail.com
Wed Jan 28 22:09:24 CET 2015


On Wed, Jan 28, 2015 at 6:57 PM, Marton Balint <cus at passwd.hu> wrote:
>
>
> On Wed, 28 Jan 2015, Anthony Griffiths wrote:
>
>> so how would I get around the problem of the stream randomly crashing
>> because the file can't update fast enough? Is this a case of me simply
>> not having a fast enough machine?
>>
>
> You already got the answer, instead of copying to the file, overwrite it
> with the mv command. The file replacement should be atomic on a local
> filesystem.
>
> Regards,
> Marton
>

thankyou Marton the mv command appears to be working well, I've been
running the stream with multiple text changes and it hasn't crashed so
far. This might have saved me the cost of upgrading to another
machine.


More information about the ffmpeg-user mailing list