mps-youtube / yewtube

yewtube, forked from mps-youtube , is a Terminal based YouTube player and downloader. No Youtube API key required.
GNU General Public License v3.0
8.07k stars 648 forks source link

Play background video for mps-youtube using Terminology EFL Console. #853

Open ghost opened 6 years ago

ghost commented 6 years ago

Good morning, Dear Mps-YouTube.

Requisites:

Challenge: Could we have some how, mps-youtube play videos as background in Terminology console?

Demo:

Absolute Values, Error Zero, Quantum Continuum for Divine Proportion - Beauty Form Factor

Issue / Suggestion

Your Environment

tommysolsen commented 6 years ago

Hi!

I'm sorry, but I don't totally understand what you are asking for. If you mean you want the video to remain hidden but hear the audio, use set show_video false, to only hear audio.

If you want the application to be in the background, terminology has tab support, you can just open mpsyt in a different tab and switch to another one for other work.

Or are there some issues you are having with only Terminology?

ghost commented 6 years ago

Good morning, Dear Tommy @Razesdark.

Laconic: Terminology console has feature to play video as transparent alpha background. Question: Could we somehow play mpsyt videos as console background using Terminology feature?

Thank You, Dear Tommy.

Terminology console commands:

Preview could look something like that:

vn-ki commented 6 years ago

Try set player tybg inside mpsyt.

If tybg support video stream urls, this might work.

ghost commented 6 years ago

Good morning, Dear @vn-ki.

That set player tybg doesn't help. That's why I'm asking here.

ghost commented 6 years ago

Good morning, Dear @Razesdark, @vn-ki

Here a sample video preview, how could it be, if:

[Quantum Continuum]: Mps-Youtube and Terminology

Note: Clicking on image below will open a video on YouToBee.

tommysolsen commented 6 years ago

I think that introducing functionality targeting specific terminals and similar is not something I would be inclined to agreeing with. Especially not unless a developer that uses it steps up and promises to support that piece of functionality. If only we got the version with plugin support up and running it would be different, however.

But maybe this can work for you. I tried installing terminology through pacman but it gives me some package conflicts that I'm not that stoked about looking into atm so I can't verify this, but the following command should give you a similar effect.

mpsyt has a custom download command that should be able to be altered to serve this purpose by utilizing youtube-dl.

A command like set download_command youtube-dl --exec "tybg {} & tyalpha 50" %i then selecting a video by running dv # where # is the numbered search result you want to watch, should technically allow you to download a video and show it in the background.

ghost commented 6 years ago

@Razesdark, Thank You.

I get the hint. I'll try to figure it up some how. Should be oKey! :)

This command is working, but downloading a lot of time. set download_command youtube-dl --exec "tybg {}" %i

We have at least one working solution. Much better. :)