Sebastian Dröge
43e575319e
vp8enc: Update for GstBaseVideoEncoder::finish() signature change
2011-07-21 08:09:11 +02:00
Olivier Crête
eba9cf06d4
vp8: Fix set-but-unused warnings
2011-07-12 18:05:25 -04:00
Sebastian Dröge
b0d619855c
vp8enc: Use destroy notify to free the coder hook
2011-07-09 11:31:02 +02:00
David Schleef
2a1d4c9b4a
vp8enc: update for new libvpx api
2011-07-04 16:34:48 -07:00
Alexey Fisher
d1fe501eb7
vp8enc: generate a timestamp for alt-ref frames.
...
It will fix handling of altref/invisible frames since matroska-mux
drop any fram with no timestamp.
see also:
http://www.webmproject.org/code/specs/container/
The encoder will currently set the AR's timestamp as close as possible
to the previous frame while attempting to provide a timestamp that is
strictly increasing. In cases where the time base given to the encoder
at configure time is not granular enough to allow for this the AR
will share the same timestamp as D, but should be
treated as having no duration.
Fixes bug #652951
Signed-off-by: Alexey Fisher <bug-track@fisher-privat.net>
2011-06-26 16:56:33 +02:00
Sebastian Dröge
23f9286d88
vp8enc: Name max/min quantizer properties {max,min}-quantizer
...
Also improve quality property description.
2011-05-18 13:27:20 +02:00
Alexey Fisher
1b650b6486
vp8enc: Add properties to select a maximum and minimum quantizer
...
Fixes bug #641405 .
2011-05-18 13:26:23 +02:00
Alexey Fisher
a9ea882307
vp8enc: Fix quality to (constant) quantizer mapping
...
This now allows to select all possible quantizers between
0 and 63.
See bug #641405 .
2011-05-18 13:18:58 +02:00
Mark Nauwelaerts
d15b8c7ad3
basevideoencoder: provide proper upstream flow return handling
2011-05-16 20:32:21 +02:00
Mark Nauwelaerts
b7ae60f617
vp8enc: minor optimization in setting up image buffer
2011-05-16 20:32:21 +02:00
Mark Nauwelaerts
1cd8e12c19
vp8enc: refactor frame processing
2011-05-16 20:32:20 +02:00
Mark Nauwelaerts
424e3afe22
vp8enc: do init at set_format time
2011-05-16 20:32:20 +02:00
Mark Nauwelaerts
3d09056c70
vp8enc: fix keyframe forcing
2011-05-16 20:32:20 +02:00
Mark Nauwelaerts
b0c982db5b
basevideocodec: remove redundant caps field
...
... as it is already at hand as the src pad's negotiated caps.
2011-05-16 20:32:20 +02:00
Mark Nauwelaerts
404f491c19
vp8enc: use baseclass event virtual handler
2011-05-16 20:32:19 +02:00
Alexey Fisher
2b4c854146
vp8enc: Add description for bitrate units.
2011-02-04 00:24:04 -08:00
David Schleef
4eee2dc95d
vp8enc: Readd setting of granulepos
...
Revert parts of last patch that removed setting of granulepos.
oggmux still requires correct granulepos in incoming packet.
2010-11-30 18:43:24 -08:00
David Schleef
01574dc012
vp8enc: Don't override timestamps set by base class
...
Because the base class does it correctly.
Fixes : #635720 , #625558 .
2010-11-30 18:34:34 -08:00
Edward Hervey
7a88aca460
vp8: Remove dead assignments
2010-11-25 18:52:47 +01:00
David Schleef
fe50055715
basevideo: Move common fields/functions to basecodec
2010-10-15 16:30:57 -07:00
Sebastian Dröge
2dba63a19c
vp8enc: Add support for enabling automatic insertion of alt-ref frames by the encoder
2010-07-10 16:52:10 +02:00
Sebastian Dröge
98048829b0
vp8enc: Fix handling of invisible/alt ref frames
2010-07-10 16:51:53 +02:00
Sebastian Dröge
dcd0b3599c
vp8: Add initial documentation, based on the theoradec/theoraenc documentation
2010-07-03 17:47:29 +02:00
Sebastian Dröge
8c85e1c0a0
vp8: Move structure definitions, etc to public header files for gtk-doc
2010-07-03 17:34:58 +02:00
Sebastian Dröge
351bb1bbb6
vp8enc: Implement multipass encoding
...
Fixes bug #621348 .
2010-06-15 11:51:41 +02:00
Sebastian Dröge
0679c76b64
vp8enc: Set VP8E_SET_CPUUSED to 0
...
This setting controls how much CPU can be used by the encoder, specified
in fractions of 16. Negative values mean strict enforcement of this
while positive values are adaptive.
The default value is -4, which means that we're not running as fast
as possible and probably are wasting some quality. 0 is the recommended
default by libvpx upstream.
2010-06-14 15:56:24 +02:00
Sebastian Dröge
c2809e6843
vp8enc: Use VPX defines for REALTIME, GOOD/BEST quality deadlines instead of our own
...
These are the values used for the speed property.
2010-06-14 15:52:28 +02:00
Tim-Philipp Müller
f49f4c0bd4
vp8enc: fix printf format warning in log message
...
gstvp8enc.c:564: error: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’
gstvp8enc.c:744: error: format ‘%d’ expects type ‘int’, but argument 8 has type ‘size_t’
2010-06-03 10:49:40 +01:00
Sebastian Dröge
443af97a41
vp8: Use VPX_PLANE_* instead of PLANE_*
2010-06-01 11:19:46 +02:00
Philip Jägenstedt
4c552be9d9
vp8dec: s/IMG_FMT_I420/VPX_IMG_FMT_I420/
...
This corresponds to upstream libvpx commit 6cd4a10e167203d1deb79abf60ee72599e97891b
2010-06-01 11:19:46 +02:00
Sebastian Dröge
b43afeffd7
vp8enc: Allow a maximum keyframe distance of 0, i.e. all frames are keyframes
2010-06-01 11:19:46 +02:00
Sebastian Dröge
e9c48d1671
vp8enc: Move debug output one line above where the packet is still valid
2010-05-28 16:35:50 +02:00
Sebastian Dröge
1e1d52f4fc
vp8enc: Correctly ignore non-frame packets from the encoder
...
Fixes bug #619916 .
2010-05-28 15:01:15 +01:00
Sebastian Dröge
2fa8d69d82
vp8enc: Use GST_VIDEO_CAPS_YUV(I420) instead of handwritten I420 caps for the pad template
...
Fixes bug #619344 .
2010-05-22 11:00:44 +02:00
Philip Jägenstedt
7ce969720f
vp8enc: threads property
...
Increasing from 1 to 2 threads on an Thinkpad X60s decreased encode time
in a test from ~24 s to ~19 s, so this is quite useful.
Ideally we should let 0 be the default and automatically match the number
of CPU cores (or something).
2010-05-21 22:23:13 +02:00
Philip Jägenstedt
17ab21dae3
vp8enc: add mode property to switch between CBR/VBR
...
Always using CBR when bitrate is used isn't that great, VBR mode
can produce meaningful results too.
2010-05-21 22:23:04 +02:00
Philip Jägenstedt
54e6f65ef3
vp8: move #ifdef HAVE_VP8_ENCODER/DECODER
...
Otherwise we'll try including e.g. <vpx/vp8cx.h> which doesn't exist.
2010-05-21 08:27:06 +02:00
Sebastian Dröge
d0f09279ed
vp8enc: Write GStreamer element and version in the vorbiscomment vendor string
2010-05-20 20:06:09 +02:00
Sebastian Dröge
d3c9d84fdf
vp8: Only enable the encoder or decoder if it's available in libvpx
...
Fixes bug #619172 .
2010-05-20 16:49:55 +02:00
Philip Jägenstedt
e428c10605
vp8: exlcude dec/enc based on CONFIG_VP8_DECODER/ENCODER
...
This may not be very autotoolish, but works with libvpx in the state
that libvpx is actually in. Moved the debug init to the elements
themselves to minimize amount of #ifdefs
2010-05-20 16:49:55 +02:00
Philip Jägenstedt
2f4ea3b734
vp8enc: Limit max-latency to 25 to match libvpx
...
From libvpx/vp8/encoder/onyx_int.h:
#define MAX_LAG_BUFFERS (CONFIG_REALTIME_ONLY? 1 : 25)
While we don't need to be tied to what libvpx does internally, it
doesn't make sense to pretend to support longer frame lags than are
actually possible.
2010-05-20 10:37:24 +02:00
Sebastian Dröge
fd77b419a4
vp8: Undef HAVE_CONFIG_H before including libvpx headers
...
A public libvpx header includes private headers if this is
defined, causing compilation failures because the private headers
are not installed of course.
2010-05-20 09:56:25 +02:00
Sebastian Dröge
973267747c
vp8enc: Some more minor adjustments for the Ogg mapping
2010-05-20 08:55:44 +02:00
Sebastian Dröge
9b0cd2ef95
vp8enc: Adjust Ogg mapping for the changes
2010-05-19 21:34:42 +02:00
Sebastian Dröge
28736fa1d4
vp8enc: Rename keyframe-interval to max-keyframe-distance
...
And use default settings for buffer sizes until we expose this
somehow.
2010-05-19 19:24:04 +02:00
Sebastian Dröge
ab14c8cf5a
vp8: Improve error handling and debug output
2010-05-19 19:24:04 +02:00
Sebastian Dröge
31d603b3c9
vp8: Use correct strides and plane offsets for GStreamer
2010-05-19 19:24:03 +02:00
Sebastian Dröge
10a02618c2
vp8enc: Implement GstTagSetter interface
2010-05-19 19:24:03 +02:00
Sebastian Dröge
09c879ea21
vp8enc: Fix setting of the keyframe flag on encoded frames
2010-05-19 19:24:03 +02:00
Sebastian Dröge
dd97378702
vp8enc: Post an error message on the bus if encoder initialization fails
2010-05-19 19:24:03 +02:00