Bug 418030 - Reduced support for video playback on 5.14 runtime
Summary: Reduced support for video playback on 5.14 runtime
Status: RESOLVED NOT A BUG
Alias: None
Product: Qt/KDE Flatpak Runtime
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-22 12:43 UTC by Rinigus
Modified: 2020-02-26 22:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rinigus 2020-02-22 12:43:55 UTC
SUMMARY

When compared to 5.12, 5.14 with WebEngine BaseApp is able to playback less web -provided videos than before. Not sure whether its related to changes in runtime packaging upstream or some other changes. Reporting it here to, as I don't think its Angelfish issue.


STEPS TO REPRODUCE

1. Install Angelfish and other Flatpak packages. My current configuration on x86_64 has org.freedesktop.Platform.openh264 as an extension. That extension is not available on ARM. On 5.12, we used to have org.freedesktop.Platform.html5-codecs (x86 and arm), which doesn't seem to be available anymore.

2. On x86_64, videos seem to play, but are jumping back and forth during a playback. (see examples below)

3. On ARM 32 (Sailfish), I get no playback with the following errors

[79:147:0222/143109.039453:ERROR:render_media_log.cc(27)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"video decoder initialization failed"}
[79:79:0222/143109.041734:ERROR:render_media_log.cc(27)] MediaEvent: PIPELINE_ERROR DECODER_ERROR_NOT_SUPPORTED

EXAMPLE URLs

https://twitter.com/jumpersworld_/status/1230945836449849345
https://www.bbc.com/news/av/world-us-canada-51581309/us-election-2020-what-do-young-voters-want-in-nevada

All worked as it should in 5.12. ARM and x86_64 played videos well.

SOFTWARE/OS VERSIONS

Flatpak Platform: 5.14

x86_64 - Gentoo PC
ARM - Flatpak running on Sailfish OS (ARM32 bit on ARM64bit hardware)


ADDITIONAL INFORMATION

There is also org.freedesktop.Platform.ffmpeg-full which I don't know really how to use. Maybe that could help somehow?
Comment 1 Rinigus 2020-02-25 09:15:06 UTC
The issue is resolved on the application level. We have to include ffmpeg-full extension by adding 

```
    "add-extensions": {
        "org.freedesktop.Platform.ffmpeg-full": {
            "directory": "lib/ffmpeg",
            "add-ld-path": ".",
            "version": "19.08"
        }
    },
    "cleanup-commands": [
        "mkdir -p ${FLATPAK_DEST}/lib/ffmpeg"
    ],

```

to our Flatpak build files (adjust accordingly). When added, Angelfish was able to play the videos reported in the original issue.
Comment 2 Aleix Pol 2020-02-26 00:18:52 UTC
Adding this to the io.qt.qtwebengine.BaseApp would surely be a better fix, no?

Thanks for the investigation!
Comment 3 Rinigus 2020-02-26 21:49:42 UTC
Maybe it will be better. Then the apps wishing to use it would just have to inherit it from the base app, right?
Comment 4 Aleix Pol 2020-02-26 22:44:59 UTC
That's my assumption, yes. We do it in org.kde.Platform, I assume for BaseApps it works as well.