Vignesh Venkatasubramanian
33968c201c
Fixing a stride issue in VP8 Alpha encode
...
When encoding alpha channel in libvpx, the stride isn't set
properly for the alpha encoder. Fixing it.
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a20f049c2a
avcodec/libvpxenc: make class names unique
...
This should fix an infinite loop with -h full
Found-by: <Foofie>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Vignesh Venkatasubramanian
98c292a7a8
Adding support for encoding VP8 Alpha
...
This patch adds support for encoding VP8 files with alpha. The alpha channel
is encoded separately and the output is placed in AVPacket's side_data. The
muxer then muxes it into the BlockAdditional element of the matroska container.
More details on spec here: http://goo.gl/wCP1y
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
1d178710b4
libvpxenc: dont redundantly zero fields, the whole context is zeroed on init
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Pascal Massimino
3c3a8c1489
libvpxenc: add psnr support
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
slhck
bfcc38ef48
libvpx: check if CQ level is in correct bounds
...
Check whether CQ level is within qmin..qmax and abort on error. If this isn't properly
set, encoding will fail at the first frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
slhck
188947c32a
libvpx: allow 0 as min quantizer value
...
Allow setting the min quantizer to 0 instead of 1 (libvpx allows 0); fixes #2136
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
3f111804eb
libvpx: make vp8 and vp9 selectable
...
Support older libvpx versions.
12 years ago
Luca Barbato
dab1f543fc
libvpx: support vp9
...
This feature is experimental use at your risk
12 years ago
Martin Storsjö
774e6fc9ed
libvpxenc: Support forcing keyframes
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
James Zern
12776d5d2a
libvpxenc: Allow enabling constrained quality (CQ) mode
...
The CQ mode was introduced in libvpx 0.9.6.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
104b1d9e10
libvpxenc: fix memleak on error path
...
Fixes CID733795
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
57e1553e9f
libvpcenc: fix flags voption types
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
d58dd4b5b5
avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
ceb8773e16
libvpxenc: Fix CQ encoding without a specified bitrate
...
Also print a warning if neither quality nor bitrate is specified
and use the libvpx default bitrate in this case.
The idea of using the default bitrate is from Luca Barbato
Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1ee7a2955f
libvpxenc: only force CBR if a bitrate is set
...
Reviewed-by: James Zern <jzern@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
4aa3d7b3f2
libvpxenc: use the default bitrate if not set
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Michael Niedermayer
75cd9a62f4
libvpxenc: check for odd RC parameter combinations that could crash
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d472453efd
libvpxenc: fix division by zero
...
Reported-by: thresh
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Michael Niedermayer
9746f87f15
libvpxenc: switch to av_assert
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
James Zern
cb7f062286
libvpxenc: add support for forced key frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
James Zern
695e85f189
libvpxenc: add VP8E_SET_MAX_INTRA_BITRATE_PCT mapping
...
defines 'max-intra-rate' in line with vpxenc param
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
316defa93c
libvpxenc: switch to ff_alloc_packet2().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d8f3365fb0
libvpxenc: switch to encode2().
13 years ago
Alex Converse
b0f29db5c2
Mark mutable static data const where appropriate.
13 years ago
Paul B Mahol
668a0b152b
libvpxenc: update after FF_API_X264_GLOBAL_OPTS removal
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Janne Grunau
f6a152db11
threads: add CODEC_CAP_AUTO_THREADS for libvpx and xavs
13 years ago
James Zern
95afa0a573
libvpxenc: restore vp8flags for compatibility
...
removed in 98df93c
, this makes the documentation correct again.
Found-by: j@v2v.cc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
02026d08a9
libvpxenc: Remove duplicate AVOption constants.
...
Found-by: j@v2v.cc
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
439e1d196b
libvpxenc: Fix "Additional information: g_lag_in_frames out of range [..25]"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
539399d4d1
AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Luca Barbato
98df93c9fe
libvpxenc: support vpxencs command line options.
...
This simplifies useage for users who are used to vpxenc.
We continue to support the previous options with the exception of the flags
for which it would be slightly messy.
13 years ago
Anton Khirnov
24ec9ac475
libvpx: fix build with older libvpx versions.
...
VPX_ERROR_RESILIENT_DEFAULT and VPX_ERROR_RESILIENT_PARTITIONS weren't
defined before 4cb0ebe5b27d35ccc2a78c1d16f2622ddef21f74 (CommitDate: Tue
Jun 28 11:10:17 2011)
13 years ago
Michael Niedermayer
6edce391cf
libvpxenc: cosmetics to make code more similar to lucas.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
6450f26c9a
libvpxenc: use libvpx's own defaults for some parameters
...
Specifically, qmin/qmax, gop_size and keyint_min.
Fixes bug 47.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Luca Barbato
e3eb015ba4
vpxenc: add private options
...
Make libvpx support close to the libx264 one. Thanks to
Jan Gerber <j@v2v.cc> for the support.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Nicolas George
769298a686
libvpxenc: Replace av_realloc by av_realloc_f when relevant.
...
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
James Zern
1da43f7e99
libvpxenc: add 'crf' private option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
James Zern
3dc14b4628
libvpxenc: add 'rc_lookahead' private option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
James Zern
fb99d78778
libvpxenc: silence AVOption related warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
14 years ago
Robert Swain
954a653216
vorbis: vpxenc: Add missing include for av_rescale*
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
1929807bef
libvpxenc: add forgotten AVClass.
...
Fixes Ticket269
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago