06:46
I’m encountering an issue where executing an ffmpeg concatenation command through Rust’s Tokio process in a Docker container causes subsequent HTTP requests to fail. The error occurs exclusively after running the ffmpeg command and making immediate requests, resulting in a “curl 52 empty response from server” error with the connection being closed. Notably, this issue does not occur when running the same setup outside of Docker. Additionally, if no HTTP requests are made after the ffmpeg command, the curl 52 error does not occur.
Here is the verbose curl output of my minimum reproducible (...)
05:47
I am designing a video editor bot for Telegram. I want to use ffmpeg
and I need a text to be placed on the video and change the place of
the text randomly every few seconds.
[This has an example on the site itself.][1]
used the following command:
"/home/editor/downloads/video_2023-07-10_17-53-05_7375753324605210932.mp4"
-filter:v drawtext="fontsize=30:fontfile=/usr/share/hellotext=hellotext/share/World':
x=if(eq(mod(t\\,30)\\,0)\\,rand(0\\,(w-text_w))\\,x):y=if(eq(mod (t\\,30
)\\, 0)\\,rand(0\\,(h-text_h))\\,y)" -codec:v libx264 -codec:a copy
-preset (...)