The FFmpeg SDK stage snaps

These stage snaps let you compile your application against FFmpeg libraries.

NOTE

These snaps are still in development, their presentation, usage, and shipping content may change without notice.

Variants

SDK stage snaps are named with ffmpeg-sdk-_variant_name_, where _variant_name_ is one of the following:

lgpl

The linked product will become LGPL if it is statically linked against FFmpeg libraries.

gplv2

The linked product will become GPLv2 if it is linked against FFmpeg libraries.

gplv3

The linked product will become GPLv3 if it is linked against FFmpeg libraries.

How to use

Add the following part definition to your snap’s Snapcraft YAML:

parts:
  ffmpeg:
    plugin: nil
    stage-snaps:
    - ffmpeg-sdk-_variant_

, add the ffmpeg part to your consuming parts’ after stanza:

parts:
  _consumer_part_name_:
    after:
    - ffmpeg

, then copy & paste the entire stage-packages stanza from the corresponding snapcraft source recipe to the ffmpeg part:

parts:
  ffmpeg:
    plugin: nil
    stage-snaps:
    - ffmpeg-sdk-_variant_
    stage-packages:
    - ...

, then merge the following fileset rules and prime rules so that only the required files will be placed into the snap:

    filesets:
      library-shared:
      - '**/lib/**/*.so*'

    prime:
    - $library-shared
1 Like