Skip to content

Add decoder plugin #454

@allbabel

Description

@allbabel

I would like to add a third party hardware decoder but I can't include the code under the constraints of the LGPL licence of QtAV. Is there a way to include a decoder plugin for QtAV? If so, how do I go about creating the plugin?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Activity

added this to the 1.7 milestone on May 28, 2015
self-assigned this
on May 28, 2015
wang-bin

wang-bin commented on May 28, 2015

@wang-bin
Owner

I have thought about it. There are some choices:

  1. Use standard c++ without linking to Qt and QtAV. Build once and use everywhere.
  2. Use Qt plugin interface. One advantage is Qt5 can parse plugin information (for example elf header) very fast without loading the plugin. But you have to rebuild your plugin for different versions of Qt.
  3. Use QtAV types.

Then I can add a wrapper class like PluginVideoDecoder

There are some problems, for example, how to convert pixel format type between plugin and QtAV.

  1. move pixel format enum to a standalone header (another license?) and used by both QtAV and plugin.
  2. use pixel format enum (or it's int value) defined in ffmpeg. I think ffmpeg types are stable enough and the values will not change for a long time.

BTW, what's your decoder license?

modified the milestones: 1.8, 1.7 on Jun 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @wang-bin@allbabel

      Issue actions

        Add decoder plugin · Issue #454 · wang-bin/QtAV