Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Song ending: None #332

Open
jgamos opened this issue May 13, 2024 · 13 comments
Open

[BUG] Song ending: None #332

jgamos opened this issue May 13, 2024 · 13 comments

Comments

@jgamos
Copy link

jgamos commented May 13, 2024

Tried installing Raspbian, Debian Server, Ubuntu Server latest iso.

Also manually moving ffmpeg and followed steps,

using ./pikaraoke.sh --headless to run

open ip:5555/splash and can search, download song but getting the "INFO: Song ending: None" error

can anyone share fix?

SETUP:
PROMOX VM
Ubuntu 24.04 Server amd64
Chrome/Vivaldi/Opera

ffmpeg -version
ffmpeg version N-115203-gbaf8651d56-20240513 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41)

`
ubuntu@ubuntu:/pikaraoke$ ./pikaraoke.sh --headless /home/ubuntu/pikaraoke/app.py:617: SyntaxWarning: invalid escape sequence '\S'
return os.path.join(os.path.dirname(file), ".venv\Scripts\yt-dlp.exe")
/home/ubuntu/pikaraoke/app.py:625: SyntaxWarning: invalid escape sequence '\p'
legacy_directory = os.path.expanduser("
\pikaraoke\songs")
/home/ubuntu/pikaraoke/app.py:629: SyntaxWarning: invalid escape sequence '\p'
return "~\pikaraoke-songs"
[2024-05-13 17:48:58] INFO: Fetching available songs in: /home/ubuntu/pikaraoke-songs/
[13/May/2024:17:48:59] ENGINE Bus STARTING
[2024-05-13 17:48:59] INFO: [13/May/2024:17:48:59] ENGINE Bus STARTING
[13/May/2024:17:48:59] ENGINE Serving on http://0.0.0.0:5555
[2024-05-13 17:48:59] INFO: [13/May/2024:17:48:59] ENGINE Serving on http://0.0.0.0:5555
[13/May/2024:17:48:59] ENGINE Bus STARTED
[2024-05-13 17:48:59] INFO: [13/May/2024:17:48:59] ENGINE Bus STARTED
[2024-05-13 17:48:59] INFO: Starting PiKaraoke!
[2024-05-13 17:48:59] INFO: Connect the player host to: http://192.168.100.15:5555/splash
[2024-05-13 17:49:07] INFO: Song ending: None
[2024-05-13 17:49:16] INFO: 'bb' is adding song to queue: /home/ubuntu/pikaraoke-songs/Song for the Suspect - Franco (Karaoke⧸Instrumental)---GKbmuhYszSM.mp4
[2024-05-13 17:49:19] INFO: Playing file: /home/ubuntu/pikaraoke-songs/Song for the Suspect - Franco (Karaoke⧸Instrumental)---GKbmuhYszSM.mp4 transposed 0 semitones
[2024-05-13 17:49:22] INFO: Song starting: Song for the Suspect - Franco (Karaoke⧸Instrumental)
[2024-05-13 17:49:31] INFO: Song ending: Song for the Suspect - Franco (Karaoke⧸Instrumental)
[2024-05-13 17:49:42] INFO: Song ending: None
[2024-05-13 17:50:24] INFO: Upgrading youtube-dl, current version: 2024.04.09
[2024-05-13 17:50:25] INFO: Latest version: [email protected] from yt-dlp/yt-dlp
yt-dlp is up to date ([email protected] from yt-dlp/yt-dlp)
[2024-05-13 17:50:25] INFO: Done. New version: 2024.04.09
[2024-05-13 17:50:41] INFO: Searching YouTube for: queen karaoke
[2024-05-13 17:50:47] INFO: Downloading video: https://www.youtube.com/watch?v=rGTHC4I_JPk
[youtube] Extracting URL: https://www.youtube.com/watch?v=rGTHC4I_JPk
[youtube] rGTHC4I_JPk: Downloading webpage
[youtube] rGTHC4I_JPk: Downloading ios player API JSON
[youtube] rGTHC4I_JPk: Downloading android player API JSON
WARNING: [youtube] Skipping player responses from android clients (got player responses for video "aQvGIIdgFDM" instead of "rGTHC4I_JPk")
[youtube] rGTHC4I_JPk: Downloading m3u8 information
[info] rGTHC4I_JPk: Downloading 1 format(s): 18
[download] Destination: /home/ubuntu/pikaraoke-songs/Queen - Love Of My Life (Karaoke Version)---rGTHC4I_JPk.mp4
[download] 100% of 4.17MiB in 00:00:00 at 10.83MiB/s
[2024-05-13 17:50:50] INFO: Fetching available songs in: /home/ubuntu/pikaraoke-songs/
[2024-05-13 17:50:50] INFO: 'bb' is adding song to queue: /home/ubuntu/pikaraoke-songs/Queen - Love Of My Life (Karaoke Version)---rGTHC4I_JPk.mp4
[2024-05-13 17:50:54] INFO: Playing file: /home/ubuntu/pikaraoke-songs/Queen - Love Of My Life (Karaoke Version)---rGTHC4I_JPk.mp4 transposed 0 semitones
[2024-05-13 17:50:56] INFO: Song starting: Queen - Love Of My Life (Karaoke Version)
[2024-05-13 17:51:05] INFO: Song ending: Queen - Love Of My Life (Karaoke Version)
[2024-05-13 17:51:16] INFO: Song ending: None

`

@vicwomg
Copy link
Owner

vicwomg commented May 13, 2024

Platform (please complete the following information):

  • OS: [e.g. Raspberry Pi OS, OSX]
  • OS version: [e.g. Raspberry pi Debian Bullseye 64-bit / 32-bit]
  • Browser [e.g. chrome, safari]
  • Browser Version [e.g. 22]

@vicwomg
Copy link
Owner

vicwomg commented May 13, 2024

ffmpeg version would be useful too

@rogeriobayer
Copy link

I'm having the same problem recently on Windows, the first selected song plays normally on the host but when adding new ones while playing the first song, the error is triggered and no other songs enter the sequence. The mobile host displays "nothing is currently playing" and has an empty queue. It is not possible to change the music on the mobile phone because "there is nothing running", in the debug terminal INFO: Song ending: None is displayed, even with the music just started and playing in the player.

Execution of first song with error (the song continues to play even after the error):

DevTools listening on ws://127.0.0.1:49396/devtools/browser/08f32878-8147-4c90-b68b-b91dc312696a
[2024-05-14 22:36:26] INFO: Starting PiKaraoke!
[2024-05-14 22:36:26] INFO: Connect the player host to: http://192.168.18.17:5555/splash
Created TensorFlow Lite XNNPACK delegate for CPU.
[2024-05-14 22:36:52] INFO: 'bayer' is adding song to queue: C:/Users/tomat/pikaraoke-songs/Animal Instinct  - The Cranberries (Lyrics Karaoke) [ goodkaraokesongs.com ]---OIwQfD5foSM.mp4
[2024-05-14 22:36:55] INFO: Playing file: C:/Users/tomat/pikaraoke-songs/Animal Instinct  - The Cranberries (Lyrics Karaoke) [ goodkaraokesongs.com ]---OIwQfD5foSM.mp4 transposed 0 semitones
[2024-05-14 22:36:57] INFO: Song starting: Animal Instinct  - The Cranberries (Lyrics Karaoke) [ goodkaraokesongs.com ]
[2024-05-14 22:36:57] INFO: Song starting: Animal Instinct  - The Cranberries (Lyrics Karaoke) [ goodkaraokesongs.com ]
[2024-05-14 22:36:58] INFO: Song ending: Animal Instinct  - The Cranberries (Lyrics Karaoke) [ goodkaraokesongs.com ]
[2024-05-14 22:36:58] INFO: Song ending: None
[2024-05-14 22:37:06] INFO: Song ending: None
[2024-05-14 22:37:06] INFO: Song ending: None

DEBUG activated, attempt to add a new song to the list (While "Tried to skip, but no file is playing" was being displayed, a song was playing):

[2024-05-14 22:43:28] WARNING: Tried to skip, but no file is playing!
[2024-05-14 22:43:33] ERROR: Stream was not playable! Run with debug logging to see output. Skipping track
[2024-05-14 22:43:33] INFO: Song ending: Karaokê Diz Pra Mim - Gusttavo Lima
[2024-05-14 22:43:33] DEBUG: Killing ffmpeg process
[2024-05-14 22:43:33] DEBUG: ffmpeg process killed
[2024-05-14 22:43:50] INFO: Song ending: None
[2024-05-14 22:43:50] DEBUG: Killing ffmpeg process
[2024-05-14 22:43:50] DEBUG: ffmpeg process killed
  • Windows 11
  • Google Chrome (124.0.6367.208)
  • ffmpeg version 2023-12-28-git-c1340f3439-full_build-www.gyan.dev

@jgamos
Copy link
Author

jgamos commented May 15, 2024

Platform (please complete the following information):

  • OS: [e.g. Raspberry Pi OS, OSX]
  • OS version: [e.g. Raspberry pi Debian Bullseye 64-bit / 32-bit]
  • Browser [e.g. chrome, safari]
  • Browser Version [e.g. 22]

-proxmox vm
-ubuntu 24.04 server amd64
-chrome/opera/vivaldi
-ffmpeg -version
ffmpeg version N-115203-gbaf8651d56-20240513 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 13.2.0 (crosstool-NG 1.26.0.65_ecc5e41)

@doug14
Copy link

doug14 commented Jun 2, 2024

OS: Raspberry Pi OS
OS version: Raspberry pi Debian 32-bit bookworm with desktop
Browser: chrome
Browser Version: 125.0.6422.114
ffmpeg version 5.1.4-0+rpt3+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Raspbian 12.2.0-14+rpi1)

I carried out the installation and when testing with headless I have had the same problem.

[02/Jun/2024:15:14:35] ENGINE Bus STARTING
[2024-06-02 15:14:35] INFO: [02/Jun/2024:15:14:35] ENGINE Bus STARTING
[02/Jun/2024:15:14:36] ENGINE Serving on http://0.0.0.0:5555
[2024-06-02 15:14:36] INFO: [02/Jun/2024:15:14:36] ENGINE Serving on http://0.0.0.0:5555
[02/Jun/2024:15:14:36] ENGINE Bus STARTED
[2024-06-02 15:14:36] INFO: [02/Jun/2024:15:14:36] ENGINE Bus STARTED
[2024-06-02 15:14:36] INFO: Starting PiKaraoke!
[2024-06-02 15:14:36] INFO: Connect the player host to: http://192.168.1.146:5555/splash
[2024-06-02 15:14:46] INFO: 'Douglas' is adding song to queue: /home/pi/pikaraoke-songs/Pitty - Equalize - Karaoke.mp4
[2024-06-02 15:14:49] INFO: Playing file: /home/pi/pikaraoke-songs/Pitty - Equalize - Karaoke.mp4 transposed 0 semitones
[2024-06-02 15:14:49] DEBUG: COMMAND: ffmpeg -i /home/pi/pikaraoke-songs/Pitty - Equalize - Karaoke.mp4 -map 0:a -map 0:v -f mp4 -b:v 5M -acodec copy -listen 1 -movflags frag_keyframe+default_base_moof -vcodec copy http://0.0.0.0:5556/1717352089
[2024-06-02 15:14:49] DEBUG: Killing ffmpeg process
[2024-06-02 15:14:50] DEBUG: [FFMPEG] ffmpeg version 5.1.4-0+rpt3+deb12u1 Copyright (c) 2000-2023 the FFmpeg developers
[2024-06-02 15:14:50] DEBUG: [FFMPEG] built with gcc 12 (Raspbian 12.2.0-14+rpi1)
[2024-06-02 15:14:50] DEBUG: [FFMPEG] configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --enable-shared --libdir=/usr/lib/arm-linux-gnueabihf --cpu=arm1176jzf-s --arch=arm
[2024-06-02 15:14:50] DEBUG: [FFMPEG] WARNING: library configuration mismatch
[2024-06-02 15:14:50] DEBUG: [FFMPEG] avutil configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] avcodec configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] avformat configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] avdevice configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] avfilter configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] swscale configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] swresample configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] postproc configuration: --prefix=/usr --extra-version=0+rpt3+deb12u1 --toolchain=hardened --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --disable-mmal --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sand --enable-sdl2 --disable-sndio --enable-libjxl --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-pocketsphinx --enable-librsvg --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-libplacebo --enable-librav1e --libdir=/usr/lib/arm-linux-gnueabihf/neon/vfp --cpu=cortex-a7 --arch=armv6t2 --disable-thumb --enable-shared --disable-doc --disable-programs
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libavutil 57. 28.100 / 57. 28.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libavcodec 59. 37.100 / 59. 37.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libavformat 59. 27.100 / 59. 27.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libavdevice 59. 7.100 / 59. 7.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libavfilter 8. 44.100 / 8. 44.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libswscale 6. 7.100 / 6. 7.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libswresample 4. 7.100 / 4. 7.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] libpostproc 56. 6.100 / 56. 6.100
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pi/pikaraoke-songs/Pitty - Equalize - Karaoke.mp4':
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:50] DEBUG: [FFMPEG] major_brand : isom
[2024-06-02 15:14:50] DEBUG: [FFMPEG] minor_version : 512
[2024-06-02 15:14:50] DEBUG: [FFMPEG] compatible_brands: isomiso2mp41
[2024-06-02 15:14:50] DEBUG: [FFMPEG] encoder : Lavf59.20.101
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Duration: 00:03:48.50, start: 0.000000, bitrate: 595 kb/s
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Stream #0:00x1: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709, progressive), 1024x768 [SAR 1:1 DAR 4:3], 457 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
[2024-06-02 15:14:50] DEBUG: Stream ready!
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:50] DEBUG: [FFMPEG] handler_name : VideoHandler
[2024-06-02 15:14:50] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:50] DEBUG: [FFMPEG] handler_name : Stereo
[2024-06-02 15:14:50] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-02 15:14:50] DEBUG: [FFMPEG] Output #0, mp4, to 'http://0.0.0.0:5556/1717352089':
[2024-06-02 15:14:51] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:51] DEBUG: [FFMPEG] major_brand : isom
[2024-06-02 15:14:51] DEBUG: [FFMPEG] minor_version : 512
[2024-06-02 15:14:51] DEBUG: [FFMPEG] compatible_brands: isomiso2mp41
[2024-06-02 15:14:51] DEBUG: [FFMPEG] encoder : Lavf59.27.100
[2024-06-02 15:14:51] DEBUG: [FFMPEG] Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 129 kb/s (default)
[2024-06-02 15:14:51] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:51] DEBUG: [FFMPEG] handler_name : Stereo
[2024-06-02 15:14:51] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Stream #0:1(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709, progressive), 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 5000 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Metadata:
[2024-06-02 15:14:52] DEBUG: [FFMPEG] handler_name : VideoHandler
[2024-06-02 15:14:52] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Stream mapping:
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Stream #0:1 -> #0:0 (copy)
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Stream #0:0 -> #0:1 (copy)
[2024-06-02 15:14:52] DEBUG: [FFMPEG] Press [q] to stop, [?] for help
[2024-06-02 15:15:00] ERROR: Stream was not playable! Run with debug logging to see output. Skipping track
[2024-06-02 15:15:00] INFO: Song ending: Pitty - Equalize - Karaoke
[2024-06-02 15:15:00] DEBUG: Killing ffmpeg process
[2024-06-02 15:15:00] DEBUG: ffmpeg process killed
[2024-06-02 15:15:00] INFO: Song ending: None
[2024-06-02 15:15:00] DEBUG: Killing ffmpeg process
[2024-06-02 15:15:00] DEBUG: ffmpeg process killed
^C[2024-06-02 15:17:04] WARNING: Keyboard interrupt: Exiting pikaraoke...
[02/Jun/2024:15:17:04] ENGINE Bus STOPPING
[2024-06-02 15:17:04] INFO: [02/Jun/2024:15:17:04] ENGINE Bus STOPPING
[02/Jun/2024:15:17:04] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[2024-06-02 15:17:04] INFO: [02/Jun/2024:15:17:04] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[02/Jun/2024:15:17:04] ENGINE Bus STOPPED
[2024-06-02 15:17:04] INFO: [02/Jun/2024:15:17:04] ENGINE Bus STOPPED
[02/Jun/2024:15:17:04] ENGINE Bus EXITING
[2024-06-02 15:17:04] INFO: [02/Jun/2024:15:17:04] ENGINE Bus EXITING
[02/Jun/2024:15:17:04] ENGINE Bus EXITED
[2024-06-02 15:17:04] INFO: [02/Jun/2024:15:17:04] ENGINE Bus EXITED

@vicwomg
Copy link
Owner

vicwomg commented Jun 2, 2024

It's difficult to tell what's going on specifically for such a wide range of OS combos, but all these sound like issues with ffmpeg version. The versions reported here do not seem like 6.0+, I am not sure how they are being installed but please look at the readme for details on how to install a >6.0 version of ffmpeg

https://github.com/vicwomg/pikaraoke?tab=readme-ov-file#installation

For Windows, my personal test machine is running 6.1 from https://www.gyan.dev/ffmpeg/builds/ and seems to work. I'd be curious if it does for others.

For raspberry pi, bookworm is not recommended. It installs an incompatible version of ffmpeg. Try bullseye per: #323

@doug14
Copy link

doug14 commented Jun 3, 2024

I updated ffmpeg as requested using the link below:
https://fostips.com/install-ffmpeg-debian-stable/

Now I'm in this version:

ffmpeg -- v
ffmpeg version 6.0.1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14)
configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-gnutls --disable-liblensfun --disable-libopencv --disable-podpages --disable-sndio --disable-stripping --enable-avfilter --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gpl --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libdrm --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libkvazaar --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librsvg --enable-librubberband --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-nonfree --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --enable-vulkan --incdir=/usr/include/arm-linux-gnueabihf --libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr --toolchain=hardened --enable-libilbc --enable-libjxl --cc=arm-linux-gnueabihf-gcc --cxx=arm-linux-gnueabihf-g++ --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
[NULL @ 0x1257190] Unable to find a suitable output format for 'v'
v: Invalid argument

But I still have the same problem when using headless:

[03/Jun/2024:10:36:44] ENGINE Bus STARTING

[2024-06-03 10:36:44] INFO: [03/Jun/2024:10:36:44] ENGINE Bus STARTING
[03/Jun/2024:10:36:44] ENGINE Serving on http://0.0.0.0:5555
[2024-06-03 10:36:44] INFO: [03/Jun/2024:10:36:44] ENGINE Serving on http://0.0.0.0:5555
[03/Jun/2024:10:36:44] ENGINE Bus STARTED
[2024-06-03 10:36:44] INFO: [03/Jun/2024:10:36:44] ENGINE Bus STARTED
[2024-06-03 10:36:44] INFO: Starting PiKaraoke!
[2024-06-03 10:36:44] INFO: Connect the player host to: http://192.168.1.146:5555/splash
[2024-06-03 10:36:50] INFO: Song ending: None
[2024-06-03 10:36:50] DEBUG: Killing ffmpeg process
[2024-06-03 10:36:50] DEBUG: ffmpeg process killed
[2024-06-03 10:37:00] INFO: 'Douglas' is adding song to queue: /home/pi/pikaraoke-songs/Mulan - Homem ser.mp4
[2024-06-03 10:37:03] INFO: Playing file: /home/pi/pikaraoke-songs/Mulan - Homem ser.mp4 transposed 0 semitones
[2024-06-03 10:37:03] DEBUG: COMMAND: ffmpeg -i /home/pi/pikaraoke-songs/Mulan - Homem ser.mp4 -map 0:a -map 0:v -f mp4 -b:v 5M -acodec copy -listen 1 -movflags frag_keyframe+default_base_moof -vcodec copy http://0.0.0.0:5556/1717421823
[2024-06-03 10:37:03] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:05] DEBUG: [FFMPEG] ffmpeg version 6.0.1 Copyright (c) 2000-2023 the FFmpeg developers
[2024-06-03 10:37:05] DEBUG: [FFMPEG] built with gcc 12 (Debian 12.2.0-14)
[2024-06-03 10:37:05] DEBUG: [FFMPEG] configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-gnutls --disable-liblensfun --disable-libopencv --disable-podpages --disable-sndio --disable-stripping --enable-avfilter --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gpl --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libdrm --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libkvazaar --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librsvg --enable-librubberband --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-nonfree --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --enable-vulkan --incdir=/usr/include/arm-linux-gnueabihf --libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr --toolchain=hardened --enable-libilbc --enable-libjxl --cc=arm-linux-gnueabihf-gcc --cxx=arm-linux-gnueabihf-g++ --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libavutil 58. 2.100 / 58. 2.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libavcodec 60. 3.100 / 60. 3.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libavformat 60. 3.100 / 60. 3.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libavdevice 60. 1.100 / 60. 1.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libavfilter 9. 3.100 / 9. 3.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libswscale 7. 1.100 / 7. 1.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libswresample 4. 10.100 / 4. 10.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] libpostproc 57. 1.100 / 57. 1.100
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pi/pikaraoke-songs/Mulan - Homem ser.mp4':
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:05] DEBUG: [FFMPEG] major_brand : mp42
[2024-06-03 10:37:05] DEBUG: [FFMPEG] minor_version : 0
[2024-06-03 10:37:05] DEBUG: [FFMPEG] compatible_brands: isommp42
[2024-06-03 10:37:05] DEBUG: [FFMPEG] creation_time : 2023-02-02T19:59:44.000000Z
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Duration: 00:03:26.15, start: 0.000000, bitrate: 269 kb/s
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Stream #0:00x1: Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 219 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
[2024-06-03 10:37:05] DEBUG: Stream ready!
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:05] DEBUG: [FFMPEG] creation_time : 2023-02-02T19:59:44.000000Z
[2024-06-03 10:37:05] DEBUG: [FFMPEG] handler_name : ISO Media file produced by Google Inc. Created on: 02/02/2023.
[2024-06-03 10:37:05] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Stream #0:10x2: Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
[2024-06-03 10:37:05] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:06] DEBUG: [FFMPEG] creation_time : 2023-02-02T19:59:44.000000Z
[2024-06-03 10:37:06] DEBUG: [FFMPEG] handler_name : ISO Media file produced by Google Inc. Created on: 02/02/2023.
[2024-06-03 10:37:06] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:06] DEBUG: [FFMPEG] Output #0, mp4, to 'http://0.0.0.0:5556/1717421823':
[2024-06-03 10:37:06] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:06] DEBUG: [FFMPEG] major_brand : mp42
[2024-06-03 10:37:06] DEBUG: [FFMPEG] minor_version : 0
[2024-06-03 10:37:06] DEBUG: [FFMPEG] compatible_brands: isommp42
[2024-06-03 10:37:06] DEBUG: [FFMPEG] encoder : Lavf60.3.100
[2024-06-03 10:37:06] DEBUG: [FFMPEG] Stream #0:0(por): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 47 kb/s (default)
[2024-06-03 10:37:07] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:07] DEBUG: [FFMPEG] creation_time : 2023-02-02T19:59:44.000000Z
[2024-06-03 10:37:07] DEBUG: [FFMPEG] handler_name : ISO Media file produced by Google Inc. Created on: 02/02/2023.
[2024-06-03 10:37:07] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:07] DEBUG: [FFMPEG] Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 5000 kb/s, 29.97 fps, 29.97 tbr, 30k tbn (default)
[2024-06-03 10:37:07] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:07] DEBUG: [FFMPEG] creation_time : 2023-02-02T19:59:44.000000Z
[2024-06-03 10:37:07] DEBUG: [FFMPEG] handler_name : ISO Media file produced by Google Inc. Created on: 02/02/2023.
[2024-06-03 10:37:07] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:07] DEBUG: [FFMPEG] Stream mapping:
[2024-06-03 10:37:08] DEBUG: [FFMPEG] Stream #0:1 -> #0:0 (copy)
[2024-06-03 10:37:08] DEBUG: [FFMPEG] Stream #0:0 -> #0:1 (copy)
[2024-06-03 10:37:08] DEBUG: [FFMPEG] Press [q] to stop, [?] for help
[2024-06-03 10:37:15] ERROR: Stream was not playable! Run with debug logging to see output. Skipping track
[2024-06-03 10:37:15] INFO: Song ending: Mulan - Homem ser
[2024-06-03 10:37:15] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:15] DEBUG: ffmpeg process killed
[2024-06-03 10:37:16] INFO: Song ending: None
[2024-06-03 10:37:16] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:16] DEBUG: ffmpeg process killed
[2024-06-03 10:37:27] INFO: 'Douglas' is adding song to queue: /home/pi/pikaraoke-songs/14 Bis - Uma Velha Cancao Rock'n'roll - Karaoke.mp4
[2024-06-03 10:37:30] INFO: Playing file: /home/pi/pikaraoke-songs/14 Bis - Uma Velha Cancao Rock'n'roll - Karaoke.mp4 transposed 0 semitones
[2024-06-03 10:37:30] DEBUG: COMMAND: ffmpeg -i /home/pi/pikaraoke-songs/14 Bis - Uma Velha Cancao Rock'n'roll - Karaoke.mp4 -map 0:a -map 0:v -f mp4 -b:v 5M -acodec copy -listen 1 -movflags frag_keyframe+default_base_moof -vcodec copy http://0.0.0.0:5556/1717421850
[2024-06-03 10:37:30] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:31] DEBUG: [FFMPEG] ffmpeg version 6.0.1 Copyright (c) 2000-2023 the FFmpeg developers
[2024-06-03 10:37:31] DEBUG: [FFMPEG] built with gcc 12 (Debian 12.2.0-14)
[2024-06-03 10:37:31] DEBUG: [FFMPEG] configuration: --disable-decoder=amrnb --disable-decoder=libopenjpeg --disable-gnutls --disable-liblensfun --disable-libopencv --disable-podpages --disable-sndio --disable-stripping --enable-avfilter --enable-chromaprint --enable-frei0r --enable-gcrypt --enable-gpl --enable-ladspa --enable-libaom --enable-libaribb24 --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libdavs2 --enable-libdc1394 --enable-libdrm --enable-libfdk-aac --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libglslang --enable-libgme --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libkvazaar --enable-libmp3lame --enable-libmysofa --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librist --enable-librsvg --enable-librubberband --enable-libshine --enable-libsmbclient --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-nonfree --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-openssl --enable-postproc --enable-pthreads --enable-shared --enable-version3 --enable-vulkan --incdir=/usr/include/arm-linux-gnueabihf --libdir=/usr/lib/arm-linux-gnueabihf --prefix=/usr --toolchain=hardened --enable-libilbc --enable-libjxl --cc=arm-linux-gnueabihf-gcc --cxx=arm-linux-gnueabihf-g++ --disable-altivec --shlibdir=/usr/lib/arm-linux-gnueabihf
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libavutil 58. 2.100 / 58. 2.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libavcodec 60. 3.100 / 60. 3.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libavformat 60. 3.100 / 60. 3.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libavdevice 60. 1.100 / 60. 1.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libavfilter 9. 3.100 / 9. 3.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libswscale 7. 1.100 / 7. 1.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libswresample 4. 10.100 / 4. 10.100
[2024-06-03 10:37:31] DEBUG: [FFMPEG] libpostproc 57. 1.100 / 57. 1.100
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/pi/pikaraoke-songs/14 Bis - Uma Velha Cancao Rock'n'roll - Karaoke.mp4':
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:32] DEBUG: [FFMPEG] major_brand : isom
[2024-06-03 10:37:32] DEBUG: [FFMPEG] minor_version : 512
[2024-06-03 10:37:32] DEBUG: [FFMPEG] compatible_brands: isomiso2mp41
[2024-06-03 10:37:32] DEBUG: [FFMPEG] title : 09556
[2024-06-03 10:37:32] DEBUG: [FFMPEG] date : 2017-06-21
[2024-06-03 10:37:32] DEBUG: [FFMPEG] encoder : Lavf59.20.101
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Duration: 00:04:09.13, start: 0.000000, bitrate: 473 kb/s
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Stream #0:00x1: Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709, progressive), 1024x768 [SAR 1:1 DAR 4:3], 334 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
[2024-06-03 10:37:32] DEBUG: Stream ready!
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:32] DEBUG: [FFMPEG] handler_name : VideoHandler
[2024-06-03 10:37:32] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)
[2024-06-03 10:37:32] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:32] DEBUG: [FFMPEG] handler_name : Stereo
[2024-06-03 10:37:32] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:33] DEBUG: [FFMPEG] Output #0, mp4, to 'http://0.0.0.0:5556/1717421850':
[2024-06-03 10:37:33] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:33] DEBUG: [FFMPEG] major_brand : isom
[2024-06-03 10:37:33] DEBUG: [FFMPEG] minor_version : 512
[2024-06-03 10:37:33] DEBUG: [FFMPEG] compatible_brands: isomiso2mp41
[2024-06-03 10:37:33] DEBUG: [FFMPEG] title : 09556
[2024-06-03 10:37:33] DEBUG: [FFMPEG] date : 2017-06-21
[2024-06-03 10:37:33] DEBUG: [FFMPEG] encoder : Lavf60.3.100
[2024-06-03 10:37:33] DEBUG: [FFMPEG] Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 129 kb/s (default)
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:34] DEBUG: [FFMPEG] handler_name : Stereo
[2024-06-03 10:37:34] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Stream #0:1(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, bt709, progressive), 1024x768 [SAR 1:1 DAR 4:3], q=2-31, 5000 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Metadata:
[2024-06-03 10:37:34] DEBUG: [FFMPEG] handler_name : VideoHandler
[2024-06-03 10:37:34] DEBUG: [FFMPEG] vendor_id : [0][0][0][0]
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Stream mapping:
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Stream #0:1 -> #0:0 (copy)
[2024-06-03 10:37:34] DEBUG: [FFMPEG] Stream #0:0 -> #0:1 (copy)
[2024-06-03 10:37:35] DEBUG: [FFMPEG] Press [q] to stop, [?] for help
[2024-06-03 10:37:42] ERROR: Stream was not playable! Run with debug logging to see output. Skipping track
[2024-06-03 10:37:42] INFO: Song ending: 14 Bis - Uma Velha Cancao Rock'n'roll - Karaoke
[2024-06-03 10:37:42] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:42] DEBUG: ffmpeg process killed
[2024-06-03 10:37:43] INFO: Song ending: None
[2024-06-03 10:37:43] DEBUG: Killing ffmpeg process
[2024-06-03 10:37:43] DEBUG: ffmpeg process killed
^C[2024-06-03 10:37:50] WARNING: Keyboard interrupt: Exiting pikaraoke...
[03/Jun/2024:10:37:50] ENGINE Bus STOPPING
[2024-06-03 10:37:50] INFO: [03/Jun/2024:10:37:50] ENGINE Bus STOPPING
[03/Jun/2024:10:37:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[2024-06-03 10:37:50] INFO: [03/Jun/2024:10:37:50] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 5555)) shut down
[03/Jun/2024:10:37:50] ENGINE Bus STOPPED
[2024-06-03 10:37:50] INFO: [03/Jun/2024:10:37:50] ENGINE Bus STOPPED
[03/Jun/2024:10:37:50] ENGINE Bus EXITING
[2024-06-03 10:37:50] INFO: [03/Jun/2024:10:37:50] ENGINE Bus EXITING
[03/Jun/2024:10:37:50] ENGINE Bus EXITED
[2024-06-03 10:37:50] INFO: [03/Jun/2024:10:37:50] ENGINE Bus EXITED

In the karake.py file I have this configuration:

use h/w acceleration on pi

    default_vcodec = "h264_v4l2m2m" if self.platform == "raspberry_pi" else "libx264"
    ##default_vcodec = "libx264"
    # just copy the video stream if it's an mp4 or webm file, since they are supported natively in html5
    # otherwise use the default h264 codec
    vcodec = "copy" if fr.file_extension == ".mp4" or fr.file_extension == ".webm" else default_vcodec
    vbitrate = "5M" #seems to yield best results w/ h264_v4l2m2m on pi, recommended for 720p.

@doug14
Copy link

doug14 commented Jun 3, 2024

Apparently, I managed to solve it by making the following changes to the karaoke.py file:

##default_vcodec = "h264_v4l2m2m" if self.platform == "raspberry_pi" else "libx264"
default_vcodec = "libx264"
vbitrate = "20M"

Additionally, I made the following changes to the config file:

over_voltage=4
disable_splash=1
force_turbo=1
boot_delay=1
arm_freq=1400
gpu_freq=500
core_freq=500
sdram_freq=500
gpu_mem=256

@vicwomg
Copy link
Owner

vicwomg commented Jun 3, 2024

Apparently, I managed to solve it by making the following changes to the karaoke.py file:

That's very useful thank you! To be clear, are you overclocking the in order to be able to use libx264? I believe h264_v4l2m2m is the hw accelerated codec, but maybe it it becoming problematic

@vicwomg
Copy link
Owner

vicwomg commented Jun 3, 2024

@doug14 Also, is this a Pi 5? Which hardware is it?

@doug14
Copy link

doug14 commented Jun 3, 2024

@vicwomg Regarding the use of libx264, I got it at #323 . Regarding the vbitrate, I increased it as I tested until I reached a value that would play my videos (I have a base of 140G, 10000 songs).
As for overclocking, my rasp3B was feeling "slow", as I added forced cooling to it, I overclocked it. Apparently it helped with vbitrate.
I didn't want to spend a lot on this project (the items in Brazil are a little expensive), in the end I ended up buying a WD Purple 256 Gb card and a case with an integrated touch screen.

@contesauce
Copy link

contesauce commented Jul 27, 2024

I'm running Windows 11 and have the same problem. Using ffmpeg installed via scoop on version 7, from Gyan dev. I use this weekly so if any suggested fix actions come along let me know and I'll give it a run.

[2024-07-26 20:21:28] INFO: 'PiKaraoke-Host' is adding song to queue: C:/Users/micha/pikaraoke-songs/Kip Moore - Somethin' 'Bout A Truck.mp4
[2024-07-26 20:21:32] INFO: Playing file: C:/Users/micha/pikaraoke-songs/Kip Moore - Somethin' 'Bout A Truck.mp4 transposed 0 semitones
[2024-07-26 20:21:34] INFO: Song starting: Kip Moore - Somethin' 'Bout A Truck
[2024-07-26 20:21:35] INFO: Song ending: Kip Moore - Somethin' 'Bout A Truck
[2024-07-26 20:21:43] INFO: Song ending: None
[2024-07-26 20:21:49] INFO: 'PiKaraoke-Host' is adding song to queue: C:/Users/micha/pikaraoke-songs/Speechless - Dan & Shay (KARAOKE)---E4rh5lrVO-M.mp4
[2024-07-26 20:21:50] INFO: 'PiKaraoke-Host' is adding song to queue: C:/Users/micha/pikaraoke-songs/SPEECHLESS | Dan + Shay | Karaoke Version---6h9Tuh-7CeQ.mp4
[2024-07-26 20:21:52] INFO: Playing file: C:/Users/micha/pikaraoke-songs/Speechless - Dan & Shay (KARAOKE)---E4rh5lrVO-M.mp4 transposed 0 semitones
[2024-07-26 20:21:54] INFO: Song starting: Speechless - Dan & Shay (KARAOKE)
[2024-07-26 20:21:55] INFO: Song ending: Speechless - Dan & Shay (KARAOKE)
[2024-07-26 20:21:58] INFO: Playing file: C:/Users/micha/pikaraoke-songs/SPEECHLESS | Dan + Shay | Karaoke Version---6h9Tuh-7CeQ.mp4 transposed 0 semitones
[2024-07-26 20:22:00] INFO: Song starting: SPEECHLESS | Dan + Shay | Karaoke Version
[2024-07-26 20:22:01] INFO: Song ending: SPEECHLESS | Dan + Shay | Karaoke Version
[2024-07-26 20:22:03] INFO: Song ending: None
[2024-07-26 20:22:09] INFO: Song ending: None
image

@contesauce
Copy link

contesauce commented Jul 27, 2024

Ok, so I have ffmpeg installed via scoop package manager scoop install ffmpeg and it worked initially, but started throwing errors tonight. I went and installed via winget and so far it's running correctly. Using winget install ffmpeg So, if you're running this on Windows try installing ffmpeg via winget.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants