![]() |
how to scale image size in full screen mode on youtube.
Hi all,
Since I only have a small, 11 inch display, I need to get the best out of it. With some youtube content, (eg CNN live stream) the video is now being displayed as a small inset on a non relevant background. In full screen mode the content of interest occupies at most half the screen area. I have been trying to work around this by using xrandr to scale and shift the output so that the actual picture would occupy the whole screen. A command like: xrandr --output eDP-1 -- transform .6,0,0,0,.6,0,0,0,1 works to blow up the screen image in normal mode, but after clicking the "full screen" button, the image on the screen is the same as it was before. It seems that the full screen mode is mapping whatever is in the video window onto whatever the physical screen is, regardless of the applied transformation. Is there a command that will modify (scale and shift) what is displayed on the screen when youtube is in full screen mode so that a designated rectangular area can be scaled up to occupy the whole screen? Many thanks in advance. Andrew. |
This page - https://ubuntuforums.org/showthread.php?t=1409491 - suggests that a combination of compiz and the compiz ezoom plugin might do the trick.
|
Hi hydruga,
Thanks for that. I have a few doubts/questions (Will it chew too much CPU? Will it operate in the "windowless" full screen mode?), but I better look into your suggestion a bit more first. Andrew. |
You could just download the video and view it in a player.
|
Hi Awesome machine,
This is only an issue on live streams. But, as a separate matter, I would certainly like to be able to download youtube content sometimes, rather than having to stream it. Didn't know that was possible? I'm aware of a website where you can download basically any music .mp3 that's on the main YT site, but is there some option for video too? Cheers..... Andrew. |
Get youtube-dl and it is simple to download any video from youtube.
Run youtube-dl --help to see all options, but unless you want to specify size or quality you can simply find the youtube URL of the video you want to grab and do something like this: Code:
youtube-dl -oMarley_Three_Little_Birds.mp4 https://www.youtube.com/watch?v=zaGUr6wzyT8 Then play in your player of choice. |
NICE!!
|
And looking att the documentation:
youtube-dl -o - "https://www.youtube.com/watch?v=BaW_jenozKcj" | vlc - It seems it can stream directly to my favourite media player. I then just transform the screen with xrandr and all should be fixed. Will report back. Cheers..... Andrew. |
Okay,
This is (almost) working: youtube-dl -f 92 -o - "https://www.youtube.com/watch?v=9wr1SoGQCWM" | vlc - The main problem is that I'm in Tanzania at the moment and it's kind of breaking the local mobile network. Specifically, around 200KB/sec are being downloaded to get the video running in vlc. Even if it worked, it would cost too much like that. Usually, with youtube, I get good enough results by selecting a format (240 or 360) that's running on about 25 KB/sec. The network can do that and the cost is very reasonable. I saw that youtube-dl defaults to the best quality available, which is why I added the -f 92 at the front of the command above. However, it did not make any difference. The result is that the video runs for a few seconds then falls over for 30 seconds then I get a bit more and so on. I suppose I am missing something about the format option, but I can't see what it is. Any ideas? Cheers.... Andrew. |
aal, i think your original issue requires some information:
- are you using flash or html5 to view the videos? - what GPU and driver do you use? for the latter: Code:
lspci -k | grep -iEA5 'vga|3d|display' |
This is the command I use to get a 1311x768 scaled screen on my netbook with a native 1024x600 screen.
Code:
xrandr --fb 1311x768 --output LVDS1 --mode 1024x600 --panning 1311x768 --scale 1.28x1.28 Code:
xrandr --fb 1024x600 --output LVDS1 --mode 1024x600 --panning 0x0 --scale 1x1 I also use a 1280x1024 panned display. Code:
xrandr --fb 1280x1024 --output LVDS1 --mode 1024x600 --panning 1280x1024 --scale 1x1 |
Hi Ondoho,
I am not using flash. Don't know about html5, but it is firefox rev 52.5.2. As for the GPU, better to just give the output of suggested command: andrew@debian:~$ lspci -k | grep -iEA5 'vga|3D|display' 00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 21) Subsystem: Dell Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller Kernel driver in use: i915 Kernel modules: i915 00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 21) Subsystem: Dell Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller andrew@debian:~$ Thanks in advance for all insights! Andrew. |
Video DownloadHelper
Quote:
|
Hi allend,
Quote:
Cheers... Andrew. |
Hi all,
I think this is now solved, although I have only done it for a pre-recorded video and so I still have to find a live stream with the content in a box, but there is no reason I know of why it should not work. xrandr --fb 1981x1114 --output eDP-1 --mode 1366x768 --panning 1981x1114 --scale 1.4x1.4 is what made the most sense for the particular content (AM joy). Different content streams have different box sizes, so this is the process I ended up following to design the command: 1. choose output mode as the best mode available on the physical screen, 1366x768 here. 2. choose scale factor needed to get the inset box up to the full screen size. 1.4 here. 3. choose frame buffer (and panning) slightly larger than the product of output mode and scale factor. The only tiny glitch is that a scale factor 1.45 should work with that fb size but it did not. 1.45x1366=1980.7 , 1.45x766=1110.7. There was no error and I fail to understand why. Thanks allend and to all who responded. I've learned a lot on this. Will mark thread solved once I confirm with live stream working. Cheers..... Andrew. |
All times are GMT -5. The time now is 04:46 AM. |