[MPlayer-dev-eng] [PATCH] vd_null to output black frames

Xidorn Quan quanxunzhen at gmail.com
Fri Sep 28 02:34:38 CEST 2012


On Fri, Sep 28, 2012 at 3:53 AM, Reimar Döffinger
<Reimar.Doeffinger at gmx.de>wrote:

> On 27 Sep 2012, at 16:35, Xidorn Quan <quanxunzhen at gmail.com> wrote:
> > Some modifies to this patch.
> >
> > On Thu, Sep 27, 2012 at 4:06 PM, Xidorn Quan <quanxunzhen at gmail.com>
> wrote:
> >
> >> Hi,
> >>
> >> This patch makes vd_null return black frames for various image format
> >> instead of only NULL.
>
> Obvious question: why? The purpose of it is to provide _no_ video, and
> that as quickly as possible. As far as I can tell, your patch actually
> "breaks" both of them.
> I suspect you want to use it for something it was not meant for. In that
> case it might be better to add a new decoder.
>

When you need no video at all, you must always use both -vc null and
-vo null. It still works this way. And here it staictly creates
the buffer when initialized, so it wouldn't be slower a lot.

The description for vd_null is no decoding. It still does no decoding
in this patch, therefore I do not think it should be divided into a
separate decoder.

It outputs black frames so that it will not break any other vo besides
vo_null, and therefore we can insert vfs in to test them without
decoding video.


More information about the MPlayer-dev-eng mailing list