this post was submitted on 31 Aug 2025
12 points (100.0% liked)

Linux

57991 readers
750 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

flatpak should be newer than apt, correct if wrong.

I first installed FFmpeg extension with extra codecs from flatpak, executed a ffmpeg command that returned: command not found.

I then thought the flatpak package, as the name states, is an extension that needs the apt version to be installed to work, so I executed sudo apt install ffmpeg and after downloading, the command worked.

Should I get rid of flatpak's ffmpeg? Am I gaining functions with this package?

ffmpeg -version returns ffmpeg version 7.1.1-1+b1 Copyright (c) 2000-2025 the FFmpeg developers built with gcc 14 (Debian 14.2.0-19)

you are viewing a single comment's thread
view the rest of the comments
[–] that_leaflet@lemmy.world 11 points 1 week ago* (last edited 1 week ago) (1 children)

The ffmpeg from Flathub is a "runtime" package, intended to be used by other flatpak apps. It's not meant for CLI use.

Flatpak apps are not added to your $PATH. They're run with flatpak run appID. Though again, ffmpeg is not an app so it cannot be run this way. Though technically you could use it for CLI use by doing something like flatpak run --command=sh org.mozilla.firefox. This will open a shell inside the flatpak environment, which can use the ffmpeg flatpak runtime.

Though now that I think about it, it would be fun to create my own flatpak package for ffmpeg for CLI use. Should be pretty simple, it would just be a mostly empty package that relies on the ffmpeg-full flatpak runtime. Edit: and I did

Screenshot of my ffmpeg flatpak

The manifest is simply

id: my.custom.ffmpeg
runtime: org.freedesktop.Platform
runtime-version: '24.08'
sdk: org.freedesktop.Sdk
add-extensions:
  org.freedesktop.Platform.ffmpeg-full:
    directory: lib/ffmpeg
    version: '24.08'
    add-ld-path: .
command: ffmpeg
modules:
  - name: ffmpeg-wrapper
    buildsystem: simple
    build-commands:
      - mkdir -p /app/lib/ffmpeg
      - install -Dm755 ffmpeg.sh /app/bin/ffmpeg
    sources:
      - type: script
        dest-filename: ffmpeg.sh
        commands:
          - /usr/bin/ffmpeg "$@"
finish-args:
    - --filesystem=host
[–] arsus5478@lemmy.ml 1 points 3 days ago

holy crap you're fast