vicwomg / pikaraoke

Youtube-based Karaoke machine for Raspberry Pi, OSX, Windows, and Linux
486 stars 128 forks source link

Video not displaying #122

Open claytonrfe opened 3 years ago

claytonrfe commented 3 years ago

Hi, the video is not displaying on my Raspberry Pi4B. I am using a retropie, and manually installed pikaroke there.

It is connected to my TV so I could not save the terminal output but took a picture of it. The WebServer seems to work fine, I can search, add music to the queue and I see on the TV the "Playing Next..." messages once I add them. But once the music starts, no video with the lyrics pops up.

Attaching the files here. IMG_0982

claytonrfe commented 3 years ago

No video while music is playing: IMG_0984 IMG_0985

boerno commented 3 years ago

Same problem here Trying to fix it Following

vicwomg commented 3 years ago

I just installed a fresh retropie image to a pi4, then manually installed pikaraoke and it seems to work well for me.

Just to be clear, you can hear audio, but you don't see video?

Also, the log doesn't look unusual for the most part, but it does seem like you press esc before the file actually played. There's a 4-5 second delay between the splash screen showing the track and starting the song. Can you let it run for 10 more seconds after selecting the track and post the log again?

Is there anything unusual about your setup from a hardware / configuration / pikaraoke install perspective?

boerno commented 3 years ago

Thank you, I will try to follow your steps and do a clean reinstall manually For me, I used the latest image file and updated from this version Also on a Pi4 / hearing only audio, no video shown

Thank you!

vicwomg commented 3 years ago

@boerno curious which image did you install to your pi4? Retropie, like the original poster? Or Raspberry Pi Is (lite or desktop)? Or the image here on the pikaraoke github?

boerno commented 3 years ago

@vicwomg I installed the pikaraoke image here from github

boerno commented 3 years ago

IMG_20210527_152812 So I tried your instructions, clean retropie 3.7.1 - manually installed pikaraoke But still no video - audio only (stock Pi4 micro HDMI cable) or maybe a region issue?

Can you tell me which song worked for you for example? Thank you! Cheers!

claytonrfe commented 3 years ago

Thanks for looking at it @vicwomg

I did try over 10 secs, no video, the audio works. I am also using the official retropie for Pi4 image.

From a Hardware perspective, I have and SD card and an external SSD connected to my Retroflag case. Booting from SD, the SSD only hold ROMS, I would like for it to hold the pi karaoke videos as well but haven't done that yet.

The installation I followed was the regular one, I did upgrade pygame, but downgrade based on the recommendation.

vicwomg commented 3 years ago

Are you using HDMI0 or HDMI1 port? Are you taking audio from HDMI or from the audio port?

I wonder if it's sending the video to the wrong monitor out. This thread seems to mention issues like that and offer some solutions, though I can't test myself since I can't reproduce the issue on my pi 4: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=263187

Also, what happens if you try playing the video from the command line? Same thing?

/usr/bin/vlc -f /usr/lib/pikaraoke/songs/<name of file>

boerno commented 3 years ago

@vicwomg thank you for your help! Unfortunately didn't work on console either But no problem, I won't have time to dig into it next few weeks I will give it a try in a few weeks again Maybe I can find a solution then

IMG_20210530_102406

vicwomg commented 3 years ago

This all seems to point to some issue with vlc. Unsure why but I'll search around. Though, I still can't seem to reproduce it. I am using the same vlc version. Maybe experiment with older/newer versions?

Do let me know if you find a workaround.

vicwomg commented 3 years ago

The other workaround is to use the omxplayer option. Run pikaraoke with the option

--use-omxplayer

though you lose pitch shift ability.

claytonrfe commented 3 years ago

I tried using omxplayer.. e got video! But no sound, researched a lot and tried some different setups but it did not work. Still have to investigate more, welcome any tips. Sound is set to HDMI.

rpcjacobs commented 3 years ago

Had the same problem with rbp4 8GB, tried hdmi-0 and it works.

Jake-pi commented 2 years ago

I have had my pi-karaoke running for months now. Recently (last 3 or 4 karaoke sessions) it started acting buggy at initial start up. Usually shut down, restart cured it. Today it started doing what is described here (song plays, but no video, stays on splash), except I also have distorted tinny sound. Restarting does not fix it. I am running a raspberry pi 4, 8gb and 120gb sdhc (expanded file system). This is the standard 1.1.1 install, I'm no pi expert, but I followed all the instructions and got it to boot right in to the pi-karaoke interface. I have the HDMI connected to my TV, and audio output to a mixer with 2 mics conected to a soundbar surround system.

Jake-pi commented 2 years ago

OK I solved both the no video and poor sound quality. I feel a bit foolish, but I thought I would post here anyways incase someone has the same issue on a pi4. If you hear audio and see the splash screen but don't see karaoke video, then make sure you have the HDMI cable plugged in to HDMI0 at boot up. If you did not, then from the UI, shut down, power off and move the cable to HDMI0. Power back on and you should still see the splash screen, but when you play a karaoke file the video will replace it. One of my kids moved it to HDMI1, so my installation started behaving as described. For the poor audio, someone had been adjusting the volume from the player in the UI, it just happened to be at the same time as the HDMI cable got moved. I pushed the volume down button in the player UI until it came back to being biast properly with my mixer...

Bierat1337 commented 2 years ago

Hiho, im using hdmi0 and everything works fine, except then I use autostart for pikaraoke. It will run and I can use my smartphone to scan the qrcode and add songs to the queue but it won't show the video. Sound is working.

I logged the start of the song and some error appear:

[2021-12-14 17:51:52] INFO: Fetching available songs in: /usr/lib/pikaraoke/songs/ [2021-12-14 17:51:53] INFO: VLC command base: /usr/bin/vlc -f --play-and-exit --extraintf http --http-port 5002 --http-password QsuV54jOUgZRK2to9wM3vGpm38599HDg --no-embedded-video --no-keyboard-events --no-mouse-events --mouse-hide-timeout 0 --video-on-top --no-video-title --mouse-hide-timeout 0 [14/Dec/2021:17:51:54] ENGINE Bus STARTING [2021-12-14 17:51:54] INFO: [14/Dec/2021:17:51:54] ENGINE Bus STARTING [14/Dec/2021:17:51:54] ENGINE Started monitor thread '_TimeoutMonitor'. [2021-12-14 17:51:54] INFO: [14/Dec/2021:17:51:54] ENGINE Started monitor thread 'TimeoutMonitor'. [14/Dec/2021:17:51:54] ENGINE Serving on http://0.0.0.0:5000 [2021-12-14 17:51:54] INFO: [14/Dec/2021:17:51:54] ENGINE Serving on http://0.0.0.0:5000 [14/Dec/2021:17:51:54] ENGINE Bus STARTED [2021-12-14 17:51:54] INFO: [14/Dec/2021:17:51:54] ENGINE Bus STARTED [2021-12-14 17:51:54] INFO: Starting PiKaraoke! [2021-12-14 17:53:36] INFO: 'Phil' is adding song to queue: /usr/lib/pikaraoke/songs/Şımarık (Kiss Kiss) - Tarkan Karaoke Version KaraFun---60VE1Gt83AE.mp4 [2021-12-14 17:53:41] INFO: Playing video in VLC: Şımarık (Kiss Kiss) - Tarkan Karaoke Version _ KaraFun [007bb9d0] vlcpulse audio output error: PulseAudio server connection failure: Verbindung verweigert [007cc4f8] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11 [007cc4f8] main interface error: no suitable interface module [00734b98] main libvlc error: interface "dbus,none" initialization failed [007cc4f8] [http] lua interface: Lua HTTP interface [007e38a0] main interface error: no suitable interface module [00734b98] main libvlc error: interface "globalhotkeys,none" initialization failed [00734b98] main libvlc: VLC wird mit dem Standard-Interface ausgeführt. Benutzen Sie 'cvlc', um VLC ohne Interface zu verwenden. error: XDG_RUNTIME_DIR not set in the environment. [007e38a0] skins2 interface error: cannot initialize OSFactory [007e38a0] [cli] lua interface: Listening on host "*console". VLC media player 3.0.16 Vetinari Command Line Interface initialized. Type `help' for help.

[b213d9a0] mmal_codec decoder: VCSM init succeeded: CMA [b213d9a0] main decoder error: buffer deadlock prevented error: XDG_RUNTIME_DIR not set in the environment. error: XDG_RUNTIME_DIR not set in the environment. [b22211c0] gles2 generic error: parent window not available [b2220a60] mmal_xsplitter vout display error: Failed to open Xsplitter:opengles2 module [b22211c0] xcb generic error: window not available [b2220a60] mmal_xsplitter vout display error: Failed to open Xsplitter:xcb_x11 module [b2220a60] mmal_xsplitter vout display error: Failed to open Xsplitter:mmal_vout module [b2220a60] mmal_xsplitter vout display: No valid output found for vout (MMAL/MMAL) [b2220a60] gl vout display error: parent window not available [b2220a60] gles2 vout display error: parent window not available [b2220a60] xcb vout display error: window not available )0[?7h[?25l[?1c[?1000hmmal: mmal_vc_component_create: failed to create component 'vc.ril.hvs' (1:ENOMEM) mmal: mmal_component_create_core: could not create component 'vc.ril.hvs' (1)

Do you have any idea? It seems that the window / display is not available at the moment vlc starts..

Bierat1337 commented 2 years ago

I fixed it. I defined a desktop autostart script instead of using the classic /etc/rc.local.

I told the scripts to run at the desktop entry, so it waits until the window / display is available.

the code:

mkdir /home/pi/.config/autostart nano /home/pi/.config/autostart/pikaraoke.desktop

after the file is created I put the following content into it: [Desktop Entry] Type=Application Name=PiKaraoke Exec=sudo /usr/bin/python3 /home/pi/pikaraoke/app.py

tripaulxxx commented 2 years ago

hi guys im also facing this problem.. can you help me how to fix this?? i saw the splash screen qr and ip on the TV but when i play a song the video is not showing who to fix this.. omxplayer is not installed becasuse error on installing thats why i delete the line of omxplayer on setup-pi.sh

btw when i play a song i hear it on 3.5jack but not onHDMI

image this is the error when i try to install omxplayer

Jake-pi commented 2 years ago

hi guys im also facing this problem.. can you help me how to fix this?? i saw the splash screen qr and ip on the TV but when i play a song the video is not showing who to fix this.. omxplayer is not installed becasuse error on installing thats why i delete the line of omxplayer on setup-pi.sh

btw when i play a song i hear it on 3.5jack but not onHDMI

image this is the error when i try to install omxplayer

Hey Tripp, the video issue sounds the same as the one I had... Are you running a pi4? If so there are 2 HDMI outputs. Make sure your screen us connected to HDMI0 when you start up the pi, not HDMI1. I'm not sure why, but if you use HDMI1 the splash screen shows, but not the karaoke video. Hearing sound on headphone jack but not HDMI can indicate the same thing. Just shut down, make sure HDMI0 is connected (not HDMI1) then boot up and try again. If still no audio on HDMI, try python3 app.py -h, look for the audio input function, then run pi karaoe with the hash for that... Default should be both though...

I'm not sure about the omxplayer issue, but the default is VLC, which in most cases should work by default. I actually updated my rasberri pi before using SSH and samba, and vlc stopped working for me, so I edited my startup with the use omxplayer hash.

tripaulxxx commented 2 years ago

hi guys im also facing this problem.. can you help me how to fix this?? i saw the splash screen qr and ip on the TV but when i play a song the video is not showing who to fix this.. omxplayer is not installed becasuse error on installing thats why i delete the line of omxplayer on setup-pi.sh btw when i play a song i hear it on 3.5jack but not onHDMI image this is the error when i try to install omxplayer

Hey Tripp, the video issue sounds the same as the one I had... Are you running a pi4? If so there are 2 HDMI outputs. Make sure your screen us connected to HDMI0 when you start up the pi, not HDMI1. I'm not sure why, but if you use HDMI1 the splash screen shows, but not the karaoke video. Hearing sound on headphone jack but not HDMI can indicate the same thing. Just shut down, make sure HDMI0 is connected (not HDMI1) then boot up and try again. If still no audio on HDMI, try python3 app.py -h, look for the audio input function, then run pi karaoe with the hash for that... Default should be both though...

I'm not sure about the omxplayer issue, but the default is VLC, which in most cases should work by default. I actually updated my rasberri pi before using SSH and samba, and vlc stopped working for me, so I edited my startup with the use omxplayer hash.

im running pi3 model b+ yes my tv has 2 HDMI ports but i dont know what is HDMI0 and HDMI1 but i had a work around i install retropie and it work but the thing is how can i boot automatically on pikaraoke? because its retropie i automatically boot in retropie not on pikaraoke

Hartebee5t commented 2 years ago

Jake-pi wasn't writing about your TV, he was referring to the HDMI ports on your Pi device (4 and ?? others). There are 2 on a 4B and you need to get the index right as Jake-pi says. Not sure if a Pi3 has 1 or 2 HDMI ports...

tripaulxxx commented 2 years ago

Jake-pi wasn't writing about your TV, he was referring to the HDMI ports on your Pi device (4 and ?? others). There are 2 on a 4B and you need to get the index right as Jake-pi says. Not sure if a Pi3 has 1 or 2 HDMI ports...

PI3 has only 1 hdmi ports

tripaulxxx commented 2 years ago

I fixed it. I defined a desktop autostart script instead of using the classic /etc/rc.local.

I told the scripts to run at the desktop entry, so it waits until the window / display is available.

the code:

mkdir /home/pi/.config/autostart nano /home/pi/.config/autostart/pikaraoke.desktop

after the file is created I put the following content into it: [Desktop Entry] Type=Application Name=PiKaraoke Exec=sudo /usr/bin/python3 /home/pi/pikaraoke/app.py

hi can you teach me how to do this one because i want PiKaraoke to automatically boot so the user can use it easily??

vicwomg commented 2 years ago

There's instructions on how to do this in the readme..please keep general non-related questions to the discussions area of GitHub and not the issue comments

https://github.com/vicwomg/pikaraoke#auto-start-pikaraoke

On Sun, Feb 6, 2022, 5:06 AM tripaulxxx @.***> wrote:

I fixed it. I defined a desktop autostart script instead of using the classic /etc/rc.local.

I told the scripts to run at the desktop entry, so it waits until the window / display is available.

the code:

mkdir /home/pi/.config/autostart nano /home/pi/.config/autostart/pikaraoke.desktop

after the file is created I put the following content into it: [Desktop Entry] Type=Application Name=PiKaraoke Exec=sudo /usr/bin/python3 /home/pi/pikaraoke/app.py

hi can you teach me how to do this one because i want PiKaraoke to automatically boot so the user can use it easily??

— Reply to this email directly, view it on GitHub https://github.com/vicwomg/pikaraoke/issues/122#issuecomment-1030828818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7KXNRD2CMD2JKRX6JZG73UZZW3ZANCNFSM45JHTTVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>