summaryrefslogtreecommitdiff
path: root/ext/opus/gstopusenc.c
Commit message (Collapse)AuthorAgeFilesLines
* opusenc: remove deprecated "cbr", "audio", and "constrained-vbr" propertiesTim-Philipp Müller2016-02-261-66/+0
| | | | | | They have been replaced by "audio-type" and "bitrate-type". https://bugzilla.gnome.org/show_bug.cgi?id=756282
* plugins-bad: Fix example pipelinesVineeth TM2015-12-151-1/+1
| | | | | | | | rename gst-launch --> gst-launch-1.0 replace old elements with new elements(ffmpegcolorspace -> videoconvert, ffenc_** -> avenc_**) fix caps in examples https://bugzilla.gnome.org/show_bug.cgi?id=759432
* Remove unnecessary NULL checks before g_free()Reynaldo H. Verdejo Pinochet2015-11-181-2/+1
| | | | g_free() is NULL-safe
* opusenc: avoid potential overflow expressionLuis de Bethencourt2015-11-121-2/+3
| | | | | | | The result of the two expressions will be promoted to guint64 anyway, perform all the arithmetic in 64 bits to avoid potential overflows. CID 1338690, CID 1338691
* opusenc: Create an empty taglist if there is noneSebastian Dröge2015-11-041-0/+5
| | | | | There always have to be 2 buffers in the streamheaders, even if the comment buffer is basically empty.
* opus: Add proper support for multichannel audioSebastian Dröge2015-11-031-85/+111
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757152
* opusenc: Add GstAudioClippingMeta to buffers that need to be clippedSebastian Dröge2015-11-031-4/+20
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757153
* opusenc: Disable granule position calculations by the base classSebastian Dröge2015-11-031-6/+0
| | | | | | | | | It is doing the wrong thing because of the Opus pre-skip: while the timestamps are shifted by the pre-skip, the granule positions are not shifted. oggmux is doing the right thing here already. https://bugzilla.gnome.org/show_bug.cgi?id=757153
* opusenc: Add some FIXME comments about calculating padding with LPCSebastian Dröge2015-11-031-0/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757153
* opusenc: Encode exactly the amount of samples we got as input and put ↵Sebastian Dröge2015-11-031-11/+55
| | | | | | | | | | | | | | | | | | | | correct timestamps on it The first frame has lookahead less samples, the last frame might have some padding or we might have to encode another frame of silence to get all our input into the encoded data. This is because of a) the lookahead at the beginning of the encoding, which shifts all data by that amount of samples and b) the padding needed to fill the very last frame completely. Ideally we would use LPC to calculate something better than silence for the padding to make the encoding as smooth as possible. With this we get exactly the same amount of samples again in an opusenc ! opusdec pipeline. https://bugzilla.gnome.org/show_bug.cgi?id=757153
* opusenc: Put lookahead/pre-skip into the OpusHead headerSebastian Dröge2015-11-031-3/+10
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=757153
* opusenc: Place 48kHz first in the capsSebastian Dröge2015-11-021-1/+6
| | | | For all the other sample rates the encoder will have to resample internally.
* opusenc: improve deprecated properties docsMiguel París Díaz2015-09-111-12/+12
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754819
* opusenc: do not throw g_warning when getting deprecated propertiesMiguel París Díaz2015-09-111-3/+8
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=754819
* audioencoders: use template subset check for accept-capsThiago Santos2015-08-171-0/+2
| | | | | | | It is faster than doing a query that propagates downstream and should be enough Elements: faac, gsmenc, opusenc, sbcenc, voamrwbenc, adpcmenc, sirenenc
* opusenc: Add bitrate to the tagsMersad Jelacic2015-06-221-0/+20
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=750992
* opus: fix includes and compilation against opus in non-standard prefixTim-Philipp Müller2015-04-281-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=748594
* opus: don't use deprecated gst_buffer_new_and_allocMersad Jelacic2015-04-281-1/+3
| | | | | | Use the helper function available in the base class instead. https://bugzilla.gnome.org/show_bug.cgi?id=748585
* opus: Fix incorrect fall-through condition in property getterArun Raghavan2015-04-031-1/+1
|
* opusenc: fall through switch statementLuis de Bethencourt2015-03-241-0/+1
| | | | | | Adding a comment makes coverity happy and quells the issue. CID 1291629
* opusenc: Set output format immediately after creating the encoder instanceSebastian Dröge2015-03-231-17/+14
| | | | | We know the caps by then, there's no need to wait until we actually receive the first buffer.
* opusenc: Remove another unused variableSebastian Dröge2015-03-231-3/+0
|
* opusenc: Remove useless headers and header_sent variables from the instance ↵Sebastian Dröge2015-03-231-14/+2
| | | | | | struct They are only used inside a single function.
* opusenc: replace cbr and constrained-vbr properties with an enumVincent Penquerc'h2015-03-121-12/+75
| | | | | | It was deemed confusing before. https://bugzilla.gnome.org/show_bug.cgi?id=744909
* opusenc: Remove g_warnings() for the deprecated audio propertySebastian Dröge2015-02-181-4/+0
| | | | | Otherwise there are g_warnings() already when just using gst-inspect or dumping a pipeline graph.
* opusenc: change audio property to audio-typeVincent Penquerc'h2015-01-291-9/+51
| | | | | | This is now an enum with values generic (default) and voice. https://bugzilla.gnome.org/show_bug.cgi?id=740891
* opusenc: plug ref leak of template capsThiago Santos2014-12-171-3/+1
| | | | the pad template caps is already a new ref. No need to copy.
* opusenc: update output segment stop time to match clipped samplesVincent Penquerc'h2014-10-301-0/+27
| | | | | This will let oggmux generate a granpos on the last page that properly represents the clipped samples at the end of the stream.
* opusenc: Unref pad template caps after usageSebastian Rasmussen2014-08-111-5/+6
| | | | Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734517
* opusenc: Use aux vars to minimize critical regionMiguel París Díaz2014-05-261-9/+17
| | | | | | | | This avoid dead lock between gst_audio_encoder_finish_frame() and gst_opus_enc_get_property(). Also, now bytes var is set into protected section. https://bugzilla.gnome.org/show_bug.cgi?id=729882
* opusenc: increase max payload size to 4000 bytesVincent Penquerc'h2013-12-271-2/+2
| | | | | | 1275 is the maximum size of a frame, but the encoder may return up to 3 frames, and we need a few extra bytes for TOC, etc. We use 4000, which is a bit more, and suggested in the libopus docs.
* opusenc: fix crash when setting "cbr" property when encoder is not running yetTim-Philipp Müller2013-01-281-1/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=692698
* opus: use appropriate printf format for gsizeThijs Vermeir2012-12-181-1/+1
|
* Fix FSF addressTim-Philipp Müller2012-11-041-2/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=687520
* Use gst_element_class_set_static_metadata()Tim-Philipp Müller2012-10-171-1/+1
| | | | | where possible. Avoids some string copies. Also re-indent some stuff. Also some indent fixes here and there.
* replace gst_element_class_set_details_simple with gst_element_class_set_metadataMark Nauwelaerts2012-09-141-1/+1
|
* opus + jpegformat: unbreak non-debug buildPeter Korsgaard2012-09-121-2/+2
| | | | | | | | | | opus + jpegformat plugin builds fail when gstreamer is configured with --disable-gst-debug as they are checking the GST_DISABLE_DEBUG symbol instead of GST_DISABLE_GST_DEBUG. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> https://bugzilla.gnome.org/show_bug.cgi?id=683850
* opusenc: port to the new GLib thread APIMark Nauwelaerts2012-09-111-17/+17
|
* gst_tag_list_free -> gst_tag_list_unrefTim-Philipp Müller2012-08-041-1/+1
|
* opusenc: add missing mutex unlock on error pathVincent Penquerc'h2012-06-151-1/+3
|
* opus: set author to myself, and update copyright noticesVincent Penquerc'h2012-06-151-1/+1
| | | | because as slomo noted, in fact pretty much all the code in there is mine.
* opusenc: fixup mergeMark Nauwelaerts2012-03-301-3/+2
|
* ext: Update for GstAudioEncoder API changesSebastian Dröge2012-03-301-2/+2
|
* Merge remote-tracking branch 'origin/0.10'Sebastian Dröge2012-03-291-43/+40
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: NEWS RELEASE common configure.ac docs/libs/gst-plugins-bad-libs-sections.txt docs/plugins/gst-plugins-bad-plugins.args docs/plugins/gst-plugins-bad-plugins.hierarchy docs/plugins/gst-plugins-bad-plugins.interfaces docs/plugins/inspect/plugin-adpcmdec.xml docs/plugins/inspect/plugin-adpcmenc.xml docs/plugins/inspect/plugin-assrender.xml docs/plugins/inspect/plugin-audiovisualizers.xml docs/plugins/inspect/plugin-autoconvert.xml docs/plugins/inspect/plugin-bayer.xml docs/plugins/inspect/plugin-bz2.xml docs/plugins/inspect/plugin-camerabin2.xml docs/plugins/inspect/plugin-celt.xml docs/plugins/inspect/plugin-dataurisrc.xml docs/plugins/inspect/plugin-debugutilsbad.xml docs/plugins/inspect/plugin-dtmf.xml docs/plugins/inspect/plugin-dtsdec.xml docs/plugins/inspect/plugin-dvbsuboverlay.xml docs/plugins/inspect/plugin-dvdspu.xml docs/plugins/inspect/plugin-faac.xml docs/plugins/inspect/plugin-faad.xml docs/plugins/inspect/plugin-gsm.xml docs/plugins/inspect/plugin-h264parse.xml docs/plugins/inspect/plugin-mms.xml docs/plugins/inspect/plugin-modplug.xml docs/plugins/inspect/plugin-mpeg2enc.xml docs/plugins/inspect/plugin-mpegdemux2.xml docs/plugins/inspect/plugin-mpegtsdemux.xml docs/plugins/inspect/plugin-mpegvideoparse.xml docs/plugins/inspect/plugin-mplex.xml docs/plugins/inspect/plugin-pcapparse.xml docs/plugins/inspect/plugin-rawparse.xml docs/plugins/inspect/plugin-rtpmux.xml docs/plugins/inspect/plugin-rtpvp8.xml docs/plugins/inspect/plugin-scaletempo.xml docs/plugins/inspect/plugin-schro.xml docs/plugins/inspect/plugin-sdp.xml docs/plugins/inspect/plugin-segmentclip.xml docs/plugins/inspect/plugin-shm.xml docs/plugins/inspect/plugin-videomaxrate.xml docs/plugins/inspect/plugin-videoparsersbad.xml docs/plugins/inspect/plugin-vp8.xml docs/plugins/inspect/plugin-y4mdec.xml ext/celt/gstceltdec.c ext/dts/gstdtsdec.c ext/modplug/gstmodplug.cc ext/opus/gstopusenc.c gst-libs/gst/video/gstbasevideocodec.c gst-libs/gst/video/gstbasevideocodec.h gst-libs/gst/video/gstbasevideodecoder.c gst-libs/gst/video/gstbasevideodecoder.h gst-libs/gst/video/gstbasevideoencoder.c gst-libs/gst/video/gstbasevideoencoder.h gst/adpcmdec/Makefile.am gst/audiovisualizers/gstbaseaudiovisualizer.c gst/h264parse/gsth264parse.c gst/mpegdemux/mpegtsparse.c gst/mpegtsdemux/mpegtsbase.c gst/mpegtsdemux/mpegtspacketizer.c gst/mpegtsdemux/mpegtsparse.c gst/mpegtsdemux/tsdemux.c gst/mpegtsdemux/tsdemux.h gst/mxf/mxfdemux.c gst/rawparse/gstaudioparse.c gst/videoparsers/gsth263parse.c gst/videoparsers/gsth264parse.c sys/d3dvideosink/d3dvideosink.c sys/decklink/gstdecklinksink.cpp sys/dvb/gstdvbsrc.c sys/shm/gstshmsrc.c sys/vdpau/h264/gstvdph264dec.c sys/vdpau/mpeg/gstvdpmpegdec.c tests/examples/opencv/gst_element_print_properties.c win32/common/config.h
| * opusenc: only request and process 1 frame at a timeMark Nauwelaerts2012-03-071-39/+31
| | | | | | | | | | | | | | | | | | ... since it is specified in _finish_frame that input buffer may be invalidated after calling it, and is as such not reliably available for further encoding. Also, requesting or allowing several frames is only useful if subclass intends to process these "in 1 run" (as in, 1 output buffer), not for having another (inner) loop in subclass where the baseclass one will do just fine.
| * opusenc: configure baseclass requested samples really in samplesMark Nauwelaerts2012-03-071-4/+2
| | | | | | | | ... as opposed to bytes.
* | opus: port to updated 0.11Mark Nauwelaerts2012-03-071-12/+13
| |
* | audioencoders: chain up to parent event handlerWim Taymans2012-02-271-1/+1
| |
* | Merge branch 'master' into 0.11Wim Taymans2012-02-101-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: ext/chromaprint/gstchromaprint.c ext/mpeg2enc/Makefile.am ext/voaacenc/gstvoaacenc.c gst/dvbsuboverlay/gstdvbsuboverlay.c gst/mpegtsdemux/mpegtsbase.c gst/sdp/gstsdpdemux.c gst/videoparsers/gsth264parse.c sys/d3dvideosink/d3dvideosink.c tests/examples/camerabin/gst-camera-perf.c tests/examples/camerabin/gst-camerabin-test.c tests/examples/camerabin2/gst-camerabin2-test.c tests/examples/mxf/mxfdemux-structure.c tests/examples/scaletempo/demo-main.c
| * plenty: fixup glib deprecationsVincent Penquerc'h2012-01-271-0/+1
| |