Encode YUV420 buffer with appsrc

Michael MacIntosh mmacintosh at linear-systems.com
Fri Dec 8 22:08:34 UTC 2017


Hey,

I was running into a similar issue, usually this is because the state 
change deadlocked.  In my case, I was doing a state change to null too 
soon after setting it to playing.  Adding a delay fixed the issue.

Looking at your code, it looks like you call stop recording, and then 
shutdown, which calls stop recording.  So it looks like you may be 
setting the state to null twice.  The second time while it is 
asynchronously changing to null, which might be the cause of your 
deadlock.  You could try polling the bus to wait for the state change to 
finish.

Hope that helps!


On 12/6/2017 10:58 PM, pchaurasia wrote:
> Hi Antonio,
>
> I seem to be running into another issue. This one comes when the encoder is
> looking to terminate. The following lines in aaDebug.cpp line no.234 seem to
> be blocking the code execution indefinitely :
>
> state_ret = gst_element_set_state((GstElement*)m_ppipeline, GST_STATE_NULL);
>
> The code can be found at :
>
>   https://github.com/pcgamelore/SingleCameraPlaceholder
>
> Please let me know if there is something which I am missing.
>
> Thanks
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list