[FFmpeg-user] update atomically

Marton Balint cus at passwd.hu
Wed Jan 28 19:57:06 CET 2015



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


> On Wed, Jan 28, 2015 at 9:55 AM, Nicolas George <george at nsup.org> wrote:
>> Le nonidi 9 pluviôse, an CCXXIII, Simon Thelen a écrit :
>>> As long as you're not working with a network filesystem, you can
>>> atomically update a symlink with `mv -Tf <new> <current>'
>>
>> It works with plain files, no need to bother with symlinks.
>>
>> And -T and -f seems unnecessary in this context.
>>
>> Regards,
>>
>> --
>>   Nicolas George
>>
>> _______________________________________________
>> ffmpeg-user mailing list
>> ffmpeg-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list