我正在尝试从 h264 解码视频并重新编码以通过 udp 传输到客户端:
在发射端:
gst-launch-1.0 -v filesrc location=/home/ubuntu/Videos/test.mp4 ! qtdemux name=demux ! h264parse ! omxh264dec ! nvvidconv ! omxh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000
在接收方:
gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,media=video,clock-rate=90000,encoding-name=H264 ! rtph264depay ! h264parse ! omxh264dec ! nveglglessink
我在本地进行测试,在 NVidia Tegra TK1 上进行测试,但没有显示任何内容,尽管没有引发错误。
有人看到要补充的吗?提前致谢。