How to zoom in a few pixels using command line, please?

*nix specific usage questions
Centauri39
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Feb 2014 12:27

How to zoom in a few pixels using command line, please?

Postby Centauri39 » 10 Feb 2014 12:50

Hi folks! :D

On Linux Mint 16 MATE, I'm using a USB video grabber together with the latest VLC player.

To start VLC with the wanted options, I created a desktop icon with this code:

Code: Select all

/usr/bin/vlc --fullscreen v4l2:///dev/video0:v4l2-standard=PAL_B :input-slave=alsa://hw:1,0 :v4l2-chroma= :v4l2-input=0 :v4l2-audio-input=-1 :v4l2-width=1920 :v4l2-height=1200 :v4l2-aspect-ratio=16:9 :v4l2-fps=25 :no-v4l2-use-libv4l2 :v4l2-tuner=0 :v4l2-tuner-frequency=-1 :v4l2-tuner-audio-mode=-1 :no-v4l2-controls-reset :v4l2-brightness=-1 :v4l2-brightness-auto=-1 :v4l2-contrast=-1 :v4l2-saturation=-1 :v4l2-hue=-1 :v4l2-hue-auto=-1 :v4l2-white-balance-temperature=-1 :v4l2-auto-white-balance=-1 :v4l2-red-balance=-1 :v4l2-blue-balance=-1 :v4l2-gamma=-1 :v4l2-autogain=-1 :v4l2-gain=-1 :v4l2-sharpness=-1 :v4l2-chroma-gain=-1 :v4l2-chroma-gain-auto=-1 :v4l2-power-line-frequency=-1 :v4l2-backlight-compensation=-1 :v4l2-band-stop-filter=-1 :no-v4l2-hflip :no-v4l2-vflip :v4l2-rotate=-1 :v4l2-color-killer=-1 :v4l2-color-effect=-1 :v4l2-audio-volume=-1 :v4l2-audio-balance=-1 :no-v4l2-audio-mute :v4l2-audio-bass=-1 :v4l2-audio-treble=-1 :no-v4l2-audio-loudness :v4l2-set-ctrls= :live-caching=300
This works great, except for one thing.
I still have a green bar on the lower edge and black bars (even for 16:9 shows) on both sides of my screen.

To move these bars out of the visible area,
I can zoom in a little bit by cutting off 6 pixels from both the top and bottom and 10 pixels from both the left and right,
by opening the video effects of VLC.

But doing this each time I run VLC is very annoying.

That's why I'd like to know, how can I edit the above code to cut off the unwanted bars automatically, please?

Centauri39
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Feb 2014 12:27

Re: How to zoom in a few pixels using command line, please?

Postby Centauri39 » 11 Feb 2014 15:30

OK, let my try it differently...

Meanwihle I noticed, when I press ALT+ o once,
the player is zooming in a little bit, which is exacty what I am looking for.

What command line code do I need to perform that action automatically, please?

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: How to zoom in a few pixels using command line, please?

Postby erwan10 » 13 Feb 2014 10:19

alt-o and alt-shift-o scales up or down with a 10% step.

At the command line, you need to switch automatic scaling off (--no-autoscale) and then provide a scale factor (e.g --scale .5 or --scale 1.5).

Centauri39
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Feb 2014 12:27

Re: How to zoom in a few pixels using command line, please?

Postby Centauri39 » 13 Feb 2014 14:47

It's working great, now! Thank you very much! :D

During the last few days, I used the settings of VLC to turn off autoscaling and to set a required scale of 1.36.
But this was working in all videos, even when the video source was not the grabber.

Now, I've added --no-autoscale and --scale 1.36 to my code right after --fullscreen.
As a result of this, everything is great, and autoscaling is enabled again for other video sources than the grabber.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 3 guests