Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 89214  / 2 Years ago, mon, may 16, 2022, 6:40:12

As discussed in a separate question, embedded flash videos are abnormally heavy on GPU resources.



The answer given by izx here (and namely in one comment) shows that



”Flash 11+ "attempts" (poorly, it looks like) to use the GPU (hardware) to "decode" the video instead of the CPU (software).
Decoding is a fairly computationally intensive task, but most modern CPUs (except Atoms) will deal with 1080P HD without breaking a sweat.”.


So, it seems that a solution would be opening those videos in external players, even without downloading them, so as to put to work the CPU instead of the GPU.


More From » flash

 Answers
7

As this question looks useful to me, I have created it in order to provide an answer. (The meta issue of doing this was discussed and answered (here and here).






A specialized application to see Youtube videos in an external player is Youtube Viewer (youtube-viewer). It runs in terminal and uses mplayer or mpv to play the youtube video.



sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-viewer


More here.



By default it uses mplayer. To make it use mpv instead, run youtube-viewer --video-player=mpv. So, a desktop file with this content may be useful:



[Desktop Entry]
Exec=bash -c 'youtube-viewer --video-player=mpv'
Icon=youtube-viewer
Name[en_US]=Youtube Viewer
Name=Youtube Viewer
Terminal=true
Type=Application


When running the program, a terminal window opens, saying:



=>> Search for YouTube videos (:h for help)
> ^J>


Just type the search item. Then type the corresponding number(s) of the videos you want to be played.



enter image description here






A cross-platform solution that is not limited to youtube is to use the well-known Firefox addon FlashGot, which is meant to send video streams to different download managers, but make it to send the URL stream to VLC (or mpv, which I prefer lately):




  • add VLC to Flashgot list: FlashGot options, General tab, Add, give a name 'VLC' , - then go to the VLC executable and select it



enter image description here
enter image description here




  • FlashGot options, FlashGot tab, choose VLC



enter image description here




  • playing the video in Firefox, a Flashgot button should appear (add that to the toolbar or the status bar). Right-click the button, Available formats, and left-click the video. VLC should start playing the video stream



enter image description here






SMPlayer. - limited to youtube (unless used with the solution above: have not tested that yet)



Install via the software center



and the Youtube Browser



Install via the software center



sudo add-apt-repository ppa:rvm/smplayer
sudo apt-get update
sudo apt-get install smplayer smtube


enter image description here



It starts the separate application, SMPlayer Youtube Browser, to search for videos. One can create a link/desktop launcher to it,
enter image description here



or just run




smtube




Using VLC. It looks like VLC is able to start videos of this kind from more websites, while smplayer is limited to youtube.



Install via the software center



One can add the link to the video in VLC
enter image description here



Using Totem:



Install via the software center



Some plugins are available for Totem player, among which a youtube browser similar to that of SMPlayer. You can open youtube videos in Totem, at lower quality it seems than in the previous options, but they load faster and are perfect for listening music from youtube.



enter image description here



There is also an arte-tv plugin for Totem that is not working at the moment... but maybe it will in the future... and supplementary plugins, including a BBC iPlayer. (The later no better than the one for arte-tv I fear.)



But I think that a more elegant method is using add-ons/extensions to open the external players directly from the internet browser's interface or context menu, like the aforementioned Flashgot addon.



The re is also the Firefox Openwith addon, created initially to open links in different web browsers, can do just that, by adding in its Preferences vlc and smtube instead of/beside browsers .



enter image description here
enter image description here



In Chromium there is an extension to start youtubes in VLC - here.



To use it, the youtube video has to be playing, the VLC web interface has to be enabled (VLC Tools-Preferences-Show Settings -All-Interface-Main-enable Web, restart VLC) and VLC has to be already open.
enter image description here



enter image description here



While VLC seems able to do this outside youtube, it has limitations when dealing with other websites. In Dailymotion works perfectly, but on Google videos it already may have problems, in others it's the OpenWith addon that would not work. I hadn't time to test them enough, I'll update this post in time, and invite comments and edits that would help find ways to open any embedded flash in VLC or other external player.



(This answer was based on ideas coming from izx, Halknner and user55822 as they answered or commented on other question.)






There is a VLC add-on to play YouTube videos and playlists - here



Copy the URL of the youtube video or playlist (must contain "list=PL...")
Start VLC, press Ctrl+N, paste the url then click on "Play" (or Alt+P then Enter), the video /playlist should start.



enter image description here



In 'Media', 'Save Playlist to File' and may open it later in VLC.


[#36509] Tuesday, May 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
calcur

Total Points: 189
Total Questions: 80
Total Answers: 95

Location: Burkina Faso
Member since Thu, Dec 15, 2022
1 Year ago
;