kiwix / kiwix-desktop

Kiwix for Windows and GNU/Linux desktops
https://download.kiwix.org/release/kiwix-desktop/
GNU General Public License v3.0
750 stars 99 forks source link

Black screen on videos #39

Closed HHHLucho closed 5 years ago

HHHLucho commented 6 years ago

The videos contained in certains ZIM files do not play, black screen instead, in some version sounds works with black screen : -Windows 7 Ultimate 64 bits with kiwix 0.9, no sound no videos -Windows 7 ultimate 64 bits with kiwix 2.0 alpha, sound but still no video -Edubuntu 14 no sound no videos -edubuntu in kiwix-serve works fine

zim file 'c'est pas sorcier'

hope I gave enough details to solve that issue

kelson42 commented 6 years ago

OK, so we support only Kiwix Desktop 2.0 here. So the problem is no video with Kiwix 2.0 alpha3 on Ubuntu and Edubuntu with https://download.kiwix.org/zim/other/cest-pas-sorcier_fr_all_2018-06.zim

kelson42 commented 6 years ago

@HHHLucho On Ubuntu, if you start Kiwix Desktop 2.0 alpha from the command line, do you see any error messages appearing on the terminal?

kelson42 commented 6 years ago

I can not reproduce the pb on my Ubuntu 18.04, but I have the same problem on my Windows 10.

edusup commented 5 years ago

I have tested under Win10 different ZIM Files with Videos. On all the same Problem (Sound ok, but black Videowindows). Have tested with different players (VLC,Quicktime...) but no difference. Used the kiwix-desktop_windows_x64_2.0-alpha3

kelson42 commented 5 years ago

@edusup It is not a right problem and it should work out-of-the-box. It is quite clear that something goes wrong in the decoding, but so far, this is not clear what.

HHHLucho commented 5 years ago

tried on a brand new install of win 10 pro 1803 version, and the beta 2, still no videos

Bam92 commented 5 years ago

Still no solution?

What is really wrong, zim file or Kiwix?

mgautierfr commented 5 years ago

I've just tried with today daily build (2019-01-29) and TEDxLausanne2012 and everything seems to work. I can read video, no black screen and I've got sound.

I'm using a virtual windows 10.

mgautierfr commented 5 years ago

I've got black screen (but sound) with wikimooc2

kelson42 commented 5 years ago

@mgautierfr On iOS/macOS we don't have the support of webm, only x264. Might be that with Qt browser engine we have a problem with x264? Do you confirm? on Windows? on Linux?

mgautierfr commented 5 years ago

It seems it is indeed a codec problem. And there is no easy solution here.

We may be able to have it but we will need to recompile QtWebEngine ourselves with the right compilation options (https://doc.qt.io/qt-5/qtwebengine-features.html#audio-and-video-codecs) But, as said in the linked doc, we will have to acquire licenses to be able to distribute the proprietary codec libraries. On the other side, iOS/macOS only support x264.

One solution would be to have two different video codecs for each video in a zim file. This way, the browser may choose the codec it can read. But it will double the size of the video, it is difficultly doable.

But, in any case, we CANNOT guaranty that any video we provide in a zim will be readable on all device. It simply because codecs to use have not be standardized. https://caniuse.com/#feat=mpeg4 https://caniuse.com/#feat=webm https://caniuse.com/#feat=ogv

Bam92 commented 5 years ago

What is the version of Kiwix is running here? Because Wikimooc2 is running well.

mgautierfr commented 5 years ago

This is kiwix-server. It serves the files (the video files) without decoding it, and it is your browser that read and decode it (and so need the codec). You probably have a browser compiled/distributed with support of h264.

Bam92 commented 5 years ago

Ok.

I'd like to build my own wikimooc2 zim. I want to test different format of videos. I'm sure that wikimooc zim was built from .webm videos. May be build it from other format and see the output?

But I fail to build it. zimwriterfs documentation only explains how to build html. Is there a link for videos or another tool?

ps: I tried with Kiwix 0.9 this is the error I get: wikimooc2-on-kiwix-0 9

kelson42 commented 5 years ago

This is code problem (H264). We have stop generating this kind of files and new ZIM files should work. See for example https://download.kiwix.org/zim/other/mali-pour-les-nuls_fr_all_2019-09.zim.