question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Race condition: We had to kill ffmpeg to stop it.

See original GitHub issue

I’m trying to encode several mp4s at a time, and all of the larger ones give me the message We had to kill ffmpeg to stop it. Most of the files for which this message is printed are corrupted. Looking at the code, there appears to be a race condition in there where it only gives ffmpeg 2.5s to clean up. Is this needed? Or is there a way to disable that?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:39 (17 by maintainers)

github_iconTop GitHub Comments

4reactions
almarkleincommented, Apr 12, 2019

A new release is now available on Pypi.

3reactions
TinyTheBrontosauruscommented, Apr 10, 2019

agreed.

I re-posted because someone requested a workaround, which typically aren’t long-term solutions. This can be added without waiting for a PR to get approved, merged, released and posted.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Killing python ffmpeg subprocess breaks cli output
I have the same problem. I can't get a running FFmpeg to terminate gracefully from a python subprocess, so I am using <process>.kill()...
Read more >
How can I stop FFMPEG? - linux - Server Fault
On Linux, you can use sudo killall ffmpeg to kill every process called "ffmpeg" or ps -ef | grep ffmpeg to get the...
Read more >
[Ffmpeg-devel-irc] ffmpeg-devel.log.20170329
There will be a race condition [00:59:57 CEST] <ubitux> * inside the slice decode function to set these, but we do not care....
Read more >
Search Results - CVE
A race condition exists in Eternal Terminal prior to version 6.2. 0 that allows an authenticated attacker to hijack other users' SSH authorization...
Read more >
avconv and ffmpeg keep crashing on segmentation fault ...
For your diagnose, you might consider if it is racing condition of the speed of writing in the hard disk, and also taking...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found