cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
isaacjt
Contributor
Contributor
393 Views
Registered: ‎05-14-2018

Petalinux 2019.1: SDI input capture "Internal data stream error"

Hello,

We are trying to use gstreamer to capture the input stream from an SDI source and we are running into the following error message:

 

$ gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! video/x-raw,format=UYVY,width=1920,height=1080 ! videoconvert ! theoraenc ! matroskamux ! filesink location=test.mkv
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Internal data stream error.
Additional debug info:
../../../../git/libs/gst/base/gstbasesrc.c(3055): gst_base_src_loop
(): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.003149070
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

The video signal is locked and the format and resolution are being correctly detected by the IP cores:

$ media-ctl -p -d /dev/media0
Media controller API version 4.19.0

Media device information
------------------------
driver          xilinx-video
model           Xilinx Video Composite Device
serial
bus info
hw revision     0x0
driver version  4.19.0

Device topology
- entity 1: vcap_sdi output 0 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video0
    pad0: Sink
        <- "a0020000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]

- entity 5: vcap_sdi output 1 (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video1
    pad0: Sink
        <- "a0030000.v_smpte_uhdsdi_rx_ss":0 [ENABLED]

- entity 9: a0020000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
    pad0: Source
*    [fmt:UYVY10_1X20/1920x1080@1000/30000 field:none]*
        -> "vcap_sdi output 0":0 [ENABLED]

- entity 11: a0030000.v_smpte_uhdsdi_rx_ss (1 pad, 1 link)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev1
    pad0: Source
*[fmt:UYVY10_1X20/1920x1080@1000/30000 field:none]*
        -> "vcap_sdi output 1":0 [ENABLED]

Does anyone have any suggestions for what could be wrong here?

 

Kind regards

 

0 Kudos
1 Reply
kvasantr
Moderator
Moderator
311 Views
Registered: ‎04-12-2017

Hello @isaacjt 

Looks like you have been using open source Theora software codec in your application. Please note Xilinx from Petalinux tool point of view doesn't support this codec. It only supports Xilinx VCU. 

I think you should check with theora community if this has been ever tried with Xilinx hardware and toolset.

The one thing I saw missing in your pipeline is framerate=1000/30000 . Check if this helps.

Regards

Kunal

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos