How to transcode a H264 rtp packet to H265 rtp packet?

Mercy Yuen mxy at iteris.com
Fri Dec 10 08:36:51 UTC 2021


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.

If I were to retransmit the H264 as is, I would use this pipeline.
udpsrc buffer-size=1500000 port=10000 ! application/x-rtp,media=video,encoding-name=H264,payload=96 ! queue ! rtph264depay ! rtph264pay name=pay0 pt=96

I try to transcode to H265 using this pipeline:
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

But this results in a gst_mini_object_unref error. I'm sure this is a common task, does anyone know what is wrong with the pipeline?

Any suggestions/links are welcome!
Mercy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20211210/62c32950/attachment-0001.htm>


More information about the gstreamer-devel mailing list