[GH-ISSUE #2312] Youtube videos not playing with firejail #1541

Closed
opened 2026-05-05 08:12:13 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @ghost on GitHub (Dec 23, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2312

I'm running Ubuntu 18.04, with mpv version mpv git-2018-07-22-45beb70 youtube-dl version 2018.11.07 and firejail version 0.9.56

When I try to watch a YouTube video via mpv, I get the following error:

[~/Videos/YT]::yT #yT is just an alias for "mpv $(xclip -o)"
Reading profile /etc/firejail/mpv.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-interpreters.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-xdg.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 9201, child pid 9202
30 programs installed in 98.06 ms
Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set.
Blacklist violations are logged to syslog
Warning: Cannot confine the application using AppArmor.
Maybe firejail-default AppArmor profile is not loaded into the kernel.
As root, run "aa-enforce firejail-default" to load it.
Child process initialized in 156.16 ms
Playing: https://www.youtube.com/watch?v=MjstV8qloQA
[ytdl_hook] Traceback (most recent call last):
[ytdl_hook]   File "/usr/local/bin/youtube-dl", line 7, in <module>
[ytdl_hook]     from youtube_dl import main
[ytdl_hook] ImportError: No module named youtube_dl
[ytdl_hook] youtube-dl failed: unexpected error ocurred 
Failed to recognize file format.


Exiting... (Errors when loading file)

Parent is shutting down, bye...

But running it via /usr/bin/mpv it works fine

Originally created by @ghost on GitHub (Dec 23, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2312 I'm running Ubuntu 18.04, with mpv version `mpv git-2018-07-22-45beb70` youtube-dl version `2018.11.07` and firejail version `0.9.56` When I try to watch a YouTube video via mpv, I get the following error: ``` [~/Videos/YT]::yT #yT is just an alias for "mpv $(xclip -o)" Reading profile /etc/firejail/mpv.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/disable-interpreters.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-xdg.inc Reading profile /etc/firejail/whitelist-var-common.inc Parent pid 9201, child pid 9202 30 programs installed in 98.06 ms Warning: An abstract unix socket for session D-BUS might still be available. Use --net or remove unix from --protocol set. Blacklist violations are logged to syslog Warning: Cannot confine the application using AppArmor. Maybe firejail-default AppArmor profile is not loaded into the kernel. As root, run "aa-enforce firejail-default" to load it. Child process initialized in 156.16 ms Playing: https://www.youtube.com/watch?v=MjstV8qloQA [ytdl_hook] Traceback (most recent call last): [ytdl_hook] File "/usr/local/bin/youtube-dl", line 7, in <module> [ytdl_hook] from youtube_dl import main [ytdl_hook] ImportError: No module named youtube_dl [ytdl_hook] youtube-dl failed: unexpected error ocurred Failed to recognize file format. Exiting... (Errors when loading file) Parent is shutting down, bye... ``` But running it via /usr/bin/mpv it works fine
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 23, 2018):

Fixed in master, see #2275

<!-- gh-comment-id:449619772 --> @SkewedZeppelin commented on GitHub (Dec 23, 2018): Fixed in master, see #2275
Author
Owner

@ghost commented on GitHub (Dec 23, 2018):

I just installed 0.9.57, and the same problem is happening

<!-- gh-comment-id:449654041 --> @ghost commented on GitHub (Dec 23, 2018): I just installed 0.9.57, and the same problem is happening
Author
Owner

@rusty-snake commented on GitHub (Dec 23, 2018):

How did you install it?

<!-- gh-comment-id:449660589 --> @rusty-snake commented on GitHub (Dec 23, 2018): How did you install it?
Author
Owner

@ghost commented on GitHub (Dec 23, 2018):

I followed
https://github.com/netblue30/firejail#Compile-and-install
Minus the line about apt, as I already had those packages

<!-- gh-comment-id:449668054 --> @ghost commented on GitHub (Dec 23, 2018): I followed https://github.com/netblue30/firejail#Compile-and-install Minus the line about apt, as I already had those packages
Author
Owner

@ghost commented on GitHub (Dec 23, 2018):

https://asciinema.org/a/WxupWTYpNlNnHwwfFU6dKcjsY

<!-- gh-comment-id:449668242 --> @ghost commented on GitHub (Dec 23, 2018): https://asciinema.org/a/WxupWTYpNlNnHwwfFU6dKcjsY
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 23, 2018):

You still have both the package and the source version installed. In that screencast when you ran mpv, you used the package version.

Please try
/usr/local/bin/firejail mpv ...

<!-- gh-comment-id:449668748 --> @SkewedZeppelin commented on GitHub (Dec 23, 2018): You still have both the package and the source version installed. In that screencast when you ran mpv, you used the package version. Please try `/usr/local/bin/firejail mpv ...`
Author
Owner

@ghost commented on GitHub (Dec 23, 2018):

Ah, I see. Works perfectly, thanks man

<!-- gh-comment-id:449669337 --> @ghost commented on GitHub (Dec 23, 2018): Ah, I see. Works perfectly, thanks man
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1541
No description provided.