How to use "nvvidconv" in "playbin"?

Hello,

On TX2, by using GSTREAMER a pipeline is set up for video playback.
・Use “playbin” for playback pipeline.
・Encoder uses NVIDIA’s “omxh264enc”.
・“nvvidconv” will be used for the video format converter.
※Video input is uyvy format, but omxh264 does not accept uyvy format
Uyvy-> I420’s convert element is necessary.

here are the questions
(1) Is it possible to use “nvvidconv” in “playbin”?
(2) If possible, what’s the best way of doing it?

The current situation is as follows.
・Playbin is video
videoconvert" is automatically selected as the format conversion element.
・At first glance, playbinn doesn’t have element specific property for conversion

Thanks.

Hi,
It looks like you would like to run a transcoding case. For transcoding, suggest you use decodebin or uridecodebin to link with omxh264enc(or nvv4l2h264enc).

Thank you very much for your quick response.

I am sorry, I made a mistake in my previous post, actually I need to ask the following

On NVIDIA Jetson TX2, by using GSTREAMER a pipeline is set up for video playback.
・Use playbin for playback pipeline.
・Decoder uses NVIDIA “omxh264dec”.
・“nvvidconv” will be used for the video format converter.
※I want to have output Video in uyvy format, but encoded in I420 format .
Therefore, I420 → uyvy convert element is required.

here are the questions
(1) Is it possible to use “nvvidconv” in playbin?
(2) If possible, what’s the best way of doing it?

The current situation is as follows.
・Playbin a “videoconvert” automatically selected as the video format conversion element.
・At first glance, playbinn doesn’t have element specific property for conversion.

Thanks

Hi,
playbin is supposed to be used in video playback. For format conversion, you may use uridecodebin. What is the next action of having UYVY buffers? Dump to files one by one?

Hi,
I am thinking of ouputing the result of trick play in playbin to SDI Use UYVY(raw) instead of V4L for SDI output.

Thanks

Hi,
You may refer to this sample to get buffers in appsink.

Hi,

I am sorry, I think, I could not make you understand my question.

My question is
playbin chooses videoconverter automatically, but how can I make playbin to select “nvvidconv” instead of “videoconvert” from multiple choices?

videoconverter is Software processing.
nvvidconvis HardWare processing.

Thanks

Hi,
playbin is a plugin in gstreamer frameworks. It may prefer to select original plugins instead of NVIDIA plugins. For using NVIDIA plugins , we suggest you refer to user guide and construct the pipeline directly.
https://developer.nvidia.com/embedded/dlc/l4t-accelerated-gstreamer-guide-32-2