I have tried to do what you have suggested. Somehow, it still cause ffmpeg to 
crash at the exact moment the file is being renamed.

By the way, I am running in Windows environment. Not sure, if in Linux will 
this issue occurs.


> On 3 Nov 2021, at 12:49 PM, Adam Nielsen <a.niel...@shikadi.net> wrote:
> 
> 
>> 
>> textfile/reload=1 is working.
>> 
>> However, the textfile is being updated by another process at every
>> second. This caused ffmpeg to crash after running sometime as the
>> ffmpeg unable to read the textfile when the other process is updating
>> it.
> 
> In the manpage it says the update has to be atomic, i.e. you should
> write your update to a different file, then move the new file over the
> top of the old one.  That way ffmpeg will always see either the new
> content or the old, and nothing in between.
> 
> Cheers,
> Adam.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to