how to generate the black bars at top and bottom?

About encoding, codec settings, muxers and filter usage
SarasotaSlim
Blank Cone
Blank Cone
Posts: 42
Joined: 15 Jun 2010 01:56
VLC version: 2.0.5
Operating System: Windows / Mac OS
Location: New Hampshire, USA

how to generate the black bars at top and bottom?

Postby SarasotaSlim » 15 Jan 2015 16:02

Ok, let's say I have a video file that is 720 x 480 and has a display aspect ratio of 4:3.

EDITED: [Sorry, I had done an incorrect calc for actual aspect-ratio, so I've removed those statements.]

But, it seems to be a quite common practice for some movie videos to be converted to wide-screen
format, with an aspect ratio of 16:9, with black bars on top and bottom to compensate.

So, here's my actual question:

So, when using VLC (sout) to transcode a video, is there a way to get it to NOT default to producing
the orig aspect-ratio in the input file, but instead produce an indicated 16:9 (by creating the black bars at top and bottom)?

In other words, I want to maintain the original 720x480 resolution, and just change the indicated aspect ratio,
from 4:3 to 16:9.

What cmd-line sout arguments would I use to accomplish that?

[ I thought this would be easy...just to add "--aspect-ratio "16:9" to my cmd-line, but that does NOT
seem to do it. So, what is the correct way, assuming one exists? ]

TIA...

-- Slim
HINT: My common VLC-usage is to transcode (via 'sout') to add on-screen 'Marquee' info,
and for that, I still use VLC v2.0.5, since marquee metadata-expansions ($-symbols) work there.

[ The VLC-version 2.x code beyond 2.0.5 remains 'broken' for that marquee functionality, tho there IS
an open and accepted bug-report on that...i.e. ticket #9514 ]

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: how to generate the black bars at top and bottom?

Postby Jean-Baptiste Kempf » 18 Jan 2015 08:15

-Not so sure it's possible.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

mederi
Big Cone-huna
Big Cone-huna
Posts: 1951
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: how to generate the black bars at top and bottom?

Postby mederi » 18 Jan 2015 14:14

Perhaps transcoding with canvas or croppadd video filter is what you want.
https://forum.videolan.org/viewtopic.php?f=4&t=112347

SarasotaSlim
Blank Cone
Blank Cone
Posts: 42
Joined: 15 Jun 2010 01:56
VLC version: 2.0.5
Operating System: Windows / Mac OS
Location: New Hampshire, USA

Re: how to generate the black bars at top and bottom?

Postby SarasotaSlim » 18 Jan 2015 15:41

Perhaps transcoding with canvas or croppadd video filter is what you want.
https://forum.videolan.org/viewtopic.php?f=4&t=112347
Yes, thanks, I too think 'canvas' should be able to do it. 8)

[ I guess I just need to do some experiments with some small snippets, and figure out the details of exactly
what values to try. ]
HINT: My common VLC-usage is to transcode (via 'sout') to add on-screen 'Marquee' info,
and for that, I still use VLC v2.0.5, since marquee metadata-expansions ($-symbols) work there.

[ The VLC-version 2.x code beyond 2.0.5 remains 'broken' for that marquee functionality, tho there IS
an open and accepted bug-report on that...i.e. ticket #9514 ]


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 7 guests