Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #12066

Re: how to force VLC or MPlayer to add letterbox padding

From Robert Komar <robk@robpc4.home.org>
Newsgroups comp.os.linux.misc
Subject Re: how to force VLC or MPlayer to add letterbox padding
Date 2014-09-08 23:37 -0700
Organization A noiseless patient Spider
Message-ID <ppj2eb-03j.ln1@robpc4.home.org> (permalink)
References <slrnm0sv44.4bi.spamtrap42@one.localnet>

Show all headers | View raw


Robert Riches <spamtrap42@jacob21819.net> wrote:
> Is there a way to force VLC and/or MPlayer to add black padding
> at the top and bottom of the (non-full-screen) displaying window?
> In the case of interest, I have a 640x360 network stream that I
> want to display in a 640x480 window by adding padding (rather
> than stretching).  The fine manual, the usage message, and
> Googling have thus far not yielded the answer.
> 
> Thanks.

It would have helped if you gave the options you were using, but
here goes anyway:

mplayer -vf expand=640:480 <path-to-video>

I've tested it with a file, but not with any streaming video.
If the source video prescaled and you want to scale it to 640
pixels, then use:

mplayer -vf scale=640:-2,expand=640:480 <path-to-video>

Cheers,
Rob

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

how to force VLC or MPlayer to add letterbox padding Robert Riches <spamtrap42@jacob21819.net> - 2014-09-09 04:05 +0000
  Re: how to force VLC or MPlayer to add letterbox padding Robert Komar <robk@robpc4.home.org> - 2014-09-08 23:37 -0700
    Re: how to force VLC or MPlayer to add letterbox padding Robert Riches <spamtrap42@jacob21819.net> - 2014-09-10 02:47 +0000
  Re: how to force VLC or MPlayer to add letterbox padding Rich <rich@example.invalid> - 2014-09-09 10:27 +0000
    Re: how to force VLC or MPlayer to add letterbox padding Robert Riches <spamtrap42@jacob21819.net> - 2014-09-10 02:47 +0000

csiph-web