[MPlayer-users] lavc libvpx

Rolf Ernst rolf.ernst at silverlightning.org
Tue Jun 22 22:21:42 CEST 2010


On Tue, Jun 22, 2010 at 1:53 PM, Rolf Ernst
<rolf.ernst at silverlightning.org>wrote:

> On 6/22/2010 1:52 PM, Reimar Döffinger wrote:
>
>> On Tue, Jun 22, 2010 at 12:10:49AM -0500, Rolf Ernst wrote:
>>
>>
>>> I am still tinkering with libvpx and don't understand why libavcodec does
>>> not find it. This is my command and output:
>>>
>>>
>> Actually, detection for then encoder was forgotten to be added to
>> the configure script.
>> It's not quite right, but you can try below change
>> Index: configure
>> ===================================================================
>> --- configure   (revision 31528)
>> +++ configure   (working copy)
>> @@ -7678,6 +7695,7 @@
>>  if test "$_libvpx_lavc" = yes ; then
>>    def_libvpx_lavc='#define CONFIG_LIBVPX 1'
>>    _libavdecoders="$_libavdecoders LIBVPX_DECODER"
>> +  _libavencoders="$_libavencoders LIBVPX_ENCODER"
>>    codecmodules="libvpx $codecmodules"
>>  else
>>    def_libvpx_lavc='#define CONFIG_LIBVPX 0'
>> _______________________________________________
>> MPlayer-users mailing list
>> MPlayer-users at mplayerhq.hu
>> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
>>
>>
>
> Reimar,
>
> thank you so much!
>

This works perfectly and I like the quality (although there has been much
debate over it vs. h.264). However, if I could trouble you one more time -
it is unclear to me how to pass any of the options to the codec. When I look
at the 'official' patch it lists maybe 10 or so but I don't seem to be able
to pass anything as lavcopts. Is this a bug or is there some other method of
doing this?

The patch introduced this into options.c for libavcodec:

+{"spatial_rsmpl", "Enable spatial resampling (VP8)", OFFSET(spatial_rsmpl),
FF_OPT_TYPE_INT, 0, 0, 1, V|E},
+{"spatial_rsmpl_up", "Spatial resampling up watermark, percentage of target
data buffer. (VP8)", OFFSET(spatial_rsmpl_up), FF_OPT_TYPE_INT, 60, 0, 100,
V|E},
+{"spatial_rsmpl_down", "Spatial resampling down watermark, percentage of
target data buffer. (VP8)", OFFSET(spatial_rsmpl_down), FF_OPT_TYPE_INT, 30,
0, 100, V|E},
+{"vbr_bias", "Two-pass mode CBR/VBR bias, 0-100 (VP8)", OFFSET(vbr_bias),
FF_OPT_TYPE_INT, 50, 0, 100, V|E},
+{"lag", "Allow lagged encoding, given as frames (VP8)", OFFSET(lag),
FF_OPT_TYPE_INT, 0, 0, INT_MAX, V|E},
+{"sharpness", "[0-7] (VP8)", OFFSET(sharpness), FF_OPT_TYPE_INT, 0, 0, 7,
V|E},
+{"altref", "Allow use of alternate reference frame", OFFSET(altref),
FF_OPT_TYPE_INT, 0, 0, 1, V|E},
+{"ar_max_frames", "Max frames used in creating alt. ref. [0,25]",
OFFSET(ar_max_frames), FF_OPT_TYPE_INT, 0, 0, 25, V|E},
+{"ar_type", "Filter type used in creating alt. ref.", OFFSET(ar_type),
FF_OPT_TYPE_INT, 0, 0, INT_MAX, V|E},
+{"ar_strength", "Filter strength used in creating alt. ref. [0,6]",
OFFSET(ar_strength), FF_OPT_TYPE_INT, 0, 0, 6, V|E},
+{"mb_static_threshold", "", OFFSET(mb_static_threshold), FF_OPT_TYPE_INT,
800, 0, INT_MAX, V|E},
+{"rc_opt_occupancy", "number of bits which should be kept in the rc buffer
during decoding", OFFSET(rc_optimal_buffer_occupancy), FF_OPT_TYPE_INT,
DEFAULT, INT_MIN, INT_MAX, V|E},
+{"token_partitions", "Number of sub-streams in bitstream (1,2,4,8). Used
for parallelized decoding.", OFFSET(token_partitions), FF_OPT_TYPE_INT, 1,
1, INT_MAX, V|E},

However, at the latest svn I can find no trace of it. I could try to patch
it myself but I am afraid I do not understand the code well enough to do
so.I presume there is a reason why this was pulled? Of course, I couldn't
just patch options.c but also what it references and I'd probably make a big
mess.

Again, thank you very much so far for your help.


More information about the MPlayer-users mailing list