Re: [FFmpeg-user] Alternative to Dynamic Text

2021-12-09 Thread LianCheng Tan
Anyone know when the file tolerance handling in filter will be fixed? > On 10 Nov 2021, at 12:43 AM, Carl Zwanzig wrote: > > On 11/9/2021 3:01 AM, Nicolas George wrote: >> It is the responsibility of whoever writes the file to ensure >> that the writing does not overlap with the reading. > >

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-09 Thread Carl Zwanzig
On 11/9/2021 3:01 AM, Nicolas George wrote: It is the responsibility of whoever writes the file to ensure that the writing does not overlap with the reading. Never heard that one, usually it's the reverse unless _both_ have some form of mutex/file-lock implemented. Given than it's not likely

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-09 Thread Gyan Doshi
On 2021-11-09 04:31 pm, Nicolas George wrote: Gyan Doshi (12021-11-09): Not on FAT32. And since it's not guaranteed, the filter should accommodate that. What are you talking about? The filter does not write the file, it just reads it. It is the responsibility of whoever writes the file to

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-09 Thread Nicolas George
Gyan Doshi (12021-11-09): > Not on FAT32. And since it's not guaranteed, the filter should accommodate > that. What are you talking about? The filter does not write the file, it just reads it. It is the responsibility of whoever writes the file to ensure that the writing does not overlap with the

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-08 Thread Gyan Doshi
On 2021-11-09 03:15 am, Marton Balint wrote: On Mon, 8 Nov 2021, Gyan Doshi wrote: On 2021-11-07 02:56 pm, Marton Balint wrote:  On Sun, 7 Nov 2021, Gyan Doshi wrote:  This can work until it doesn't. The filter doesn't tolerate any load  failures.  I'll see if I can add a short

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-08 Thread Adam Nielsen via ffmpeg-user
> Instead of a sleep and retry, we can simply continue with existing text > and try again on next frame. We can also extend the semantics of the > option (in a backward-compatible way) to specify the frame interval at > which the file is reloaded. I like this idea. I'm using it on a Raspberry

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-08 Thread Marton Balint
On Mon, 8 Nov 2021, Gyan Doshi wrote: On 2021-11-07 02:56 pm, Marton Balint wrote: On Sun, 7 Nov 2021, Gyan Doshi wrote: On 2021-11-07 03:58 am, Anatoly wrote:  On Thu, 4 Nov 2021 20:14:16 +0800  LianCheng wrote:  Yes, would like to know in ffmpeg, under drawtext, the

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-08 Thread LianCheng Tan
It is good to have some faults tolerance in software instead of exit abruptly :) > On 8 Nov 2021, at 6:44 PM, Gyan Doshi wrote: > >  > >> On 2021-11-07 02:56 pm, Marton Balint wrote: >> >> >>> On Sun, 7 Nov 2021, Gyan Doshi wrote: >>> >>> >>> >>> On 2021-11-07 03:58 am, Anatoly wrote:

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-08 Thread Gyan Doshi
On 2021-11-07 02:56 pm, Marton Balint wrote: On Sun, 7 Nov 2021, Gyan Doshi wrote: On 2021-11-07 03:58 am, Anatoly wrote:  On Thu, 4 Nov 2021 20:14:16 +0800  LianCheng wrote:  Yes, would like to know in ffmpeg, under drawtext, the textfile  (reload=1) is using read-write or read-only

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-07 Thread Marton Balint
On Sun, 7 Nov 2021, Gyan Doshi wrote: On 2021-11-07 03:58 am, Anatoly wrote: On Thu, 4 Nov 2021 20:14:16 +0800 LianCheng wrote: Yes, would like to know in ffmpeg, under drawtext, the textfile (reload=1) is using read-write or read-only mode? I think "procmon.exe" from Microsoft

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-07 Thread Gyan Doshi
On 2021-11-07 12:06 pm, LianCheng Tan wrote: Hi Gyan, Will it be added in the next release of ffmpeg? No guarantees but I'll aim for that. Regards, Gyan On 7 Nov 2021, at 1:08 PM, Gyan Doshi wrote:  On 2021-11-07 03:58 am, Anatoly wrote: On Thu, 4 Nov 2021 20:14:16 +0800

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-07 Thread LianCheng Tan
Hi Gyan, Will it be added in the next release of ffmpeg? > On 7 Nov 2021, at 1:08 PM, Gyan Doshi wrote: > >  > >> On 2021-11-07 03:58 am, Anatoly wrote: >> On Thu, 4 Nov 2021 20:14:16 +0800 >> LianCheng wrote: >> >>> Yes, would like to know in ffmpeg, under drawtext, the textfile >>>

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-06 Thread Gyan Doshi
On 2021-11-07 03:58 am, Anatoly wrote: On Thu, 4 Nov 2021 20:14:16 +0800 LianCheng wrote: Yes, would like to know in ffmpeg, under drawtext, the textfile (reload=1) is using read-write or read-only mode? I think "procmon.exe" from Microsoft

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-06 Thread Adam Nielsen via ffmpeg-user
> Btw, I think following approach may help (or may not, I have no windows > system by hand to test it myself). Let's say I want to atomically > replace file a.txt with file b.txt > mklink /h wrk.txt a.txt > open wrk.txt with ffmpeg > update b.txt as needed > mklink /h next.txt b.txt > move /y

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-06 Thread Anatoly
On Thu, 4 Nov 2021 20:14:16 +0800 LianCheng wrote: > Yes, would like to know in ffmpeg, under drawtext, the textfile > (reload=1) is using read-write or read-only mode? I think "procmon.exe" from Microsoft https://docs.microsoft.com/en-us/sysinternals/downloads/procmon can help you to find the

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-04 Thread Carl Zwanzig
(I haven't had enough coffee yet and my remembrance of the nuances of mmap are sketchy) On 11/4/2021 5:14 AM, LianCheng wrote: Yes, would like to know in ffmpeg, under drawtext, the textfile (reload=1) is using read-write or read-only mode? From a quick read of the source code-

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-04 Thread LianCheng
> > Sent: 03 November 2021 15:10 > > To: LianCheng Tan > > Cc: Adam Nielsen; FFmpeg user questions > > Subject: Re: [FFmpeg-user] Alternative to Dynamic Text > > > > > I have tried to do what you have suggested. Somehow, it still cause > > > f

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-03 Thread Francois Visagie
> From: ffmpeg-user [mailto:ffmpeg-user-boun...@ffmpeg.org] On Behalf Of > Adam Nielsen via ffmpeg-user > Sent: 03 November 2021 15:10 > To: LianCheng Tan > Cc: Adam Nielsen; FFmpeg user questions > Subject: Re: [FFmpeg-user] Alternative to Dynamic Text > > > I hav

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-03 Thread Adam Nielsen via ffmpeg-user
> 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. It works fine for me but I'm on Linux. If renaming doesn't

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-03 Thread LianCheng Tan
Sorry, need to give more details. Due to drawtext that load textfile dynamically and when the textfile is inaccessible, the ffmpeg exited. > On 3 Nov 2021, at 9:11 PM, Paul B Mahol wrote: > > On Wed, Nov 3, 2021 at 12:57 PM LianCheng Tan wrote: > >> I have tried to do what you have

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-03 Thread Paul B Mahol
On Wed, Nov 3, 2021 at 12:57 PM LianCheng Tan wrote: > 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. > Top

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-03 Thread LianCheng Tan
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 wrote: > >  >> >>

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-02 Thread Adam Nielsen via ffmpeg-user
> 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

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-02 Thread LianCheng Tan
Hi Adam, 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. > On 3 Nov 2021, at 7:52 AM, Adam Nielsen via

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-02 Thread Adam Nielsen via ffmpeg-user
> For subtitles, what if the content of .srt or .ass file is being > updated at every second. Will ffmpeg crash because the file is being > ‘locked’ by another process that is updating it? If you're going to update it every second, how come textfile/reload=1 won't work? I put my textfile in /tmp

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-02 Thread Michael Koch
Am 02.11.2021 um 00:09 schrieb LianCheng Tan: Thank you Michael. For subtitles, what if the content of .srt or .ass file is being updated at every second. Will ffmpeg crash because the file is being ‘locked’ by another process that is updating it? I don't know if this works. I thought the

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread LianCheng Tan
Thank you Michael. For subtitles, what if the content of .srt or .ass file is being updated at every second. Will ffmpeg crash because the file is being ‘locked’ by another process that is updating it? > On 2 Nov 2021, at 3:09 AM, Michael Koch wrote: > > Am 01.11.2021 um 19:58 schrieb

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread Michael Koch
Am 01.11.2021 um 19:58 schrieb Michael Koch: Am 01.11.2021 um 16:21 schrieb LianCheng Tan: Hi, Beside using textfile (reload=1) in drawtext for dynamic text, is there any other method to add dynamic texts onto the video stream? You could use subtitles. It's described in the wiki:

Re: [FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread Michael Koch
Am 01.11.2021 um 16:21 schrieb LianCheng Tan: Hi, Beside using textfile (reload=1) in drawtext for dynamic text, is there any other method to add dynamic texts onto the video stream? You could use subtitles. It's described in the wiki: https://trac.ffmpeg.org/wiki/WikiStart There are also

[FFmpeg-user] Alternative to Dynamic Text

2021-11-01 Thread LianCheng Tan
Hi, Beside using textfile (reload=1) in drawtext for dynamic text, is there any other method to add dynamic texts onto the video stream? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To