你(们)好!
我将 Leopard 板与 RidgeRun 默认 SD 卡映像一起用于 TVP 5146复合输入。
我正在尝试使用 RTP 将视频从复合输入摄像机编码到 udpsink。
这是流水线
gst-launch -v v4l2src always-copy=false input-src=复合队列大小=6! 优先级调度程序=1 rtpriority=40! "VIDEO/x-RAWE-YUV、FORMAT=(fourcc) NV12、width=720、height=576、pitch=736! 太棒了! dmaienc_h264 targetbitrate = 8000000 maxbitrate = 8000000! dmaiperf print-arm-load=true! rtph264支付! udpsink host=199.200.15.61端口=6666
管道的调试输出如下所示
正在将管道设置为暂停...
DaVinci_reszer DaVinci_reszer.2:RSZ_G_CONFIG:0:1:124
VPFE 捕获 VPFE 捕获:IPIPE 链接
VPFE 捕获 VPFE 捕获:存在调整器
tvp514x 1-005D:TVP5146 (版本- 0x03)位于0xba (达芬奇 I2C 适配器)
/GstPipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-rayUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
管道处于活动状态,不需要 PREROLL...
警告:来自元素/GstPipeline:流水 线0/GstDmaiperf:dmaiperf0:无法从资源获取/设置设置设置。
其他调试信息:
./../src/src/gsttidmaiperf.c (273):gst_dmaiperf_start ():/GstPipeline:fipine0/GstDmaiperf:dmaiperf0:
未指定引擎名称、未打印 DSP 信息
警告:来自元素/GstPipeline:lipine0/GstV4l2Src:v4l2src0:视频输入设备不接受新的帧速率设置。
其他调试信息:
./../../src/sys/v4l2/v4l2src_calls.c (342):gst_v4l2src_set_capture ():/GstPipeline:lipine0/GstV4l2Src:v4l2src0:
系统错误:参数无效
正在将管道设置为正在播放...
新时钟:GstSystemClock
/GstPipeline:lipine0/GstTIPriality:tipriority0.GstPad:src:cap = video/x-rayUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline:流水线0/GstTIPriality:tipriority0.GstPad:SINK:Cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline0/GstCapsFilter:capsfilter0.GstPad:src:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline:流水线0/GstCapsFilter:capsfilter0.GstPad:SINK:CAPs = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:src:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:灌电流:电容=视频/x-ray-YUV、format=(fourcc) NV12、帧速率=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:灌电流:电容=视频/x-raine-YUV、format=(fourcc) NV12、帧速率=(fraction) 25/1、width=(int) 720、height=(int) 576、 螺距=(int) 736
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstDmaiperf:dmaiperf0.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstDmaiperf:dmaiper0.GstPad:SINK:SINK:Cap = VIDEO/x-h264、帧速率=(分数) 25/1、width=(int) 720、height=(int) 576、像素纵横比=(分数) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src:cap = application/x-rtp、media=(string) 90000、encoding-name=(string) h264、sprop-parameter-sets=(string)\"Z2QnQfju0QnQxeQfju0QnQxeQxeQxeQnQxeQnQnQnQxeq0QnQnQnQnQfja0QnQxeq0QnQnQnQnQnQnQnQnQnQtfja0QnQnQxeQnQnQnQnQnQnQnQnQnQnQtfq0QnQnQnQnQnQnQtfq0Qtfq PAYLOAD=(int) 96、SSRC=(uint) 604079724、时钟基准=(uint) 887806482、seqnum-base=(uint) 30710
/GstPipeline0/GstRtpH264Pay:rtph264pay0.GstPad:灌电流:电容=视频/x-h264、帧速率=(小数) 25/1、width=(int) 720、height=(int) 576、像素纵横比=(小数) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline:流水线0/GstRtpH264Pay:rtph264pay0:timestamp = 887806981
/GstPipeline:流水线0/GstRtpH264Pay:rtph264pay0:seqnum = 30710
/GstPipeline0/GstUDPSink:udpsenk0.GstPad:sink:cap = application/x-rtp、media=(string) video、clock-rate =(int) 90000、encoding-name=(string) h264、sprop-parameter-sets=(string)\"Z2QAK2EBUQ0QnQxQf 和 QnQnQf 0QnQf 和 QnQf 0Qf) PAYLOAD=(int) 96、SSRC=(uint) 604079724、时钟基准=(uint) 887806482、seqnum-base=(uint) 30710
信息:
时间戳:0:42:52.118738761;bps:0;fps:0.0CPU:52;
信息:
时间戳:0:42:53.130276978;bps:1180865;fps:24.72CPU:86;
信息:
时间戳:0:42:54.133441439;bps:1043951;fps:26.91CPU:76;
信息:
时间戳:0:42:55.133955814;bps:1039331;fps:25.0CPU:75;
信息:
时间戳:0:42:56.173321273;bps:968163;fps:25.2CPU:61;
信息:
时间戳:0:42:57.173779356;bps:1037276;fps:25.0CPU:75;
信息:
时间戳:0:42:58.190233856;bps:974573;fps:24.60CPU:65;
信息:
时间戳:0:42:59.214244814;bps:965641;fps:25.39CPU:68;
信息:
时间戳:0:43:00.214331314;bps:1000813;fps:25.0CPU:71;
信息:
时间戳:0:43:01.254275647;bps:1008871;fps:25.2CPU:71;
同时附上来自 VLC 的录制视频
从视频中可以看出、视频流缺少字段。
现在我更改了流水线、我将 dmaireszer 带入流水线并关闭了 chain-ipie 属性、视频帧看起来不错、没有任何缺失的字段
但是、现在帧速率下降到一半、CPU 负载超过90%、这是为什么会发生这种情况。
下面附上了流水线和调试结果
gst-launch -v v4l2src always-copy=false input-src=composite chain-ipepe=false queue-size=6! 大尺寸! 优先级调度程序=1 rtpriority=40! "VIDEO/x-RAWE-YUV、FORMAT=(fourcc) NV12、width=720、height=576、pitch=736! 太棒了! dmaienc_h264 targetbitrate = 8000000 maxbitrate = 8000000! dmaiperf print-arm-load=true! rtph264支付! udpsink host=199.200.15.61端口=6666
正在将管道设置为暂停...
tvp514x 1-005D:TVP5146 (版本- 0x03)位于0xba (达芬奇 I2C 适配器)
/GstPipeline0/GstV4l2Src:v4l2src0.GstPad:src:cap = video/x-rayUV、format=(fourcc) UYVY、framerate=(fraction) 25/1、width=(int) 720、height=(int) 576、 Pixer-Aspi-Ratio=(fraction) 0/1
管道处于活动状态,不需要 PREROLL...
警告:来自元素/GstPipeline:流水 线0/GstDmaiperf:dmaiperf0:无法从资源获取/设置设置设置。
其他调试信息:
./../src/src/gsttidmaiperf.c (273):gst_dmaiperf_start ():/GstPipeline:fipine0/GstDmaiperf:dmaiperf0:
未指定引擎名称、未打印 DSP 信息
警告:来自元素/GstPipeline:lipine0/GstV4l2Src:v4l2src0:视频输入设备不接受新的帧速率设置。
其他调试信息:
./../../src/sys/v4l2/v4l2src_calls.c (342):gst_v4l2src_set_capture ():/GstPipeline:lipine0/GstV4l2Src:v4l2src0:
系统错误:参数无效
正在将管道设置为正在播放...
新时钟:GstSystemClock
/GstPipeline0/GstTIDmaiResizer:tidmaireszer0.GstPad:src:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/GstTIDmaiResizer:tidmaireszer0.GstPad:灌电流:电容=视频/x-ray-YUV、format=(fourcc) UYVY、帧速率=(fraction) 25/1、width=(int) 720、height=(int) 576、 Pixer-Aspi-Ratio=(fraction) 0/1
DaVinci_reszer DaVinci_reszer.2:RSZ_G_CONFIG:1:0:196
DaVinci_reszer DaVinci_reszer.2:RSZ_G_CONFIG:1:0:196
/GstPipeline0/GstTIPriality:tipriority0.GstPad:src:cap = video/x-rayUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/GstTIPriality:tipriority0.GstPad:SINK:Cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline:流水线0/GstCapsFilter:capsfilter0.GstPad:src:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline:流水线0/GstCapsFilter:capsfilter0.GstPad:SINK:CAPs = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:src:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:SINK:Cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、帧速率=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:灌电流:cap = VIDEO/x-RAWE-YUV、format=(fourcc) NV12、width=(int) 720、height=(int) 576、framerate=(fraction) 25/1、 piting=(int) 736、pixer-Aspi-Rati=(fraction) 1/1、dmaioutput=(布尔值) true
/GstPipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstDmaiperf:dmaiperf0.GstPad:src:cap = video/x-h264、frameraate=(fraction) 25/1、width=(int) 720、height=(int) 576、pixer-Aspi-Ratio =(fraction) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstDmaiperf:dmaiper0.GstPad:SINK:SINK:Cap = VIDEO/x-h264、帧速率=(分数) 25/1、width=(int) 720、height=(int) 576、像素纵横比=(分数) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src:cap = application/x-rtp、media=(string) 90000、encoding-name=(string) h264、sprop-parameter-sets=(string)\"Z2QnQfju0QnQxeQfju0QnQxeQxeQxeQnQxeQnQnQnQxeq0QnQnQnQnQfja0QnQxeq0QnQnQnQnQnQnQnQnQnQtfja0QnQnQxeQnQnQnQnQnQnQnQnQnQnQtfq0QnQnQnQnQnQnQtfq0Qtfq PAYLOAD=(int) 96、SSRC=(uint) 2492036591、时钟基准=(uint) 2418381961、seqnum-base=(uint) 18223
/GstPipeline0/GstRtpH264Pay:rtph264pay0.GstPad:灌电流:电容=视频/x-h264、帧速率=(小数) 25/1、width=(int) 720、height=(int) 576、像素纵横比=(小数) 1/1、 codec_data=(buffer) 01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3b10158e2b1594e2a93b400e2d850e8a8a8a8a8a8a8a4005400e8e8e8e8e8e8e8e8e8e8e8524942494249e2b9e2f249e2f249e2e2e2f249e2e2e2e2e
/GstPipeline:流水线0/GstRtpH264Pay:rtph264pay0:timestamp = 2418383413
/GstPipeline:流水线0/GstRtpH264Pay:rtph264pay0:seqnum = 18223
/GstPipeline0/GstUDPSink:udpsenk0.GstPad:sink:cap = application/x-rtp、media=(string) video、clock-rate =(int) 90000、encoding-name=(string) h264、sprop-parameter-sets=(string)\"Z2QAK2EBUQ0QnQxQf 和 QnQnQf 0QnQf 和 QnQf 0Qf) PAYLOAD=(int) 96、SSRC=(uint) 2492036591、时钟基准=(uint) 2418381961、seqnum-base=(uint) 18223
信息:
时间戳:0:40:43.213766262;bps:0;fps:0.0CPU:50;
信息:
时间戳:0:40:44.267973435;bps:542114;fps:10.43CPU:94;
信息:
时间戳:0:40:45.322482146;bps:487149;fps:11.38CPU:91;
信息:
时间戳:0:40:46.392227977;bps:496485;fps:11.22CPU:92;
信息:
时间戳:0:40:47.412496186;bps:444150;fps:11.76CPU:93;
信息:
时间戳:0:40:48.442236811;bps:453206;fps:11.66CPU:92;
信息:
时间戳:0:40:49.496955894;bps:489095;fps:11.38CPU:90;
信息:
时间戳:0:40:50.519943728;bps:448559;fps:11.74CPU:93;
信息:
时间戳:0:40:51.572846021;bps:488337;fps:11.40CPU:94;
信息:
时间戳:0:40:52.591048105;bps:443508;fps:11.78CPU:90;
信息:
时间戳:0:40:53.618277146;bps:452556;fps:11.68CPU:92;
信息:
时间戳:0:40:54.670530605;bps:482093;fps:11.40CPU:94;
信息:
时间戳:0:40:55.689224313;bps:442477;fps:11.78CPU:93;
信息:
时间戳:0:40:56.746034396;bps:489577;fps:11.36CPU:92;
信息:
时间戳:0:40:57.760125563;bps:439807;fps:11.83CPU:91;
信息:
时间戳:0:40:58.776009312;bps:439599;fps:11.82CPU:94;
信息:
时间戳:0:40:59.830885228;bps:486219;fps:11.38CPU:93;
信息:
时间戳:0:41:00.854431894;bps:450979;fps:11.73CPU:95;
信息:
时间戳:0:41:01.907918810;bps:488485;fps:11.39CPU:91;
下面还附上了采样视频