mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
Some info from the encoder.
Original commit message from CVS: Some info from the encoder. Can someone fix the libvorbis CFLAGS in the Makefile.am?
This commit is contained in:
parent
6848cd2f4c
commit
b0576db5f3
1 changed files with 11 additions and 1 deletions
|
@ -145,6 +145,7 @@ gst_vorbisenc_init (VorbisEnc * vorbisenc)
|
|||
static void
|
||||
gst_vorbisenc_setup (VorbisEnc * vorbisenc)
|
||||
{
|
||||
static const gchar *comment = "Track encodec with GStreamer";
|
||||
/********** Encode setup ************/
|
||||
|
||||
/* choose an encoding mode */
|
||||
|
@ -153,9 +154,18 @@ gst_vorbisenc_setup (VorbisEnc * vorbisenc)
|
|||
vorbis_encode_init (&vorbisenc->vi, vorbisenc->channels, vorbisenc->frequency,
|
||||
-1, vorbisenc->bitrate, -1);
|
||||
|
||||
gst_element_send_event (GST_ELEMENT (vorbisenc),
|
||||
gst_event_new_info ("channels", GST_PROPS_INT (vorbisenc->channels), NULL));
|
||||
gst_element_send_event (GST_ELEMENT (vorbisenc),
|
||||
gst_event_new_info ("rate", GST_PROPS_INT (vorbisenc->frequency), NULL));
|
||||
gst_element_send_event (GST_ELEMENT (vorbisenc),
|
||||
gst_event_new_info ("bitrate_nominal", GST_PROPS_INT (vorbisenc->bitrate), NULL));
|
||||
|
||||
/* add a comment */
|
||||
vorbis_comment_init (&vorbisenc->vc);
|
||||
vorbis_comment_add (&vorbisenc->vc, "Track encoded with GStreamer");
|
||||
vorbis_comment_add (&vorbisenc->vc, comment);
|
||||
gst_element_send_event (GST_ELEMENT (vorbisenc),
|
||||
gst_event_new_info ("comment", GST_PROPS_STRING (comment), NULL));
|
||||
|
||||
/* set up the analysis state and auxiliary encoding storage */
|
||||
vorbis_analysis_init (&vorbisenc->vd, &vorbisenc->vi);
|
||||
|
|
Loading…
Reference in a new issue