No sound on popcorntime

I’ve recently discovered “popcorntime” , a great app to watch videos.

My problem is that for some reasons, I dont get audio for some videos (my pipewire audio setup works pretty well otherwise).
The recommended alternative is in general to use an alternative viewer (the button to open the video open a viewer list when clicking on its right). In my case, it doesn’t detect any alternative viewer: I have vlc and mpv installed.

Here is some log (could not find anything audio related):

$ nix shell nixpkgs#popcorntime
$ popcorntime
[573142:573142:0309/193104.718384:ERROR:policy_logger.cc(157)] :components/enterprise/browser/controller/chrome_browser_cloud_management_controller.cc(163) Cloud management controller initialization aborted as CBCM is not enabled.
[0309/193104.771560:ERROR:elf_dynamic_array_reader.h(64)] tag not found
[0309/193104.771761:ERROR:process_memory_range.cc(75)] read out of range
[573142:573191:0309/193104.825057:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[573142:573191:0309/193104.825619:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[573142:573191:0309/193104.832729:ERROR:object_proxy.cc(577)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[573172:573172:0309/193104.833351:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.833432:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.833443:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[573172:573172:0309/193104.833518:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.833538:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.833548:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[573172:573172:0309/193104.833556:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[573172:573172:0309/193104.833570:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[573172:573172:0309/193104.836691:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.836738:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.836746:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[573172:573172:0309/193104.836803:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.836820:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573172:573172:0309/193104.836827:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[573172:573172:0309/193104.836833:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[573172:573172:0309/193104.836839:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[573172:573172:0309/193104.846284:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[573204:573204:0309/193104.960319:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.960425:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.960441:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[573204:573204:0309/193104.960567:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.960589:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.960598:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[573204:573204:0309/193104.960607:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[573204:573204:0309/193104.960625:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[573204:573204:0309/193104.964027:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.964077:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.964088:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[573204:573204:0309/193104.964203:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.964227:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not dlopen libGL.so.1: libGL.so.1: cannot open shared object file: No such file or directory
[573204:573204:0309/193104.964236:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[573204:573204:0309/193104.964245:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[573204:573204:0309/193104.964251:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[573204:573204:0309/193104.972780:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization
[573198:573212:0309/193105.129304:ERROR:command_buffer_proxy_impl.cc(127)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[573176:573183:0309/193108.304534:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.
[573176:573183:0309/193108.380374:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.
[573176:573185:0309/193109.997528:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.
[573176:573183:0309/193115.874470:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.
[573176:573183:0309/193115.946457:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.
[573176:573183:0309/193121.984698:ERROR:cert_verify_proc_builtin.cc(621)] No net_fetcher for performing AIA chasing.

I am curious if anyone with a similar issue knew either how to fix it or how to let popcorntime see VLC for instance ?

Oh, popcorntime, I thought it was dead.

This won’t help you much but I’ve just tested it: gnome, pipewire, amdgpu and nixpkgs-unstable.
I only have mpv installed system-wide and it detects it perfectly, it even detects my TV.

Thanks for the answer, because the sound sometimes work, I think I hit the sound issue described in FAQ FAQ · popcorn-official/popcorn-desktop Wiki · GitHub

Unfortunately since NW.js doesn’t support proprietary codecs and the added available prebuild libraries don’t include a few commonly used audio codecs you might run into this issue if using the new NW.js build. The old version overcomes this by being a custom compiled build using scripts and a process that cant for now be replicated for the new one (open issue #2062)

I will report here once I find out how to make popcorntime see vlc

found it ! dont ask me why but apparently popcorn doesn’t use your $PATH, it just creates its own: Add VLC installed via Flatpak on Fedora 36 by BaktashGorgani · Pull Request #2635 · popcorn-official/popcorn-desktop · GitHub
the “funny” thing is that it contains some nix paths but not /etc/profiles/per-user/teto/bin/ which is where vlc is for me (installed via home-manager). I added vlc to environment.systemPackages and now it finds it. The video I had no audio with popcorntime works fine when using VLC as external viewer. Problem solved.

It strikes me as funny that this beautitul software dealing with complex stuff like streaming video to external players just ignored the PATH and hardcoded those. A fix is now merged and will be in the next release \o/

@aorith or anyone can you confirm popcorntime is not able to log into opensubtitles.com (from the settings panel). My credentials look good, work on the website but for some reason dont work within popcorntime :s

Hey teto. I’m able to login correctly, but it’s opensubtitles.org not .com

haaa silly me indeed. I had noticed at first the .org but ended up on .com . Thought I had gotten redirect but I probably just messed up. It works beautfully thanks !