Gstreamer NVDEC to NVENC

Hi all I am running into issues connecting a NVDEC gstreamer element to an NVH264ENC elemement.

The pipeline I have is:

GST_DEBUG=3 gst-launch-1.0 -v rtspsrc location=rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! rtph264depay ! h264parse ! queue ! nvdec ! nvh264enc ! decodebin ! autovideosink

0:00:00.016079331 5574 0x55d69e1c6c70 ERROR GST_PIPELINE grammar.y:740:gst_parse_perform_link: could not link nvdec0 to nvh264enc0
WARNING: erroneous pipeline: could not link nvdec0 to nvh264enc0

I basically want to be able to get an rtsp stream decode it with and reencode it and then send it out a udp sink but I am just using this stream as an example to get started.

The next steps for me are to decode mpeg2 etc and reencode as h264.

Also after I encode h264 how do i get thee buffer back on the cpu to send it back out through the network.

Blair

I have figured out that this works

GST_DEBUG=3 gst-launch-1.0 -v rtspsrc location=rtsp://freja.hiof.no:1935/rtplive/definst/hessdalen03.stream ! rtph264depay ! h264parse ! queue ! nvdec ! gldownload ! nvh264enc ! queue ! decodebin ! xvimagesink

Is this the correct way or is there something more optimal?

Blair

Hello,

wherr did you find the plugin named “nvench264” ? 0.0

my gst-inspect-1.0 could not detect it.

This is from gstreamer 1.14