omega-gg / MotionBox

Video Browser for Motion Freedom
http://omega.gg/MotionBox
GNU General Public License v3.0
116 stars 14 forks source link

cannot start video, only audio #19

Closed hrotkogabor closed 4 years ago

hrotkogabor commented 4 years ago

I am using motionbox 1.6.0.4-3 on manjaro from AUR. My problem is that I cannot start any video. The cover is displayed, but when I click the play, it will try to start, but then stop. If I switch to audio only, it will play the audio fine. I made an strace output of this. motionboxStrace.txt

3unjee commented 4 years ago

@hrotkogabor Oh, can you confirm it does that on every backend or just Youtube ? Also is it every video or just a few ?

hrotkogabor commented 4 years ago

I just tested it with more videos, and the result is the same. With dailymotion it is the same. With Vimeo and Bittorent, the video is playing without video, only sound. Is there any way to debug it further?

3unjee commented 4 years ago

That's probably an issue on the rendering side. When playing the video do you see a black screen?

hrotkogabor commented 4 years ago

yes, this is black

3unjee commented 4 years ago

Well I would have to test it on Manjaro, currently the build is tested with Ubuntu and native ArchLinux.

If you have any knowledge in programming you could try to build the latest version of MotionBox and investigate the rendering part. Have you got another distribution to test on?

3unjee commented 4 years ago

Have you tried to switch from video to audio in the settings panel (lower right corner) ?

hrotkogabor commented 4 years ago

In virtualbox with manjaro it is the same. When I switch to audio on vimeo, I see the cover, with audio playing. With video, it is black while playing the video. I will try to experiment with the code, but I am not very familiar with C++.

G-P-L commented 4 years ago

Hi @3unjee !

I am currently investigating this issue. Video won't start, just audio is playing when using any backend. No error messages are printed in the console, so I think this is a VLC or other dependency issue. I will try to downgrade the packages to test this idea.

3unjee commented 4 years ago

So it seems to be an issue on Arch Linux no matter the distribution, I've recently added the VLC libraries in the archive, maybe Arch doesn't like it. You could try remove libVLC and the vlc folder from the installation path.

G-P-L commented 4 years ago

Yes, it is definietly an Arch-related issue, but I could solve it now based on your suggestion. If I just removed the vlc folder and the libvlc.so.5 library, the MotionBox simply did not start. Instead, if I created a symlink from the system vlc library and vlc folder to the MotionBox folder, the issue disappeared. I will update the Arch AUR package to include this solution today.

G-P-L commented 4 years ago

So, thanks for the help again!

3unjee commented 4 years ago

That's weird we shouldn't have to do that, since by default MotionBox should use the system VLC, I'm a bit confused about the exact reason. Are you running the app with start.sh?

G-P-L commented 4 years ago

Yes, I am using the start.sh always (or in rare cases I am manually setting the LD_LIBRARY_PATH when testing something, but it is doing the same).

Anyway, the AUR package updated with the symlinking workaround. Version 1.6.0.4-4 fix this issue for the Arch users.

If I just remove the VLC files, the MotionBox window is appearing for a second then closes and I will get the following ouput in terminal: vlc: unknown option or missing mandatory argument --http-reconnect Try vlc --help for more information. WVlcEngine::event: Cannot create VLC instance. Is VLC installed ? ./start.sh: 11. sor: 558784 Félbeszakítva (core készült) "$PWD/MotionBox"

hrotkogabor commented 4 years ago

Updating with pamac-manager gui will result this, even after click empty aur cache:

Telepítés motionbox... ==> Csomag készítése: motionbox 1.6.0.4-4 (2020. jún. 2., kedd, 08:51:41 CEST) ==> Futtatási függőségek ellenőrzése... ==> Fordítási függőségek ellenőrzése... ==> Források letöltése... -> MotionBox-1.6.0-linux64.tar.gz helyi forrás -> MotionBox.desktop helyi forrás -> MotionBox.png helyi forrás ==> source fájl eredetiségének ellenőrzése ezzel: sha256sums... MotionBox-1.6.0-linux64.tar.gz ... HIBA MotionBox.desktop ... Rendben MotionBox.png ... Rendben ==> HIBA: Egy vagy több fájl nem ment át az eredetiségellenőrzésen! Nem sikerült összerakni: motionbox

It says MotionBox-1.6.0-linux64.tar.gz is a local file, and sha256sums failed. Updating from cli with yay, just re downloaded it, and install successfully. I tested it, and it works now. So I think, this issue can be closed. Thank you guys!