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 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: References: 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 Robert Riches 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 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 Cheers, Rob