Skip to content

fix: check FFmpeg availability without sudo - #109

Open
sam0rr wants to merge 1 commit into
clefincode:developfrom
nysma-ca:fix_ffmpeg_installation
Open

sam0rr wants to merge 1 commit into
clefincode:developfrom
nysma-ca:fix_ffmpeg_installation

Conversation

@sam0rr

@sam0rr sam0rr commented Sep 14, 2026

Copy link
Copy Markdown

Installing Chat currently runs sudo apt, even when FFmpeg is already available. This assumes elevated privileges and an APT-based system, and can interrupt installation in production containers.

Check for the executable instead. If it is missing, print a warning asking the administrator to install it manually, then continue the remaining setup steps. System packages belong in server or image provisioning, using the appropriate package manager.

This follows the removal of runtime FFmpeg installation and the FFmpeg APT dependency declaration already in develop-marketplace. The dependency declaration installs FFmpeg on Frappe Cloud; other deployments supply it themselves.

Verified on Python 3.14.7 and Frappe 16.33.1 that missing FFmpeg prints the warning and all remaining setup steps complete. When FFmpeg is present, the check stays silent. Neither path invokes a subprocess.

@sam0rr sam0rr changed the title fix: remove runtime FFmpeg installation fix: check FFmpeg availability without sudo Sep 14, 2026
@sam0rr
sam0rr force-pushed the fix_ffmpeg_installation branch from 4e6e720 to 60fc255 Compare September 14, 2026 01:16
@sam0rr
sam0rr force-pushed the fix_ffmpeg_installation branch from 60fc255 to 645c5ab Compare September 14, 2026 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant