Choose style:

Author Topic: Some videos not playing on Opera and Chromium (SOLVED)  (Read 1269 times)

0 Members and 1 Guest are viewing this topic.

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera and Chromium
« Reply #15 on: October 29, 2019, 05:16:00 am »
Hi VinDSL and PCNetSpec,


I understand the split-up of the thread; I tried to limit the amount of topics, the more as my subject matched exactly this thread, but I also recognize the dilemma you described: sorry for the inconvenience! :o


Opera and Chromium cannot play the videos that are concerned; sometimes it was possible in Chromium, because of having downloaded Google Chrome and profiting of its codecs/plugins/or-whatever, but most time, definitely when installing standalone, Chromium is not able to play these videos at all!


I mentioned already a site/link with those videos, but I will repeat it here: https://www.npostart.nl/live/npo-1. For playing it is absolutely NOT necessary to login. So that is not an issue here. This can be checked by playing in Google Chrome, Firefox (with DRM enabled) or Vivaldi: it will succeed.


PCNetSpec, you are the last hope, as it turns out to be! 8)  Hopefully you will succeed in resolving this issue!
« Last Edit: October 30, 2019, 03:36:54 am by paulus »

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2131
  • Karma: 395
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: Some videos not playing on Opera
« Reply #16 on: October 29, 2019, 08:27:04 am »
How well does Opera manage with the videos on this page?

https://tekeye.uk/html/html5-video-test-page

I think the answer could lie in something like this:

Quote
You will have to download the version of chromium-codecs-ffmpeg-extra that matches the version of chrome that opera uses -- this can be seen in your user-agent or on the 'Help->About Opera' page

https://forums.opera.com/post/177240

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #17 on: October 29, 2019, 11:47:24 am »
What's the output from:
Code: [Select]
locate libwidevinecdm.so
and
Code: [Select]
locate libffmpeg.so
and
Code: [Select]
cat /usr/lib/x86_64-linux-gnu/opera/resources/widevine_config.json
and if you go here:
https://bitmovin.com/demos/drm
does it say above the video "Detected O using No DRM" .. and "Click to enable Adobe Flash Player" in the video window (but clicking it makes no difference) ?



Link for my future reference:
https://forums.opera.com/topic/28663/widevine-and-opera



[EDIT]

If you're using 64bit Peppermint, try this...
(if you're using 32bit Peppermint, stop now and let me know)

Run these commands in sequence:
Code: [Select]
cd /usr/lib/x86_64-linux-gnu/opera
then
Code: [Select]
sudo mv -v libffmpeg.so libffmpeg.so.original
then
Code: [Select]
sudo wget https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.41.3/0.41.3-linux-x64.zip
then
Code: [Select]
sudo unzip 0.41.3-linux-x64.zip
Now close ALL running instances of Opera (to unload the old libffmpeg.so)  .. now reopen Opera, and test your video.

That should fix the FFMPEG issue and should make MOST videos work but it doesn't add DRM support (widevine), to fix widevine support I'll need the output from the 2 'locate' commands at the top of this post.

The video here:
https://bitmovin.com/demos/drm
should now also work (no longer asking for the Adobe Flash Player) .. but still report "Detected O using No DRM"
« Last Edit: October 29, 2019, 12:25:54 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #18 on: October 29, 2019, 06:32:11 pm »
PCNetSpec,


Many thanks!


The output:
Code: [Select]
paul@paul-peppermint10 ~ $ locate libwidevinecdm.so
/home/paul/.mozilla/firefox/gitk4jxj.default-release/gmp-widevinecdm/4.10.1440.19/libwidevinecdm.so
/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so
/opt/slimjet/libwidevinecdm.so
paul@paul-peppermint10 ~ $ locate libffmpeg.so
/home/paul/Downloads/libffmpeg.so
/opt/slimjet/libffmpeg.so
/usr/lib/chromium-browser/libffmpeg.so
/usr/lib/x86_64-linux-gnu/libffmpeg.so
/usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
paul@paul-peppermint10 ~ $ cat /usr/lib/x86_64-linux-gnu/opera/resources/widevine_config.json
[
   {
      "preload" : "/opt/google/chrome/libwidevinecdm.so"
   },
   {
      "preload" : "/opt/google/chrome-beta/libwidevinecdm.so"
   },
   {
      "preload" : "/opt/google/chrome-unstable/libwidevinecdm.so"
   }
]

The bitmovin.com-link: it indead says: "Detected O using No DRM", and after click on start the video plays.


What you described in steps I already did, but to be sure I repeated these steps one by one, but that made no difference. Also the video of bitmovin.com plays, as before, and still gives the same message: "Detected O using No DRM". But the videos of https://www.npostart.nl/live/npo-1 don't play. also as before. So I think that widevine support is still not present, and has to be fixed.

Maybe on the way you also discover why those videos don't play in Chromium either: that would be great, because that browser is also very lightweight and a good backup/alternative for Opera.
Again: thank you for your help! 8)

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #19 on: October 29, 2019, 06:35:32 pm »
How well does Opera manage with the videos on this page?

https://tekeye.uk/html/html5-video-test-page

I think the answer could lie in something like this:

Quote
You will have to download the version of chromium-codecs-ffmpeg-extra that matches the version of chrome that opera uses -- this can be seen in your user-agent or on the 'Help->About Opera' page

https://forums.opera.com/post/177240


Murraymint,


All eight videos pass the test! So they all play well!


Thank you for helping to find a solution! 8)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #20 on: October 29, 2019, 06:39:34 pm »
Run:
Code: [Select]
gksudo xed /usr/lib/x86_64-linux-gnu/opera/resources/widevine_config.json
and make it read
Code: [Select]
[
   {
      "preload" : "/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"
   },
   {
      "preload" : "/opt/google/chrome/libwidevinecdm.so"
   },
   {
      "preload" : "/opt/google/chrome-beta/libwidevinecdm.so"
   },
   {
      "preload" : "/opt/google/chrome-unstable/libwidevinecdm.so"
   }
]
SAVE the file and close the text editor.

Close ALL running instances of Opera   <-- this is IMPORTANT

Reopen Opera and go to
https://bitmovin.com/demos/drm
it should now say "Detected O using widevine" .. and clicking the video should make it play without error.

also, go here:
https://shaka-player-demo.appspot.com/
and see if the film "Sintel" will play, because that's widevine DRM protected ?



And caan you check running
Code: [Select]
md5sum /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
returns an md5 hash of:-

515ba4820b1d0c61ab65288a405c9f07  /usr/lib/x86_64-linux-gnu/opera/libffmpeg.so
« Last Edit: October 29, 2019, 06:57:39 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #21 on: October 29, 2019, 06:56:00 pm »
Awesome! You did it again: it works!!! 8)


So great that this works: thank you very much: to me it almost like magic! :P


I have two questions: what to do after an update of Opera? Could I just repeat the rewriting of widevine_config.json? Would that be enough, or do you recommend to just not update Opera?


The other question: I noticed that Chromium did not profit of this: is this "trick" also possible for Chromium? If yes: how could that be done?


But I am already very grateful for this fine result! :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #22 on: October 29, 2019, 06:59:11 pm »
As long as you have an up to date version of Chrome installed, the libffmpeg.so version is correct, and the widevine_config.json file reads as above, things should work :)

Though after an Opera update you'll probably need to rewrite the edit to widevine_config.json .. and possibly replace libffmpeg.so again.
« Last Edit: October 29, 2019, 07:02:39 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #23 on: October 29, 2019, 07:06:11 pm »
Great!


And what about Chromium? Is that also possible? I didn't find a folder of chromium under /usr/lib/x86_64-linux-gnu/; where and how to do that? I think, at least for me, it was the very reason to look for another browser, and I ended up with Opera, but Chromium, as totally OS, is a far better alternative compared with Google Chrome! For many it would be a way-out to use Google Chrome, and finally be possible to use Chromium instead, for the final hurdle would have been taken.


If that is too much now, I totally understand. But if this is just a piece of cake, it would be also fine to know how to do that. ;)
« Last Edit: October 29, 2019, 07:16:00 pm by paulus »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #24 on: October 29, 2019, 07:26:22 pm »
For Chromium, try this
Code: [Select]
cd /usr/lib/chromium-browser
then
Code: [Select]
sudo mv -v libffmpeg.so libffmpeg.so.original
then
Code: [Select]
sudo wget https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases/download/0.41.3/0.41.3-linux-x64.zip
then
Code: [Select]
sudo unzip 0.41.3-linux-x64.zip
then
Code: [Select]
sudo cp -v /opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so /usr/lib/chromium-browser/libwidevinecdm.so
then close ALL running instances of Chromium

reopen Chromium

test at:
https://bitmovin.com/demos/drm
it should now say "Detected <chromium symbol> using widevine" .. and clicking the video should make it play without error.

also, go here:
https://shaka-player-demo.appspot.com/
and see if the film "Sintel" will play, because that's widevine DRM protected ?



Basically you just need the latest version of libffmpeg.so from here
https://github.com/iteufel/nwjs-ffmpeg-prebuilt/releases
and the Chrome version of libwidevinecdm.so both in /usr/lib/chromium-browser
« Last Edit: October 29, 2019, 07:34:29 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #25 on: October 29, 2019, 07:35:01 pm »
Bitmovin-link says: "Detected Chrome, using No DRM". But is still plays the movie.
Sintel-movie is not available, so cannot be played.


So there is NO DRM.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #26 on: October 29, 2019, 07:37:44 pm »
Okay it's working for me .. but it's highly likely I may have made some other changes previously (and forgotten about them).

I'll test it on another machine tomorrow and get back to you.

Off to bed now.
« Last Edit: October 29, 2019, 07:41:36 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera
« Reply #27 on: October 29, 2019, 07:44:32 pm »
I totally agree: it's about time...! 8)


And great that you will get back to me: I highly appreciate it! 8)


"CU" tomorrow!

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera and Chromium
« Reply #28 on: October 30, 2019, 05:17:10 pm »
Okay tested on another PC and it worked perfectly in Chromium there too :-\

What's the output from:
Code: [Select]
md5sum /usr/lib/chromium-browser/libffmpeg.so
and
Code: [Select]
md5sum /usr/lib/chromium-browser/libwidevinecdm.so


Here's what I'm expecting
515ba4820b1d0c61ab65288a405c9f07  /usr/lib/chromium-browser/libffmpeg.so
8cae0f578299f67165b2da4600298ded  /usr/lib/chromium-browser/libwidevinecdm.so
« Last Edit: October 30, 2019, 05:20:20 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline paulus

  • Member
  • ***
  • Posts: 194
  • Karma: 4
  • New Forum User
    • View Profile
  • Peppermint version(s): Peppermint 10
Re: Some videos not playing on Opera and Chromium
« Reply #29 on: October 30, 2019, 05:23:13 pm »
I could have copied it, but that is not necessary: exact match, both md5sums!
« Last Edit: October 30, 2019, 05:27:30 pm by paulus »