Skip to content

Policy question: OpenTubeX downloads managed yt-dlp and FFmpeg binaries at runtime #274

Closed

Description

@D3SOX

I am preparing a FlatPark submission for
org.opentubex.OpenTubeX.

Before opening the packaging PR, I would like confirmation about OpenTubeX's
managed external-tool behavior and FlatPark's runtime fetch-and-execute policy.

The package would use the official OpenTubeX portable ZIP unchanged as pinned
extra-data. It has no host filesystem permission. I have built, installed,
and tested the package locally on KDE Plasma Wayland.

Runtime behavior

OpenTubeX has a built-in playback engine, which is the default and works without
yt-dlp or FFmpeg. It also supports yt-dlp-based playback and media downloads.

The upstream application manages these external tools itself:

  • yt-dlp comes from the official yt-dlp GitHub release repositories. Stable is
    the default, with nightly and master channels available.
  • On Linux, FFmpeg and FFprobe come from
    https://ffmpeg.martin-riedl.de/redirect/latest/....
  • The application stores all three executables under its Electron user-data
    directory. In Flatpak, this remains inside
    ~/.var/app/org.opentubex.OpenTubeX/.
  • The packaging does not patch or add this behavior.
  • There is no shell pipeline or host execution involved. OpenTubeX downloads the
    files with Electron, extracts or writes them, marks them executable, and
    checks that they run.
  • The downloads use mutable latest URLs and HTTP validators for updates. They
    are not pinned by SHA-256 or verified with signatures.

The relevant upstream code is here:

Because the Flatpak runtime does not contain these tools and the upstream default
update mode is automatic, OpenTubeX downloads managed copies on first launch.
This happens even though its default built-in playback engine can work without
them.

Policy question

Would this be accepted as unmodified upstream behavior, given that the tools
stay in the application's private data directory and are not required for its
default playback engine?

The part that seems unclear under the current policy is that OpenTubeX performs
the download itself, but the executed files come from third parties and use
mutable URLs. In particular, the FFmpeg builds do not come from OpenTubeX or the
FFmpeg project's own release channel.

If this cannot be accepted as-is, would FlatPark prefer one of these approaches?

  1. Ship pinned yt-dlp, FFmpeg, and FFprobe copies as supporting modules in the
    Flatpak manifest.
  2. Wait for upstream to add cryptographic verification or make the first
    download explicitly opt-in.
  3. Treat the application as unsuitable for FlatPark under the current policy.

I would rather settle this before submitting an otherwise complete packaging PR.

Activity

  1. jing2uo commented on Aug 28, 2026

    @jing2uo
    Collaborator

    Thanks for laying this out so clearly.

    Our suggestion would be to follow me.tyrrrz.YoutubeDownloader: ship yt-dlp, FFmpeg and FFprobe as pinned extra-data (sha256 + size), staged into the directory OpenTubeX probes, and default the tool-update mode to manual so nothing is fetched on first run. For FFmpeg, a canonical static build is preferable to the martin-riedl.de redistribution. This gives every executed byte verifiable provenance and takes the first-launch network dependency off the table.

    Our runtime fetch-and-exec rule exists mainly to stop a packager who doesn't own an app from substituting the upstream developer's binaries or dependencies. You maintain this fork, so that concern doesn't really apply here — how OpenTubeX manages its own tools is your decision, and we're not asking you to change the application's behavior to publish here. If you'd rather keep the managed download as-is, that's fine; just document the first-run download in the metainfo description so users know what to expect.

    Open the packaging PR whenever you're ready.

  2. jing2uo commented on Aug 28, 2026

    @jing2uo
    Collaborator

    To be explicit: as the app's maintainer you also get to decide what the Flatpak manifests here do over time. If you'd like to ship it as-is now and send a follow-up PR to switch to pinned tools later, that's fine — and it's equally fine to leave it as-is indefinitely.

  3. D3SOX commented on Aug 28, 2026

    @D3SOX
    ContributorAuthor

    Thanks for clarifying. I'll ship the first FlatPark version with OpenTubeX's existing managed downloads unchanged. The first-launch behavior is documented in the AppStream description.

    The packaging PR is now open as #275.

    I'll likely follow up with pinned yt-dlp, FFmpeg and FFprobe packages soon, once I've settled the update flow and canonical FFmpeg source. Keeping that separate makes the initial listing simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions