<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I access a live src using udpsrc and retransmit it to rtsp.  The src is H264 encoded. I want to retransmit it at a lower bitrate but maintain the video quality by using h265 encoding.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
If I were to retransmit the H264 as is, I would use this pipeline.<br>
<span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(249, 249, 249);display:inline !important">udpsrc buffer-size=1500000 port=10000 ! application/x-rtp,media=video,encoding-name=H264,payload=96
 ! queue ! rtph264depay ! rtph264pay name=pay0 pt=96<br>
</span><br>
I try to transcode to H265 using this pipeline:<br>
<span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(249, 249, 249);display:inline !important">udpsrc buffer-size=1310702 port=10000 ! application/x-rtp,media=video,encoding-name=H264,payload=96
 ! queue ! rtph264depay ! h264parse ! nvv4l2decoder ! nvvidconv ! nvv4l2h265enc ! rtph265pay name=pay0 pt=96<br>
</span><br>
But this results in a <span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(255, 255, 255);display:inline !important">gst_mini_object_unref error. I'm sure this is
 a common task, does anyone know what is wrong with the pipeline?</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(255, 255, 255);display:inline !important"><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(255, 255, 255);display:inline !important">Any suggestions/links are welcome!</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="color:rgb(51, 51, 51);font-family:DIN-Web-Pro, Helvetica, Arial, sans-serif;font-size:15px;letter-spacing:0.15px;background-color:rgb(255, 255, 255);display:inline !important">Mercy</span></div>
</body>
</html>