mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
0ad84fae5d
Original commit message from CVS: 2006-01-30 Andy Wingo <wingo@pobox.com> * tests/check/Makefile.am (check_vorbis): Add pipelines/vorbisenc. * ext/vorbis/vorbisenc.c (gst_vorbisenc_buffer_from_packet): Logic updated to timestamp from the first sample, not the last. (gst_vorbisenc_buffer_from_header_packet): New function, takes special care of granulepos and timestamp for header packets. (gst_vorbisenc_chain): Reflow, fix some leaks, and handle the case when the first buffer has a nonzero timestamp. * ext/vorbis/vorbisenc.h (GstVorbisEnc.granulepos_offset) (GstVorbisEnc.subgranule_offset): New members. Take care of the case when the first audio buffer we get has a nonzero timestamp. (GstVorbisEnc.next_ts): Renamed from prev_ts, because now we properly timestamp vorbis buffers with the time of the first sample, not the last. * ext/vorbis/vorbisenc.c (granulepos_to_clocktime): Renamed from vorbis_granule_time_copy -- now it takes the granule/subgranule offset into account. * tests/check/pipelines/vorbisenc.c: New test for correctness of timestamps, durations, and granulepos on buffers produced by vorbisenc. |
||
---|---|---|
.. | ||
Makefile.am | ||
README | ||
vorbis.c | ||
vorbisdec.c | ||
vorbisdec.h | ||
vorbisenc.c | ||
vorbisenc.h | ||
vorbisparse.c | ||
vorbisparse.h |
oggvorbisenc : encodes to vorbis inside an ogg stream. This is not the GStreamer way of doing things and should be removed for 0.9. It is still called "vorbisenc" for backward compatibility reasons. It also takes integer audio as input. vorbisenc : Encodes to a raw vorbis stream and should be used together with an ogg muxer such as "oggmux" it is called "rawvorbisenc". It also takes raw float samples as input. TODO for 0.9: - remove oggvorbisenc.c and oggvorbisenc.h - remove references to oggvorbisenc.[ch] in the Makefile and in vorbis.c - remove the element vorbisenc. - rename the element rawvorbisenc to vorbisenc.