This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LEOPARD BOARD USING RIDGERUN DEFAULT SDK IMAGE FOR TVP5146

Other Parts Discussed in Thread: TVP5146

hi there!

i am using leopard board along with ridgerun default sd card image for TVP 5146 composite input.

i am trying to encode my video from composite input camera and streaming to udpsink using rtp.

here is the pipeline

gst-launch -v v4l2src always-copy=FALSE input-src=composite queue-size=6 ! priority scheduler=1 rtpriority=40 ! "video/x-raw-yuv,format=(fourcc)NV12,width=720,height=576,pitch=736" ! dmaiaccel ! dmaienc_h264 targetbitrate=8000000 maxbitrate=8000000 ! dmaiperf print-arm-load=true ! rtph264pay ! udpsink host=199.200.15.61 port=6666

the debug output of the pipeline is given below

Setting pipeline to PAUSED ...
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:0:1:124
vpfe-capture vpfe-capture: IPIPE Chained
vpfe-capture vpfe-capture: Resizer present
tvp514x 1-005d: tvp5146 (Version - 0x03) found at 0xba (DaVinci I2C adapter)
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
Pipeline is live and does not need PREROLL ...
WARNING: from element /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0: Could not get/set settings from/on resource.
Additional debug info:
../../src/src/gsttidmaiperf.c(273): gst_dmaiperf_start (): /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0:
Engine name not specified, not printing DSP information
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input device did not accept new frame rate setting.
Additional debug info:
../../../src/sys/v4l2/v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstTIPriority:tipriority0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/GstTIPriority:tipriority0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, framerate=(fraction)25/1, width=(int)720, height=(int)576, pitch=(int)736
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstDmaiperf:dmaiperf0.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstDmaiperf:dmaiperf0.GstPad:sink: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFoJMg\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(uint)604079724, clock-base=(uint)887806482, seqnum-base=(uint)30710
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 887806981
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 30710
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFoJMg\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(uint)604079724, clock-base=(uint)887806482, seqnum-base=(uint)30710
INFO:
Timestamp: 0:42:52.118738761; bps: 0; fps: 0.0CPU: 52;
INFO:
Timestamp: 0:42:53.130276978; bps: 1180865; fps: 24.72CPU: 86;
INFO:
Timestamp: 0:42:54.133441439; bps: 1043951; fps: 26.91CPU: 76;
INFO:
Timestamp: 0:42:55.133955814; bps: 1039331; fps: 25.0CPU: 75;
INFO:
Timestamp: 0:42:56.173321273; bps: 968163; fps: 25.2CPU: 61;
INFO:
Timestamp: 0:42:57.173779356; bps: 1037276; fps: 25.0CPU: 75;
INFO:
Timestamp: 0:42:58.190233856; bps: 974573; fps: 24.60CPU: 65;
INFO:
Timestamp: 0:42:59.214244814; bps: 965641; fps: 25.39CPU: 68;
INFO:
Timestamp: 0:43:00.214331314; bps: 1000813; fps: 25.0CPU: 71;
INFO:
Timestamp: 0:43:01.254275647; bps: 1008871; fps: 25.2CPU: 71;


also attaching the recorded video from vlc 

/cfs-file/__key/communityserver-discussions-components-files/791/7506.pal-video-with-missing-either-field.mp4

as can be seen from the video, video stream is missing fields.

now i changed my pipeline, i brought dmairesizer into the pipeline and switched off chain-ipie property, the video frame looks nice without any missing field
but now the frame rate drops to half and CPU load crosses 90 %, why is it happening.
pipeline and the debug result are attached below


gst-launch -v v4l2src always-copy=FALSE input-src=composite chain-ipipe=false queue-size=6 ! dmairesizer ! priority scheduler=1 rtpriority=40 ! "video/x-raw-yuv,format=(fourcc)NV12,width=720,height=576,pitch=736" ! dmaiaccel ! dmaienc_h264 targetbitrate=8000000 maxbitrate=8000000 ! dmaiperf print-arm-load=true ! rtph264pay ! udpsink host=199.200.15.61 port=6666


Setting pipeline to PAUSED ...
tvp514x 1-005d: tvp5146 (Version - 0x03) found at 0xba (DaVinci I2C adapter)
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)0/1
Pipeline is live and does not need PREROLL ...
WARNING: from element /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0: Could not get/set settings from/on resource.
Additional debug info:
../../src/src/gsttidmaiperf.c(273): gst_dmaiperf_start (): /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0:
Engine name not specified, not printing DSP information
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input device did not accept new frame rate setting.
Additional debug info:
../../../src/sys/v4l2/v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstTIDmaiResizer:tidmairesizer0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstTIDmaiResizer:tidmairesizer0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)0/1
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:1:0:196
davinci_resizer davinci_resizer.2: RSZ_G_CONFIG:1:0:196
/GstPipeline:pipeline0/GstTIPriority:tipriority0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstTIPriority:tipriority0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:src: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/GstTIDmaiaccel:tidmaiaccel0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)720, height=(int)576, framerate=(fraction)25/1, pitch=(int)736, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true
/GstPipeline:pipeline0/dmaienc_h264:dmaienc_h2640.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstDmaiperf:dmaiperf0.GstPad:src: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstDmaiperf:dmaiperf0.GstPad:sink: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFoJMg\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(uint)2492036591, clock-base=(uint)2418381961, seqnum-base=(uint)18223
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps = video/x-h264, framerate=(fraction)25/1, width=(int)720, height=(int)576, pixel-aspect-ratio=(fraction)1/1, codec_data=(buffer)01640028ffe1005a67640028ad84054562b8ac5474202a2b15c562a3a1015158ae2b151d080a8ac57158a8e84054562b8ac5474202a2b15c562a3a10248521393c9f27e4fe4fc9f279b9b34d081242909c9e4f93f27f27e4f93cdcd9a6b405a0932001000468ee3cb0
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 2418383413
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 18223
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, sprop-parameter-sets=(string)\"Z2QAKK2EBUViuKxUdCAqKxXFYqOhAVFYrisVHQgKisVxWKjoQFRWK4rFR0ICorFcVio6ECSFITk8nyfk/k/J8nm5s00IEkKQnJ5Pk/J/J+T5PNzZprQFoJMg\\,aO48sA\\=\\=\", payload=(int)96, ssrc=(uint)2492036591, clock-base=(uint)2418381961, seqnum-base=(uint)18223
INFO:
Timestamp: 0:40:43.213763262; bps: 0; fps: 0.0CPU: 50;
INFO:
Timestamp: 0:40:44.267973435; bps: 542114; fps: 10.43CPU: 94;
INFO:
Timestamp: 0:40:45.322482146; bps: 487149; fps: 11.38CPU: 91;
INFO:
Timestamp: 0:40:46.392227977; bps: 496485; fps: 11.22CPU: 92;
INFO:
Timestamp: 0:40:47.412496186; bps: 444150; fps: 11.76CPU: 93;
INFO:
Timestamp: 0:40:48.442236811; bps: 453206; fps: 11.66CPU: 92;
INFO:
Timestamp: 0:40:49.496955894; bps: 489095; fps: 11.38CPU: 90;
INFO:
Timestamp: 0:40:50.519943728; bps: 448559; fps: 11.74CPU: 93;
INFO:
Timestamp: 0:40:51.572846021; bps: 488337; fps: 11.40CPU: 94;
INFO:
Timestamp: 0:40:52.591048105; bps: 443508; fps: 11.78CPU: 90;
INFO:
Timestamp: 0:40:53.618277146; bps: 452556; fps: 11.68CPU: 92;
INFO:
Timestamp: 0:40:54.670530605; bps: 482093; fps: 11.40CPU: 94;
INFO:
Timestamp: 0:40:55.689224313; bps: 442477; fps: 11.78CPU: 93;
INFO:
Timestamp: 0:40:56.746034396; bps: 489577; fps: 11.36CPU: 92;
INFO:
Timestamp: 0:40:57.760125563; bps: 439807; fps: 11.83CPU: 91;
INFO:
Timestamp: 0:40:58.776009312; bps: 439599; fps: 11.82CPU: 94;
INFO:
Timestamp: 0:40:59.830885228; bps: 486219; fps: 11.38CPU: 93;
INFO:
Timestamp: 0:41:00.854431894; bps: 450979; fps: 11.73CPU: 95;
INFO:
Timestamp: 0:41:01.907918810; bps: 488485; fps: 11.39CPU: 91;


sampled video is also attached below

/cfs-file/__key/communityserver-discussions-components-files/791/8424.pal-video-without-missing-fields.mp4