-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffmpeg segfault on concatenating m3u8 segments with ffmpeg version N-67181-g984d0b6e6f-static from pyffmpeg on Linux #20
Comments
Thanks a lot! v0.8.5 should come up shortly. |
Thank you, some of us aren't talented enough to do that so I will patiently wait for v0.8.5 |
Hey @FletcherD , how should we proceed with this issue? Didn't check whether there is a fixed build available - but even if there was and since this might probably happen again with a future build - maybe I should just make this configurable "use/prefer locally installed ffmpeg"? Or I would have to somehow detect a segfault and use the fallback? |
Personally I think we should always use the user's ffmpeg if they have it. The static build will almost always be less up to date. |
@FletcherD on my personal Windows machine I had the issue that an ImageMagick version also provides an older Therefore I was wondering about the potential danger of an old |
In that case, I'd say
I can look into some of it a bit later |
👍Yeah it started with getting and evaluating the version ... I at first didn't want to go down the rabbit of capturing output and parsing version info out of it ... Also don't know, can abnormal termination/segfault be detected by exit code? But take your time, let the dust settle and see whether v0.9.3 will now work stably with Fansly's security measures before making a considerable time investment. |
Are we set for testing 9.3? I got held up with something but I did get a new account ready. I'll do it tomorrow in am. |
Bug Description
When running on Linux, while attempting to concatenate m3u8 segments using the bundled static ffmpeg from pyffmpeg, ffmpeg segfaults behind the scenes, causing fansly-downloader-ng to display:
The ffmpeg command causing the segfault is something like:
/home/fletcher/.pyffmpeg/bin/ffmpeg -f concat -i /home/fletcher/fansly-downloader-ng/example_fansly/Timeline/Videos/_ffmpeg_concat_.ffc -c copy /home/fletcher/fansly-downloader-ng/example_fansly/Timeline/Videos/2024-01-30_at_05-51_id_123456789012345678.mp4
Which simply prints:
Segmentation fault (core dumped)
This appears to be an issue with the Linux static executable of ffmpeg that is bundled with pyffmpeg. Running the same command with a newer version of ffmpeg does not have the issue.
Therefore I have a workaround at #19 . With this fork ffmpeg.py will first check if the user already has an ffmpeg binary on the path, and if so, will use that binary rather than the one bundled with pyffmpeg. However this won't fix the issue for users who don't have ffmpeg installed, it seems we'll have to wait for the static build from https://johnvansickle.com/ffmpeg/ to be updated for that.
Environment Information
I have done the following:
The text was updated successfully, but these errors were encountered: