how to force GstBaseParse to lost sync

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to force GstBaseParse to lost sync

Julien Isorce
Hi,

I would like to force ac3parse to resync (see gst_ac3_parse_check_valid_frame, sync word) somewhere in the stream.

I looked into GstBaseParse code and it seems to depend on "parse->priv->discont".
 
And it seems there are 2 ways:

* call gst_element_set_state(ac3parse, GST_ELEMENT_READY) to call "gst_base_parse_reset" to set discont to TRUE. (then back to PLAYING)
* push a GST_EVENT_FLUSH_STOP on the source pad connected to the sink pad of ac3parse.

But those 2 solutions are also reseting every stuffs in ac3parse whereas I just would like to resync. (I would like to make GST_BASE_PARSE_FLAG_LOST_SYNC return TRUE).

Is it already possible ? Or it needs some dev ?

Sincerely
Julien



_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to force GstBaseParse to lost sync

Tim-Philipp Müller-2
On Fri, 2011-09-23 at 12:12 +0200, Julien Isorce wrote:

> I would like to force ac3parse to resync (see
> gst_ac3_parse_check_valid_frame, sync word) somewhere in the stream.

Are you going to tell us why as well? :)

 Cheers
  -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to force GstBaseParse to lost sync

Julien Isorce
:)  well it seems I am trying to by pass a bug or a mal formated ac3 buffer. I do not know who is wrong yet.
I am going to open a bug to follow that.

Julien

2011/9/23 Tim-Philipp Müller <[hidden email]>
On Fri, 2011-09-23 at 12:12 +0200, Julien Isorce wrote:

> I would like to force ac3parse to resync (see
> gst_ac3_parse_check_valid_frame, sync word) somewhere in the stream.

Are you going to tell us why as well? :)

 Cheers
 -Tim


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel