get_request_pad from encodebin return None
RiccardoCagnasso
riccardo at phascode.org
Wed Oct 10 06:50:02 UTC 2018
Ok time to bother you guys with some more issues.
1) Even if I set "avoid-reencoding" to True, it seems to re-encode h264
strems in my tests, see this example
https://imgur.com/a/E4PYKd3
2) If i set an encoder preset like this
vaapih264enc = Gst.ElementFactory.make('vaapih264enc')
Gst.Preset.save_preset(vaapih264enc, 'vaapih264enc_preset')
video_profile = GstPbutils.EncodingVideoProfile.new(
h264, None, Gst.Caps.from_string("video/x-h264"), 0)
and then I try to add two video streams, it fails to deliver the second
video_pad with
(launchmodule.py:7846): GStreamer-WARNING **: 08:45:35.152:
gst_value_deserialize_g_value_array: unimplemented
(launchmodule.py:7846): GStreamer-WARNING **: 08:45:35.152: Name
'vaapiencodeh264-0' is not unique in bin 'encodebin0', not adding
(launchmodule.py:7846): GStreamer-CRITICAL **: 08:45:35.152:
gst_element_get_static_pad: assertion 'GST_IS_ELEMENT (element)' failed
(launchmodule.py:7846): GStreamer-CRITICAL **: 08:45:35.152:
gst_pad_link_full: assertion 'GST_IS_PAD (srcpad)' failed
(launchmodule.py:7846): GStreamer-CRITICAL **: 08:45:35.152:
gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed
(launchmodule.py:7846): GStreamer-CRITICAL **: 08:45:35.153: gst_bin_remove:
assertion 'GST_IS_ELEMENT (element)' failed
wich kind of makes sense considering that the preset is an instance of an
encoder, but how can i work around this?
3) I'm not entirely sure this is really encodebin related, but if I try to
encode a v4l2 stream (e.g. my webcam) or audio from microphone with pulse,
the pipeline seems fine but never actually start.
https://imgur.com/a/xXTyZ1J
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list