{{Header}} {{title|title= Watching YouTube Videos in {{project_name_long}} }} {{#seo: |description=Using Tor Browser, streaming, MPV or VLC Media Player, other alternatives such as Invidious or downloading. Troubleshooting performance and other issues. |image=Youtubelogo.png }}
* [[YouTube|Watching YouTube Videos in {{project_name_short}}]] * [[yt-dlp|Downloading YouTube Videos in {{project_name_short}}]]
[[File:Youtubelogo.png|thumb]] {{intro| YouTube videos can be watched using Tor Browser, streaming, MPV or VLC Media Player, other alternatives such as Invidious. Alternatively, downloading may also be possible. This page also discusses troubleshooting YouTube performance and other issues. }} = Introduction = To watch [[File:Youtubelogo.png|30px]] YouTube videos anonymously, users have three options: # Watching videos directly in [[File:Torbrowser_icon.png|30px|Tor Browser Icon]] [[Tor Browser]] via the YouTube or [[#Invidious|Invidious]] websites. # Downloading videos -- for example via the [[File:Youtubedllogo.png|30px|yt-dlp logo]] [[yt-dlp]] command line downloader, [[#Invidious|Invidious]] or YouTube video download sites -- and then watching them in [[File:2000px-VLC_Icon.svg.png|30px|VLC Media Player Icon]] VLC Media Player (pre-installed). # Using the YouTube URL to watch videos directly in [[File:Mpvlogo.png|30px|MPV logo]] MPV or VLC Media Player via the network streaming option. = Tor Browser = [[File:Torbrowser_icon.png|thumb|100px|Tor Browser Icon]] == YouTube Website == [[image:Watchingyoutube.jpg|100px|thumb]] To watch videos directly on the YouTube website, use [[Tor Browser]]. '''Figure:''' ''YouTube in {{project_name_short}} Tor Browser'' {{ContentImage| [[File:Youtubeinqubeswhonix.png|780px]] }} It is common to experience "buffering issues" (interrupted video playback) because [[Why is Tor slow|Tor is slow]]. A simple workaround is to pause the video when it first starts so it can "buffer". This allows enough of the upcoming video playback to load in advance for an uninterrupted viewing experience. Alternatively the videos can be downloaded instead and watched in a media application like VLC Media Player, rather than relying upon an online internet connection with the YouTube website. To stream videos:
* Set the Tor Browser [[Tor_Browser#Security_Slider|security slider]] to the "Safer" settingclick the "script blocked" icontemporarily allow JavaScript for youtube.com It is normally unnecessary to allow JavaScript for other domains. Video playback is usually dysfunctional if the security slider is set to the "Safest" level. Higher security settings might work at a later time, so readers are encouraged to edit this page if the situation changes. In late 2021 it is common for YouTube to report 'suspicious network activity' when attempting to stream videos in Tor Browser (due to the detection of Tor exit nodes in use). == Invidious == It is strongly recommended to utilize [https://redirect.invidious.io/ Invidious] ([https://github.com/iv-org/invidious project homepage]) as an alternative front-end to YouTube. It is recommended to also check the register of [https://docs.invidious.io/instances/#list-of-public-invidious-instances-sorted-from-oldest-to-newest public clearnet Invidious instances] and [https://docs.invidious.io/instances/#tor-onion-services Invidious onion services]. Invidious is more lightweight than YouTube itself and comes with many additional features such as a video download option and onion addresses. Also, it does not present the user with login prompts or terms of service messages. '''Figure:''' ''Invidious in {{project_name_short}} Tor Browser'' {{ContentImage| [[File:Invidiousexample.png]] }} = Media Player Streaming = == MPV == [[File:Mpvlogo.png|thumb|MPV Icon]] === Installation === The [[File:Mpvlogo.png|30px|MPV Icon]] MPV video player can be installed to stream videos from Youtube or Invidious without enabling JavaScript. {{Install Package|package= mpv }} === Usage === After locating the relevant video, copy the URL and run. {{CodeSelect|code= mpv your URL }} == VLC Media Player == [[File:2000px-VLC_Icon.svg.png|thumb|100px|VLC Media Player Icon]] A simpler option is to use a [[Software#Media_Player|media player]], [[File:2000px-VLC_Icon.svg.png|30px|VLC Media Player Icon]] [[Software#VLC|VLC Media Player]] which comes pre-installed in {{project_name_short}}: # Locate and copy the relevant video URL. # Launch VLC Media Player. # MediaOpen Network Stream...Paste the URLPlay '''Figure:''' ''YouTube Streaming in VLC Media Player'' {{ContentImage| [[File:Vlcnetworkstream.png]] }} = Troubleshooting = == General Issues == [[image:Troubleshooting-114197640.jpg|thumb|100px|link=Troubleshooting]] # "Forget" about {{project_name_short}} for a moment and imagine you had never heard of the platform. Test this using the virtualizer software (such as VirtualBox, KVM or Qubes) without {{project_name_short}} being involved first. # Try a VM other than {{project_name_short}} such as Debian {{Stable project version based on Debian codename}}. # If the issue persists, this means the root issue is not caused by {{project_name_short}}. Therefore it is recommended to attempt to resolve the issue as per the [[Self_Support_First_Policy|Self Support First Policy]]. == VirtualBox == [[File:Virtualbox_logo.png|thumb|30px|link=VirtualBox|VirtualBox Logo]] [[File:Virtualbox_logo.png|30px|link=VirtualBox|VirtualBox logo]] VirtualBox users should note that video performance might be slow. For a possible solution, see: [[VirtualBox/Troubleshooting#Slow_Video_Playback|VirtualBox, Troubleshooting: Slow Video Playback]]. = See Also = * [[File:Youtubedllogo.png|30px|yt-dlp logo]] [[yt-dlp|Downloading YouTube Videos in {{project_name_short}} using the yt-dlp command line downloader]] = Footnotes = {{reflist|close=1}} {{Footer}} [[Category:Documentation]]