![]() |
![]() |
![]() |
GStreamer Base Plugins 0.10 Plugins Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Properties |
The theoraparse element will parse the header packets of the Theora stream and put them as the streamheader in the caps. This is used in the multifdsink case where you want to stream live theora streams to multiple clients, each client has to receive the streamheaders first before they can consume the theora packets.
This element also makes sure that the buffers that it pushes out are properly timestamped and that their offset and offset_end are set. The buffers that theoraparse outputs have all of the metadata that oggmux expects to receive, which allows you to (for example) remux an ogg/theora file.
In addition, this element allows you to fix badly synchronized streams. You pass in an array of (granule time, buffer time) synchronization points via the synchronization-points GValueArray property, and this element will adjust the granulepos values that it outputs. The adjustment will be made by offsetting all buffers that it outputs by a specified amount, and updating that offset from the value array whenever a keyframe is processed.
1 |
gst-launch -v filesrc location=video.ogg ! oggdemux ! theoraparse ! fakesink |
1 2 |
gst-launch filesrc location=video.ogg ! oggdemux ! theoraparse \ ! oggmux ! filesink location=video-remuxed.ogg |
Last reviewed on 2008-05-28 (0.10.20)
typedef struct { GstElement element; GstPad * sinkpad; GstPad * srcpad; gboolean send_streamheader; gboolean streamheader_received; gboolean is_old_bitstream; GstBuffer * streamheader[3]; GQueue * event_queue; GQueue * buffer_queue; th_info info; th_comment comment; gint64 prev_frame; gint64 prev_keyframe; guint32 fps_n; guint32 fps_d; gint shift; gint64 granule_offset; GstClockTime *times; gint npairs; } GstTheoraParse;
Opaque data structure.