Bug 31383 - Falkon and possibly other qtwebengine apps cannot play video
Summary: Falkon and possibly other qtwebengine apps cannot play video
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-08 19:47 CET by M H
Modified: 2024-03-03 10:09 CET (History)
3 users (show)

See Also:
Source RPM: qtwebengine5-5.15.10-6.mga9.src.rpm, qtwebkit5-5.212.0-1.alpha4.14.mga9.src.rpm
CVE:
Status comment:


Attachments
spec (24.80 KB, text/x-rpm-spec)
2023-01-14 11:20 CET, M H
Details
patch gn args (1.33 KB, patch)
2023-01-14 11:21 CET, M H
Details | Diff
patch ffmpeg (7.44 KB, patch)
2023-01-14 11:22 CET, M H
Details | Diff

Description M H 2023-01-08 19:47:18 CET
Description of problem: Falkon browser is unable to play some video with error message 
ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"FFmpegDemuxer: no supported streams"}.

Qtwebengine5 version 5.15.8
Falkon 3.1.0

Steps to Reproduce:
1. Go to https://www.imdb.com/
2. Try to open any of the trailer videos.
3. Check the error in terminal
Comment 1 Lewis Smith 2023-01-10 21:16:15 CET
Trying with Falkon (my preferred browser) a video from your link, I got:
"This video cannot be played
(Error Code 224003)"
However, Firefox does show these things. Hope there.

Falkon has never been able to show BBC videos:
"The content doesn't seem to be working.
Please try again later"
In the past, Firefox could; but not since a long time now, just a blank frame.
One could always try Chromium-Browser from our repos, at the price of being uncomfortably close to Google.
Or try installing from https://vivaldi.com/download/ their 64-bit RPM.
And report back on either.

I fear this is just a situation we have to live with - unless you know that a different distribution's Falkon does show videos from your link (or BBC ones), which might give a clue about what we might be missing.

I long ago raised the BBC video problem as a bug with Falkon (KDE), but it is quiet up there. Very little information.

I cannot see any point in passing this bug on, since the same situation exists in Cauldron (Mageia 9 to come). I think! Will check when next there.
Although closing this 'wontfix', please take this as 'cannot fix'.

Resolution: (none) => WONTFIX
Status: NEW => RESOLVED
CC: (none) => lewyssmith
Keywords: (none) => UPSTREAM

Comment 2 Lewis Smith 2023-01-10 21:31:45 CET
Cauldron behaviour for both Falkon & Firefox is the same as noted above.
Comment 3 Morgan Leijström 2023-01-11 12:16:28 CET
I would contact BBC, they should care.
Dont they like SVT in Sweden have an obligation to make content easily useable for the citizens?
Without ties to manufacturers etc.

CC: (none) => fri

Comment 4 M H 2023-01-11 18:19:59 CET
Hello. Thank you for your message.

I confirm Mag9 Alpha has the same problem. I did not want to report a bug against development version.

I can further confirm both Firefox and Chromium do play the trailers in question.

This is not upstream bug. Falkon does play these trailer from imdb on Debian (tested) and probably other distributions. This issue is specific to Mageia way of building the package qtwebkit against system ffmpeg.

Please consider passing this problem to package maintainer. I am also willing to give a hand in tackling this issue if such help was desired. No free beers expected here ;-)

Resolution: WONTFIX => (none)
Status: RESOLVED => REOPENED

Comment 5 Morgan Leijström 2023-01-11 18:47:15 CET
Thank you for the additional info, and for the help offer
What kind of help help can you do - except for testing, do you know packaging?

CC registered packager, neoclust, for consideration.

Keywords: UPSTREAM => (none)
CC: (none) => mageia
Whiteboard: (none) => MGA8TOO
Version: 8 => Cauldron

Comment 6 M H 2023-01-11 20:00:30 CET
Yes, I know rpm packaging. I saw the spec file and there was some serious work done on it already. But I can try to build the package myself and maybe give specific idea what is causing the problem.
Comment 7 Morgan Leijström 2023-01-11 20:23:14 CET
That would be great.  Neoclust is maintaining a *lot* of packages already.

I suggest to start with mga9, and when that works backport the fixes.

If you feel for it, you are more than welcome to join packaging :)
https://wiki.mageia.org/en/Becoming_a_Mageia_Packager
Comment 8 Lewis Smith 2023-01-11 21:59:00 CET
(In reply to Morgan Leijström from comment #3)
> I would contact BBC, they should care.
You bet they should, they are so important. But contacting a behemoth...

(In reply to M H from comment #4)
> This is not upstream bug. Falkon does play these trailer from imdb on Debian
> (tested) and probably other distributions. This issue is specific to Mageia
> way of building the package qtwebkit against system ffmpeg.
Thank you for this important information and  pointer.

Changing the CC to Assigned for neoclust, recognising that he is burdened; but unusually this really is for him.
And M_H's offer of help comment 6 will be much appreicated, particularly if you can pin down the packaging changes you think necessary.

Assignee: bugsquad => mageia
Source RPM: qtwebengine5 => qtwebengine5-5.15.10-6.mga9.src.rpm, qtwebkit5-5.212.0-1.alpha4.14.mga9.src.rpm
CC: lewyssmith, mageia => (none)

Comment 9 M H 2023-01-14 11:19:50 CET
Hello. I am attaching changed spec file with minimum required changes. I am also attaching two new patches needed.

Now Falkon plays any video through ffmpeg except for DRM protected videos.
Comment 10 M H 2023-01-14 11:20:32 CET
Created attachment 13646 [details]
spec
Comment 11 M H 2023-01-14 11:21:54 CET
Created attachment 13647 [details]
patch gn args
Comment 12 M H 2023-01-14 11:22:21 CET
Created attachment 13648 [details]
patch ffmpeg
Comment 13 David GEIGER 2023-01-18 17:03:19 CET
Done M H proposal fix in qtwebengine5-5.15.10-7.mga9!

CC: (none) => geiger.david68210

Comment 14 M H 2023-01-21 10:15:38 CET
Hello David. Thank you for picking this up. I confirm this bug is fixed and closing this report.

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED

Comment 15 Morgan Leijström 2023-01-21 12:51:23 CET
@ M H, please note this bug had MGA8TOO flag set, which means that after cauldron is fixed, mga8 is to be fixed too.

On mga8, Falcon can not play for example
https://www.imdb.com/video/vi2026489113/?listId=ls053181649&ref_=hm_hp_i_hero-video-3_3

Reopening, leaving to others to decide if to be fixed or wontfix for mga8.

Version: Cauldron => 8
Whiteboard: MGA8TOO => (none)
Resolution: FIXED => (none)
Status: RESOLVED => REOPENED

Comment 16 Dave Hodgins 2023-01-21 21:09:26 CET
It should be fixed for Mageia 8 too.

CC: (none) => davidwhodgins

Comment 17 David GEIGER 2023-01-23 17:38:52 CET
So now fixed in  qtwebengine5-5.15.8-1.1.mga8 in Core/Updates_testing repo!
Comment 18 Morgan Leijström 2023-01-24 02:48:06 CET
Sorry, no joy here.

Updated 

$ rpm -qa | grep qtwebengine5
qtwebengine5-5.15.8-1.1.mga8

and rebooted.


$ falkon
QWebEngineUrlScheme::registerScheme: Too late to register scheme "falkon"
QWebEngineUrlScheme::registerScheme: Too late to register scheme "extension"
Please register the custom scheme 'falkon' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'extension' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Cannot initialize model with data QJsonObject() . missing: QJsonValue(string, "urls")
Please register the custom scheme 'webdavs' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'pnm' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'fonts' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'mtp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.

- snipped 40 or so similar lines here -

Please register the custom scheme 'ar' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'metainfo' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Please register the custom scheme 'obexftp' via QWebEngineUrlScheme::registerScheme() before installing the custom scheme handler.
Falkon: 2 extensions loaded

- at this point clicked the video in https://www.imdb.com/video/vi2026489113/?listId=ls053181649&ref_=hm_hp_i_hero-video-3_3 -

[18577:20:0124/024126.162071:ERROR:batching_media_log.cc(38)] MediaEvent: {"error":"FFmpegDemuxer: no supported streams"}
[18577:1:0124/024126.186955:ERROR:batching_media_log.cc(35)] MediaEvent: {"pipeline_error":14}

the two lines repeated four times more

In video still picture, falcon show

  This video file cannot be played.
  (Error Code: 224003)

Keywords: (none) => feedback

Comment 19 Dave Hodgins 2023-01-24 03:40:03 CET
falkon https://www.imdb.com/video/vi2026489113/?listId=ls053181649&ref_=hm_hp_i_hero-video-3_3
is working for me with the following packages installed ...
falkon-3.1.0-6.mga8
falkon-core-3.1.0-6.mga8
falkon-kde-3.1.0-6.mga8
falkon-plugins-3.1.0-6.mga8
lib64falkonprivate3-3.1.0-6.mga8
lib64qt5pdf5-5.15.8-1.1.mga8
lib64qt5webengine5-5.15.8-1.1.mga8
lib64qt5webenginecore5-5.15.8-1.1.mga8
lib64qt5webenginewidgets5-5.15.8-1.1.mga8
qtwebengine5-5.15.8-1.1.mga8

Testing in Mageia 8 x86_64 running kde plasma.

Running from konsole, I do get a screenfull of messages about registering the
custom scheme, and ssl errors, but the video plays ok.

Note the update must be assigned to qa before it can be validated.
Comment 20 Dave Hodgins 2023-01-24 03:41:17 CET
The full list of rpm packages from the srpm are
lib64qt5pdf5
lib64qt5pdfwidgets5
lib64qt5webengine5
lib64qt5webenginecore5
lib64qt5webengine-devel
lib64qt5webenginewidgets5
libqt5pdf5
libqt5pdfwidgets5
libqt5webengine5
libqt5webenginecore5
libqt5webengine-devel
libqt5webenginewidgets5
qtwebengine5-doc
qtwebengine5
Comment 21 Dave Hodgins 2023-01-24 03:46:19 CET
Package list from qtwebengine5 suitable for use in qarepo ...

lib64qt5pdf5-5.15.8-1.1.mga8
lib64qt5pdfwidgets5-5.15.8-1.1.mga8
lib64qt5webengine5-5.15.8-1.1.mga8
lib64qt5webenginecore5-5.15.8-1.1.mga8
lib64qt5webenginewidgets5-5.15.8-1.1.mga8
lib64qt5webengine-devel-5.15.8-1.1.mga8
qtwebengine5-5.15.8-1.1.mga8
qtwebengine5-doc-5.15.8-1.1.mga8
Comment 22 Morgan Leijström 2023-01-24 07:36:01 CET
Ah.. thats better :)

Still the massive output before "Falkon: 2 extensions loaded" as in comment 18 but thats obviously not the problem of this bug. 

OK, we need some advisory.

Whiteboard: (none) => MGA8-64-OK
Keywords: feedback => (none)

Comment 23 Dave Hodgins 2023-01-24 07:47:15 CET
Did you install some of the packages from comment 21?
If so, they need to be added as requires for the falkon package.

Removing the ok until that's sorted.

Whiteboard: MGA8-64-OK => (none)

Comment 24 Morgan Leijström 2023-01-24 08:14:14 CET
I updated the ones of which I had installed in elder versions:

$ rpm -qa | grep 5-5.15.8-1.1
lib64qt5webenginecore5-5.15.8-1.1.mga8
qtwebengine5-5.15.8-1.1.mga8
lib64qt5webengine5-5.15.8-1.1.mga8
lib64qt5pdf5-5.15.8-1.1.mga8
lib64qt5webenginewidgets5-5.15.8-1.1.mga8


BTW, where is the urpmi log nowadays?
Comment 25 Dave Hodgins 2023-01-24 09:26:10 CET
Use "journalctl -b --no-h|grep '\[RPM\]'" to see what you've installed when
to fix the issue as indicated by comment 22.
Comment 26 Morgan Leijström 2023-01-25 14:08:21 CET
Thanks, yes I was looking in the journal...but...
 "journalctl -b --no-h|grep '\[RPM\]'" works on all my mga8 and the testing mga9 - except on my workstation where I tested the update above. Package handling do not get logged on that system.  Weird.

Tested the update now also on my old laptop Dell precision M6300, and the video plays with only the following updates:

- lib64qt5webengine5-5.15.8-1.1.mga8.x86_64
- lib64qt5webenginecore5-5.15.8-1.1.mga8.x86_64
- lib64qt5webenginewidgets5-5.15.8-1.1.mga8.x86_64
- qtwebengine5-5.15.8-1.1.mga8.x86_64

However, sound is terrible, like an intermittent machine gun - my parrot was sitting on my shoulder and now I have parrot poo on my sweater...

Same sound problem playing content from svtplay.se and sverigesradio.se (radio), but not from youtube.

I downgraded the packages, and radio sound is OK, youtube still work, but none of the other three video sites play.

This bug is not about Falkon, open another bug if you wish to sort Falkon deps.
One thing i can see is that at start it complains KDEFrameworksIntegration.so is not found, it is in package falkon-kde, but i think it sould only get installed if user use KDE Plasma.

Anyway, i installed falkon-kde, and updates again, plus lib64qt5pdf5 so all like my workstation where falcon can play the videos.  But stil on this laptop sound is terrible.
Comment 27 Dave Hodgins 2023-01-25 21:47:36 CET
(In reply to Morgan Leijström from comment #26)
> Thanks, yes I was looking in the journal...but...
>  "journalctl -b --no-h|grep '\[RPM\]'" works on all my mga8 and the testing
> mga9 - except on my workstation where I tested the update above. Package
> handling do not get logged on that system.  Weird.

The -b limits the search to entries from the current boot. If the system
has been rebooted once use -b -1 instead, or remove the -b to search the
entire available journal.
Comment 28 Morgan Leijström 2023-01-25 22:32:10 CET
Even when I install in current boot and then check there is no hit.
And when I on that system omit -b there is no hit.
Lets leave it here. I may ask in qa list when I have time to dig into it.
Comment 29 David GEIGER 2024-03-03 10:09:35 CET
mga8 is EOL!

Status: REOPENED => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.