how to do "picture-in-picture" in Mint?

Questions about other topics - please check if your question fits better in another category before posting here
Forum rules
Before you post please read how to get help
Post Reply
User avatar
jimallyn
Level 18
Level 18
Posts: 8469
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

how to do "picture-in-picture" in Mint?

Post by jimallyn » Sat May 19, 2018 4:38 am

Some televisions have a "picture-in-picture" feature, where you can have most of the screen taken up by one channel, and use a corner of the screen to show what's on another channel. I would like to do something like that on my computer. I often have music from Youtube playing while doing other things on the computer. Suppose I'm writing a document in LibreOffice, enjoying the music, and suddenly there's a blistering guitar solo I'd like to watch. I'd like to have that Youtube video playing in a corner of the screen so all I have to do is glance up at the corner of the screen to see it. It would also be nice to be able to swap the two pictures, and make the video in the corner of the screen take up most of the screen and put the other application up in the corner. Maybe switch by clicking on the small corner image? There must be some way to do this, but I have no idea what it would be. Ideas?
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
Sir Charles
Level 7
Level 7
Posts: 1827
Joined: Thu Jan 04, 2018 1:00 pm

Re: how to do "picture-in-picture" in Mint?

Post by Sir Charles » Sat May 19, 2018 5:28 am

If you don't mind using Opera browser, it has a video pop-out functionality you might want to have a look at.
https://www.youtube.com/watch?v=sEwdu2F_Rdw
I suppose that's one of the ironies of life, doing the wrong thing at the right moment -C.C.

User avatar
Flemur
Level 16
Level 16
Posts: 6196
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: how to do "picture-in-picture" in Mint?

Post by Flemur » Sat May 19, 2018 1:59 pm

The solution is to glue two computers together, or glue an iPhone onto your regular monitor:
https://xkcd.com/1988/
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

Neil Edmond
Level 5
Level 5
Posts: 893
Joined: Thu Dec 26, 2013 10:19 am
Location: N.E. AR USA

Re: how to do "picture-in-picture" in Mint?

Post by Neil Edmond » Sat May 19, 2018 2:54 pm

Don't most media players have an "always on top" setting? I know I've used my PC TV tuner that way...have the display in a small window that is always on top of whatever app I"m working with.

User avatar
MrEen
Level 7
Level 7
Posts: 1732
Joined: Mon Jun 12, 2017 8:39 pm

Re: how to do "picture-in-picture" in Mint?

Post by MrEen » Sat May 19, 2018 3:45 pm

Neil Edmond wrote:
Sat May 19, 2018 2:54 pm
Don't most media players have an "always on top" setting? I know I've used my PC TV tuner that way...have the display in a small window that is always on top of whatever app I"m working with.
In Xfce (not sure about others) right clicking in the titlebar of any window gives me that option. Of course, there's no way to "flip" the windows with this.

User avatar
trytip
Level 8
Level 8
Posts: 2413
Joined: Tue Jul 05, 2016 1:20 pm

Re: how to do "picture-in-picture" in Mint?

Post by trytip » Sat May 19, 2018 4:12 pm

this all depends on your graphic setup. most window managers have sticky window if you want to go that way or with nvidia you can make extended desktop if you use 2 monitor. you can tear out a chrome tab and then zoom out (max is 25%). but picture in picture needs it's own software like https://www.omgubuntu.co.uk/2017/05/flo ... -extension

Image
Image

User avatar
Flemur
Level 16
Level 16
Posts: 6196
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: how to do "picture-in-picture" in Mint?

Post by Flemur » Sat May 19, 2018 4:15 pm

MrEen wrote:
Sat May 19, 2018 3:45 pm
In Xfce (not sure about others) right clicking in the titlebar of any window gives me that option.
Same with fluxbox.
Of course, there's no way to "flip" the windows with this.
Raise one, lower the other [Edit: not even that...], and resize, maybe all with "xdotool" - which should work for all DEs..?:

Code: Select all

xdotool windowsize $(xdotool search --name "Mousepad" | tail -1) 400 400
from
https://askubuntu.com/questions/441501/ ... ly-in-xfce
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

Redact
Level 2
Level 2
Posts: 53
Joined: Fri Jan 09, 2015 10:37 am

Re: how to do "picture-in-picture" in Mint?

Post by Redact » Sat May 19, 2018 5:07 pm

MrEen wrote:
Sat May 19, 2018 3:45 pm
In Xfce (not sure about others) right clicking in the titlebar of any window gives me that option. Of course, there's no way to "flip" the windows with this.
Thanks for the tip, MrEen. Never knew that!

User avatar
jimallyn
Level 18
Level 18
Posts: 8469
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: how to do "picture-in-picture" in Mint?

Post by jimallyn » Sat May 19, 2018 6:54 pm

Thanks for the tips! I will give them a try. Except if I was going to glue a phone to my monitor, it would not be an Apple phone, it would be an Android device.
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

User avatar
smurphos
Level 8
Level 8
Posts: 2040
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: how to do "picture-in-picture" in Mint?

Post by smurphos » Sat May 19, 2018 11:41 pm

Flemur wrote:
Sat May 19, 2018 4:15 pm
MrEen wrote:
Sat May 19, 2018 3:45 pm
In Xfce (not sure about others) right clicking in the titlebar of any window gives me that option.
Same with fluxbox.
On Cinnamon 'always on top' is available from the titlebar menu button for all windows...

User avatar
trytip
Level 8
Level 8
Posts: 2413
Joined: Tue Jul 05, 2016 1:20 pm

Re: how to do "picture-in-picture" in Mint?

Post by trytip » Sat Sep 08, 2018 2:24 am

I often have music from Youtube playing while doing other things on the computer
in chrome address bar type the first flag and enable followed by second and enable then relaunch. when you watch a youtube rightclick the video twice (it doesn't have to be a quick double tap just casual click once then click again) *the first will the be video stats the second will be the cast picture in picture menu. you can now move the small window anywhere you want and resize it however big you need. if you close the page the video is gone so page needs to be open. if you minimize chrome the picture in picture is still on desktop. have no clue if picture in picture works with other sites yet.

chrome://flags/#enable-surfaces-for-videos <<< change to Enabled
chrome://flags/#enable-picture-in-picture <<< change to Enabled

Image

Image

for those that do not like the new look of chrome Version 69.0.3497 you can restore the old tabs with

chrome://flags/#top-chrome-md <<< change it to Normal )this will disable the new page customization
Last edited by trytip on Sun Sep 23, 2018 1:45 pm, edited 1 time in total.
Image

User avatar
Gruppo Sportivo
Level 1
Level 1
Posts: 47
Joined: Sun May 28, 2017 4:14 am
Location: Rotterdam

Re: how to do "picture-in-picture" in Mint?

Post by Gruppo Sportivo » Sat Sep 08, 2018 4:31 am

jimallyn wrote:I'd like to have that Youtube video playing in a corner of the screen so all I have to do is glance up at the corner of the screen to see it.
Min Vid is promising as Firefox Add-On, but is not yet functional
https://medium.com/firefox-test-pilot/m ... ad74dc37c1
Linux Mint¨Tara¨19.064-bit Cinnamon 3.8.9&Raspberry Pi 3B+ OSMC

User avatar
Gruppo Sportivo
Level 1
Level 1
Posts: 47
Joined: Sun May 28, 2017 4:14 am
Location: Rotterdam

Re: how to do "picture-in-picture" in Mint?

Post by Gruppo Sportivo » Sun Sep 23, 2018 5:43 am

jimallyn wrote:It would also be nice to be able to swap the two pictures, and make the video in the corner of the screen take up most of the screen and put the other application up in the corner.
The Firefox Add-On Iridium for YouTube,play's videos in a pop-out window,while you can do other things (Firefox Quantum version 62.0)
https://addons.mozilla.org/nl/firefox/a ... src=search

Image

all you have to do is click on the Pop-up square symbols of your chosen video to start video in pop-out window Image
Last edited by Gruppo Sportivo on Sun Sep 23, 2018 11:32 am, edited 1 time in total.
Linux Mint¨Tara¨19.064-bit Cinnamon 3.8.9&Raspberry Pi 3B+ OSMC

User avatar
phd21
Level 17
Level 17
Posts: 7280
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: how to do "picture-in-picture" in Mint?

Post by phd21 » Sun Sep 23, 2018 10:27 am

Hi jimallyn,

I just read your post and the good replies to it. Here are my thoughts on this as well. Thanks "trytip" and others for their information.

1.) If the browser already has a video pop-out option like Opera, you can use that.

2.) There are various browser extension add-ons to right-click and "open with" an external or local multimedia player. Check for browser addon in the "Synaptic Package Manager (SPM)" as well.
- open with MPV
- open with VLC
- open with external app

Automatically Open YouTube Links in an Uncluttered Viewer
https://lifehacker.com/automatically-op ... 1825389630

3.) There may also be Linux Mint applets, desklets, widgets, etc... to view videos or webpage or webslice in a desktop window. KDE has a "widget" called "plasmatube" which I just tried, but could not get it to play yet in my Linux Mint KDE 18.3.

4.) Someone could create a Linux application (maybe there already is one) for playing videos using the online videos url address.
SMtube, YouTube Viewer, etc...

SMPlayer Youtube Browser. Play YouTube videos with your favorite media player
https://www.smtube.org/


YouTube-viewer
Linux Mint 18.x - deb file
https://launchpad.net/~nilarimogard/+ar ... l0_all.deb

Linux Mint 19.x - deb file
https://launchpad.net/~nilarimogard/+ar ... c0_all.deb


GitHub - trizen/youtube-viewer: Lightweight application for searching and streaming videos from YouTube.
https://github.com/trizen/youtube-viewer

18.04 - [Solved]Can I use youtube-viewer on ubuntu18.04 - Ask Ubuntu
https://askubuntu.com/questions/1029038 ... buntu18-04

YouTube Viewer: A Complete YouTube Client For Linux [Ubuntu PPA] ~ Web Upd8: Ubuntu / Linux blog
http://www.webupd8.org/2015/02/youtube- ... lient.html

Hope this helps ...
.
KDE_plasmatube1.jpg
KDE PlasmaTube widget
- windows are resizeable
.
SMtube1.jpg
SMtube open video with MPV
- windows are resizeable
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Post Reply

Return to “Other topics”