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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
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 Mon, 8 Sep 2014 23:37:13 -0700
Organization A noiseless patient Spider
Lines 23
Message-ID <ppj2eb-03j.ln1@robpc4.home.org> (permalink)
References <slrnm0sv44.4bi.spamtrap42@one.localnet>
Injection-Info mx05.eternal-september.org; posting-host="63832b4c5dcdb30b4dfacbfba6960636"; logging-data="10139"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18o3WYzjQgDJy/wjb8/8KLn"
User-Agent tin/2.2.1-20140504 ("Tober an Righ") (UNIX) (Linux/3.14.17 (x86_64))
Cancel-Lock sha1:VryjVEms+bis4EVlcfFsXDz0WXE=
Xref csiph.com comp.os.linux.misc:12066

Show key headers only | 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