Seeking to understand "vfilters" when transcoding

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

Seeking to understand "vfilters" when transcoding

Postby SarasotaSlim » 17 Feb 2014 19:48

I've been transcoding, using VLC for about a year, so I'm familiar with basic VLC
cmd-line syntax, etc, for using 'sfilter' and for changing audio and video codecs, etc.

But, I do NOT yet have familiarity with how to use VIDEO-filters, hence this posting.

Let's say I want to properly stretch a (movie) video, so that I purposely have some
black "letterbox" zones at top and bottom, and/or to end up with a specific aspect-ratio
(e.g. 16:9) for a movie that might NOT already be in that ratio.

Can someone either explain how to 'think' about this problem, or maybe better, just
illustrate with some cmd-line based snippets (that include some "vfilters") that
will accomplish that?

I've found some such example snippets here in the forum, but I haven't yet got
my head entirely around how to 'think', when it comes to choosing a "canvas"
size, etc, etc. (Maybe there's a VLC-specific tutorial somewhere that does
a decent job of explaining canvases and vfilters??)

Thanks in advance...
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: Seeking to understand "vfilters" when transcoding

Postby Jean-Baptiste Kempf » 18 Feb 2014 12:46

So, when you transcode, you should be using vfilter, like #transcode{vcodec=xxx,vfilter=grain} or so on. Some filter can't be transcoded, but this should be a bug.
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.

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: Seeking to understand "vfilters" when transcoding

Postby SarasotaSlim » 20 Feb 2014 20:27

No...I guess my question wasn't clear or precise enough. I'll try again:

Ok, so what does stating a 'canvas' size accomplish?

e.g. in the docs/help info, it shows a snippet:

"transcode{vcodec=mp2v,vfilter=canvas{width=640,height=480}}"

[But, I already understand the syntax/layout rules. It's some better concepts and examples that I'm seeking.]

So, if one states a canvas size (different from the resolution of the input file's video-track), does
that then require one to also have a 'crop' or 'pad' clause, too?

Again, what I feel I need is a tutorial-like page or a few paragraphs, that mention a specific
goal, and then shows some sample snippets of a full vfilter that would accomplish that.
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 ]

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: Seeking to understand "vfilters" when transcoding

Postby mederi » 23 Feb 2014 14:23


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: Seeking to understand "vfilters" when transcoding

Postby SarasotaSlim » 23 Feb 2014 22:02

There's some nice discussion and examples there. Thanks, Mederi !! :D
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 3 guests