Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #12060 > unrolled thread
| Started by | Robert Riches <spamtrap42@jacob21819.net> |
|---|---|
| First post | 2014-09-09 04:05 +0000 |
| Last post | 2014-09-10 02:47 +0000 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.os.linux.misc
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
| From | Robert Riches <spamtrap42@jacob21819.net> |
|---|---|
| Date | 2014-09-09 04:05 +0000 |
| Subject | how to force VLC or MPlayer to add letterbox padding |
| Message-ID | <slrnm0sv44.4bi.spamtrap42@one.localnet> |
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. -- Robert Riches spamtrap42@jacob21819.net (Yes, that is one of my email addresses.)
[toc] | [next] | [standalone]
| From | Robert Komar <robk@robpc4.home.org> |
|---|---|
| Date | 2014-09-08 23:37 -0700 |
| Message-ID | <ppj2eb-03j.ln1@robpc4.home.org> |
| In reply to | #12060 |
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
[toc] | [prev] | [next] | [standalone]
| From | Robert Riches <spamtrap42@jacob21819.net> |
|---|---|
| Date | 2014-09-10 02:47 +0000 |
| Message-ID | <slrnm0vetd.cqp.spamtrap42@one.localnet> |
| In reply to | #12066 |
On 2014-09-09, Robert Komar <robk@robpc4.home.org> wrote: > 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 Thank you very much! That's exactly what I was looking for! "expand" didn't come up in my earlier searching. -- Robert Riches spamtrap42@jacob21819.net (Yes, that is one of my email addresses.)
[toc] | [prev] | [next] | [standalone]
| From | Rich <rich@example.invalid> |
|---|---|
| Date | 2014-09-09 10:27 +0000 |
| Message-ID | <lumkn1$l1o$3@dont-email.me> |
| In reply to | #12060 |
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.
man mplayer:
expand[=w:h:x:y:o:a:r]
Expands (not scales) movie resolution to the given value
and places the unscaled original at coordinates x, y. Can be
used for placing subtitles/OSD in the resulting black bands.
<w>,<h>
Expanded width,height (default: original
width,height). Negative values for w and h are
treated as offsets to the original size.
EXAMPLE:
expand=0:-50:0:0
Adds a 50 pixel border to the bottom of
the picture.
<x>,<y>
position of original image on the expanded image
(default: center)
<o>
OSD/subtitle rendering
0: disable (default)
1: enable
<a>
Expands to fit an aspect instead of a resolution
(default: 0).
EXAMPLE:
expand=800:::::4/3
Expands to 800x600, unless the source is
higher resolution, in which case it
expands to fill a 4/3 aspect.
<r>
Rounds up to make both width and height divisible by
<r> (default: 1).
[toc] | [prev] | [next] | [standalone]
| From | Robert Riches <spamtrap42@jacob21819.net> |
|---|---|
| Date | 2014-09-10 02:47 +0000 |
| Message-ID | <slrnm0veuv.cqp.spamtrap42@one.localnet> |
| In reply to | #12075 |
On 2014-09-09, Rich <rich@example.invalid> wrote: > 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. > > man mplayer: > > expand[=w:h:x:y:o:a:r] > Expands (not scales) movie resolution to the given value > and places the unscaled original at coordinates x, y. Can be > used for placing subtitles/OSD in the resulting black bands. > > <w>,<h> > Expanded width,height (default: original > width,height). Negative values for w and h are > treated as offsets to the original size. > > EXAMPLE: > expand=0:-50:0:0 > Adds a 50 pixel border to the bottom of > the picture. > > <x>,<y> > position of original image on the expanded image > (default: center) > > <o> > OSD/subtitle rendering > 0: disable (default) > 1: enable > > <a> > Expands to fit an aspect instead of a resolution > (default: 0). > > EXAMPLE: > expand=800:::::4/3 > Expands to 800x600, unless the source is > higher resolution, in which case it > expands to fill a 4/3 aspect. > > <r> > Rounds up to make both width and height divisible by > <r> (default: 1). Thank you very much! That's the option that had eluded me in my earlier searching. It works beautifully! -- Robert Riches spamtrap42@jacob21819.net (Yes, that is one of my email addresses.)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.misc
csiph-web