Starting tw6869 device.

Hello. I need help launching the tw686x device. How can I compile the driver in / driver / media / pci / tw686x dir.

Please refer to the L4T development for kernel customization.
https://docs.nvidia.com/jetson/l4t/index.html

I managed to start the board. I see 8 video devices. VLС-player shows a picture from all cameras. I can not start the video from the command line and use the multimedia API.Help me.

atri@atri-desktop:~$ v4l2-ctl --all --device=/dev/video0
Driver Info (not using libv4l2):
Driver name : TW6869
Card type : TW6869
Bus info : PCI:0000:01:00.0
Driver version: 4.9.140
Capabilities : 0x85200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Priority: 2
Video input : 0 (Composite: ok)
Video Standard = 0x0000b000
NTSC-M/M-JP/M-KR
Format Video Capture:
Width/Height : 640/480
Pixel Format : ‘YUYV’
Field : Interlaced
Bytes per Line : 1280
Size Image : 614400
Colorspace : SMPTE 170M
Transfer Function : Default (maps to Rec. 709)
YCbCr/HSV Encoding: Default (maps to ITU-R 601)
Quantization : Default (maps to Limited Range)
Flags :
Streaming Parameters Video Capture:
Frames per second: 29.970 (30000/1001)
Read buffers : 2

User Controls

                 brightness 0x00980900 (int)    : min=0 max=255 step=1 default=125 value=125 flags=slider
                   contrast 0x00980901 (int)    : min=0 max=200 step=1 default=96 value=96 flags=slider
                 saturation 0x00980902 (int)    : min=0 max=127 step=1 default=64 value=64 flags=slider
                        hue 0x00980903 (int)    : min=-124 max=125 step=1 default=0 value=0 flags=slider
                     volume 0x00980905 (int)    : min=-15 max=15 step=1 default=0 value=0 flags=slider
                       mute 0x00980909 (bool)   : default=0 value=0
                       gpio 0x00981001 (int)    : min=0 max=65535 step=1 default=255 value=65535 flags=volatile

atri@atri-desktop:~ gst-launch-1.0 v4l2src device="/dev/video7" ! "video/x-raw, width=640, height=480, format=(string)YUY2" ! xvimagesink -e Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video7' has no supported format Additional debug info: gstv4l2object.c(3760): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Call to S_FMT failed for YUYV @ 640x480: Invalid argument ERROR: pipeline doesn't want to preroll. Setting pipeline to PAUSED ... Setting pipeline to READY ... Setting pipeline to NULL ... Freeing pipeline ... atri@atri-desktop:~

[ 6.231791] tw6869: loading out-of-tree module taints kernel.
[ 6.240723] TW68_: v4l2 driver version 2.3.13 loaded
[ 6.240816] 812/1012[vbuf2] driver 05/17/2016 1.1.11
[ 6.240841] sray812 0000:01:00.0: BAR 0: assigned [mem 0x13000000-0x13000fff pref]
[ 6.240858] sray812 0000:01:00.0: enabling device (0000 -> 0002)
[ 6.240868] TW6869[0] TW68_devcount: 0
[ 6.240877] TW6869[0]: found at 0000:01:00.0, rev: 1, irq: 84, latency: 0, mmio: 0x13000000
[ 6.240884] TW6869[0]: subsystem: 0000:0000, board: TW6869 [card=1,insmod option]
[ 6.274107] random: crng init done
[ 6.277514] random: 7 urandom warning(s) missed due to ratelimiting
[ 6.283959] tmp: fffffffe
[ 6.283971] TW6869[0]: CFG[0x04] PCI_COMMAND : 0x100006
[ 6.313991] usb 2-1: usb_suspend_both: status 0
[ 6.314143] usb usb2: usb_suspend_both: status 0
[ 6.344790] using random self ethernet address
[ 6.353293] using random host ethernet address
[ 6.459000] DMA TW6869[0]: DMA_PAGE_TABLE0_ADDR 0x0
[ 6.459007] DMA TW6869[0]: DMA_PAGE_TABLE1_ADDR 0x0
[ 6.459013] DMA TW6869[0]: DMA_PAGE_TABLE0_ADDR 0xfac08000
[ 6.459017] DMA TW6869[0]: DMA_PAGE_TABLE1_ADDR 0xfac0a000
[ 6.459022] DMA TW6869[0]: tw AVSRST u8 600 :: 0x0
[ 6.459027] DMA TW6869[0]: tw DMA_CMD u8 8 :: 0x0
[ 6.459033] DMA TW6869[0]: tw DMA_CHANNEL_ENABLE a :: 0x0
[ 6.459036] DMA TW6869[0]: tw DMA_CHANNEL_ENABLE a :: 0x0
[ 6.459042] DMA TW6869[0]: tw DMA_CHANNEL_TIMEOUT d :: 0x3eff0ff0
[ 6.459047] DMA TW6869[0]: tw DMA_INT_REF c :: 0x38000
[ 6.459052] DMA TW6869[0]: tw DMA_CONFIG b :: 0xff0004
[ 6.459054] set tw68 VIDEO_CTRL2 2b :: 0xff00ff
[ 6.459059] DMA TW6869[0]: tw DMA_CONFIG 2b :: 0xff00ff
[ 6.459077] read tw68 VDELAY0 108 :: 0x14
[ 6.459081] read tw68 MISC_CONTROL2 196 :: 0xe6
[ 6.698469] TW68
video_init1[0] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698482] TW68
video_init1[1] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698491] TW68_ video_init1[2] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698501] TW68_ video_init1[3] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698510] TW68_ video_init1[4] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698520] TW68_ video_init1[5] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698529] TW68_ video_init1[6] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698538] TW68_ video_init1[7] def AMP: BR 0 CONT 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698541] TW68_ video_init1 get decoder 7 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698544] TW68_ video_init1 get decoder 6 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698546] TW68_ video_init1 get decoder 5 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698549] TW68_ video_init1 get decoder 4 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698552] TW68_ video_init1 get decoder 3 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698554] TW68_ video_init1 get decoder 2 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698557] TW68_ video_init1 get decoder 1 default AMP: BRIGHTNESS 0 CONTRAST 100 HUE 0 SAT_U_64 SAT_V_64
[ 6.698560] TW68_ _video_init2 set_tvnorm
[ 6.698562] ------set tv norm = PAL
[ 6.698565] TW68_initdev TW6869[0]: request IRQ 84
[ 6.698581] Adding TW686v_devlist ffffff8001164d00
[ 6.703556] TW6869[0]: Overlay supported -1 .
[ 6.703582] 0video DEVICE NAME : TW6869[0] video (TW686922) vfdev[0] 0xffffffc0ea300470
[ 6.703762] 0video DEVICE NAME : TW6869[0] video (TW686922) minor 0 DMA 0 err0 0
[ 6.703783] 1video DEVICE NAME : TW6869[0] video (TW686922) vfdev[1] 0xffffffc0ea300e88
[ 6.703900] 1video DEVICE NAME : TW6869[0] video (TW686922) minor 1 DMA 1 err0 0
[ 6.703914] 2video DEVICE NAME : TW6869[0] video (TW686922) vfdev[2] 0xffffffc0ea3018a0
[ 6.704022] 2video DEVICE NAME : TW6869[0] video (TW686922) minor 2 DMA 2 err0 0
[ 6.704036] 3video DEVICE NAME : TW6869[0] video (TW686922) vfdev[3] 0xffffffc0ea3022b8
[ 6.704153] 3video DEVICE NAME : TW6869[0] video (TW686922) minor 3 DMA 3 err0 0
[ 6.704165] 4video DEVICE NAME : TW6869[0] video (TW686922) vfdev[4] 0xffffffc0ea302cd0
[ 6.704318] 4video DEVICE NAME : TW6869[0] video (TW686922) minor 4 DMA 4 err0 0
[ 6.704332] 5video DEVICE NAME : TW6869[0] video (TW686922) vfdev[5] 0xffffffc0ea3036e8
[ 6.704440] 5video DEVICE NAME : TW6869[0] video (TW686922) minor 5 DMA 5 err0 0
[ 6.704453] 6video DEVICE NAME : TW6869[0] video (TW686922) vfdev[6] 0xffffffc0ea304100
[ 6.704548] 6video DEVICE NAME : TW6869[0] video (TW686922) minor 6 DMA 6 err0 0
[ 6.704577] 7video DEVICE NAME : TW6869[0] video (TW686922) vfdev[7] 0xffffffc0ea304b18
[ 6.704678] 7video DEVICE NAME : TW6869[0] video (TW686922) minor 7 DMA 7 err0 0
[ 6.704681] vdev_init Video DEVICE NAME : TW6869[0] video (TW686922)
[ 6.707415] TW6869[0]: registered PCI device 1 [v4l2]:0 err: |0|
[ 7.087285] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:6340)
[ 7.103679] uvcvideo 1-2.3:1.0: Entity type for entity Extension 4 was not initialized!
[ 7.128683] uvcvideo 1-2.3:1.0: Entity type for entity Processing 3 was not initialized!
[ 7.146522] uvcvideo 1-2.3:1.0: Entity type for entity Camera 1 was not initialized!
[ 7.157561] input: USB 2.0 Camera as /devices/70090000.xusb/usb1/1-2/1-2.3/1-2.3:1.0/input/input6
[ 7.157878] usbcore: registered new interface driver uvcvideo
[ 7.157882] USB Video Class driver (1.1.1)
[ 7.277568] video_open ID:7 dmaCH 7 request 80
[ 7.277573] video detect 7
[ 7.277582] 50HZ VideoStandardDetect DMA_nCH 7 regDW 0x87 dwReg39
[ 7.277593]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video7 minor7 type=vid-cap video_opened=0x80 k:7 tvnorm::PAL 1
[ 7.278807] video_open ID:5 dmaCH 5 request 20
[ 7.278811] video detect 5
[ 7.278820] 50HZ VideoStandardDetect DMA_nCH 5 regDW 0x87 dwReg39
[ 7.278830]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video5 minor5 type=vid-cap video_opened=0xA0 k:5 tvnorm::PAL 1
[ 7.280830] video_open ID:6 dmaCH 6 request 40
[ 7.280833] video detect 6
[ 7.280839] 50HZ VideoStandardDetect DMA_nCH 6 regDW 0x87 dwReg39
[ 7.280849]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video6 minor6 type=vid-cap video_opened=0xE0 k:6 tvnorm::PAL 1
[ 7.282519] video_open ID:1 dmaCH 1 request 2
[ 7.282523] video detect 1
[ 7.282532] 60HZ VideoStandardDetect DMA_nCH 1 regDW 0x68 dwReg7
[ 7.282543]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video1 minor1 type=vid-cap video_opened=0xE2 k:1 tvnorm::NTSC 0
[ 7.284749] video_open ID:3 dmaCH 3 request 8
[ 7.284753] video detect 3
[ 7.284762] 60HZ VideoStandardDetect DMA_nCH 3 regDW 0x68 dwReg7
[ 7.284772]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video3 minor3 type=vid-cap video_opened=0xEA k:3 tvnorm::NTSC 0
[ 7.290365] video_open ID:2 dmaCH 2 request 4
[ 7.290369] video detect 2
[ 7.290377] 60HZ VideoStandardDetect DMA_nCH 2 regDW 0x68 dwReg7
[ 7.290387]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video2 minor2 type=vid-cap video_opened=0xEE k:2 tvnorm::NTSC 0
[ 7.290965] video_open ID:0 dmaCH 0 request 1
[ 7.290968] video detect 0
[ 7.290973] 60HZ VideoStandardDetect DMA_nCH 0 regDW 0x78 dwReg7
[ 7.290983]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video0 minor0 type=vid-cap video_opened=0xEF k:0 tvnorm::NTSC 0
[ 7.293726] video_open ID:4 dmaCH 4 request 10
[ 7.293729] video detect 4
[ 7.293738] 50HZ VideoStandardDetect DMA_nCH 4 regDW 0x97 dwReg39
[ 7.293749]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video4 minor4 type=vid-cap video_opened=0xFF k:4 tvnorm::PAL 1
[ 7.809151] Mass Storage Function, version: 2009/09/11
[ 7.809157] LUN: removable file: (no medium)
[ 7.816901] using random self ethernet address
[ 7.826164] using random host ethernet address
[ 8.069386] rndis0: HOST MAC 0a:ff:0f:4a:7c:7c
[ 8.069447] rndis0: MAC 0a:ff:0f:4a:7c:7d
[ 8.074962] usb0: HOST MAC 0a:ff:0f:4a:7c:7e
[ 8.074993] usb0: MAC 0a:ff:0f:4a:7c:7f
[ 8.075023] tegra-xudc-new 700d0000.xudc: ep 0 (type: 0, dir: out) enabled
[ 8.083592] l4tbr0: port 1(rndis0) entered blocking state
[ 8.083597] l4tbr0: port 1(rndis0) entered disabled state
[ 8.083775] device rndis0 entered promiscuous mode
[ 8.095651] IPv6: ADDRCONF(NETDEV_UP): rndis0: link is not ready
[ 8.102803] l4tbr0: port 2(usb0) entered blocking state
[ 8.102809] l4tbr0: port 2(usb0) entered disabled state
[ 8.103159] device usb0 entered promiscuous mode
[ 8.108968] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 8.306249] IRQ11 no longer affine to CPU2
[ 8.310585] CPU2: shutdown
[ 8.313299] psci: CPU2 killed.
[ 8.346137] IRQ12 no longer affine to CPU3
[ 8.350507] CPU3: shutdown
[ 8.353392] psci: CPU3 killed.
[ 8.442878] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.444309] eth0: 0xffffff800a3be000, 00:04:4b:e6:32:41, IRQ 406
[ 8.622250] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.782951] zram: Added device: zram0
[ 8.785436] zram: Added device: zram1
[ 8.919739] zram0: detected capacity change from 0 to 1039228928
[ 9.074158] Adding 1014868k swap on /dev/zram0. Priority:5 extents:1 across:1014868k SS
[ 9.098821] zram1: detected capacity change from 0 to 1039228928
[ 9.160140] Adding 1014868k swap on /dev/zram1. Priority:5 extents:1 across:1014868k SS
[ 10.025994] usb 1-2.3: usb_suspend_both: status 0
[ 10.677977] r8168: eth0: link up
[ 10.678049] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.720535] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10200000 did not specify bpp
[ 10.721792] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.723853] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.724347] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.724813] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.725270] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.725729] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.726286] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.726780] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.727268] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.727754] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.728249] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.728733] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.729216] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000080 did not specify bpp
[ 10.729701] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.730209] tegradc tegradc.1: tegra_dp_get_bpp: vmode=0x10000000 did not specify bpp
[ 10.865708] tegradc tegradc.1: unblank
[ 10.865721] tegradc tegradc.0: blank - powerdown
[ 18.395756] fuse init (API version 7.26)
[ 18.995976] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 18.995990] Bluetooth: BNEP socket layer initialized
[ 20.915424] tegradc tegradc.1: unblank
[ 20.915629] tegradc tegradc.0: blank - powerdown
[ 23.895964] usb 1-2.3: 3:1: cannot get freq at ep 0x84
[ 24.033368] usb 1-2.3: 3:1: cannot get freq at ep 0x84
[ 33.157985] usb 1-2.3: usb_suspend_both: status 0
[ 44.787003] video_open ID:0 dmaCH 0 request 1
[ 44.787014]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video0 minor0 type=vid-cap video_opened=0xFF k:0 tvnorm::NTSC 0
[ 44.830159] video_open ID:1 dmaCH 1 request 2
[ 44.830172]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video1 minor1 type=vid-cap video_opened=0xFF k:1 tvnorm::NTSC 0
[ 44.874531] video_open ID:2 dmaCH 2 request 4
[ 44.874559]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video2 minor2 type=vid-cap video_opened=0xFF k:2 tvnorm::NTSC 0
[ 44.918322] video_open ID:3 dmaCH 3 request 8
[ 44.918352]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video3 minor3 type=vid-cap video_opened=0xFF k:3 tvnorm::NTSC 0
[ 44.962393] video_open ID:4 dmaCH 4 request 10
[ 44.962424]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video4 minor4 type=vid-cap video_opened=0xFF k:4 tvnorm::PAL 1
[ 45.006848] video_open ID:5 dmaCH 5 request 20
[ 45.006918]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video5 minor5 type=vid-cap video_opened=0xFF k:5 tvnorm::PAL 1
[ 45.050553] video_open ID:6 dmaCH 6 request 40
[ 45.050623]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video6 minor6 type=vid-cap video_opened=0xFF k:6 tvnorm::PAL 1
[ 45.094798] video_open ID:7 dmaCH 7 request 80
[ 45.094870]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video7 minor7 type=vid-cap video_opened=0xFF k:7 tvnorm::PAL 1
[ 48.005975] usb 1-2.3: usb_suspend_both: status 0
[ 52.034914] CPU2: Booted secondary processor [411fd071]
[ 52.061733] CPU3: Booted secondary processor [411fd071]
[ 82.163574] video_open ID:0 dmaCH 0 request 1
[ 82.163581]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video0 minor0 type=vid-cap video_opened=0xFF k:0 tvnorm::NTSC 0
[ 82.164623] read gpio ffff
[ 82.164629] nId0 TW68_g_volatile_ctrl Get_control name=gpio val=65535 regval 0xFFFFFFFF
[ 113.554600] video_open ID:0 dmaCH 0 request 1
[ 113.554607]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video0 minor0 type=vid-cap video_opened=0xFF k:0 tvnorm::NTSC 0
[ 113.598007] video_open ID:1 dmaCH 1 request 2
[ 113.598014]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video1 minor1 type=vid-cap video_opened=0xFF k:1 tvnorm::NTSC 0
[ 113.642241] video_open ID:2 dmaCH 2 request 4
[ 113.642248]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video2 minor2 type=vid-cap video_opened=0xFF k:2 tvnorm::NTSC 0
[ 113.686050] video_open ID:3 dmaCH 3 request 8
[ 113.686058]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video3 minor3 type=vid-cap video_opened=0xFF k:3 tvnorm::NTSC 0
[ 113.730043] video_open ID:4 dmaCH 4 request 10
[ 113.730051]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video4 minor4 type=vid-cap video_opened=0xFF k:4 tvnorm::PAL 1
[ 113.774051] video_open ID:5 dmaCH 5 request 20
[ 113.774058]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video5 minor5 type=vid-cap video_opened=0xFF k:5 tvnorm::PAL 1
[ 113.818046] video_open ID:6 dmaCH 6 request 40
[ 113.818053]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video6 minor6 type=vid-cap video_opened=0xFF k:6 tvnorm::PAL 1
[ 113.862063] video_open ID:7 dmaCH 7 request 80
[ 113.862070]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video7 minor7 type=vid-cap video_opened=0xFF k:7 tvnorm::PAL 1
[ 113.995999] video_open ID:7 dmaCH 7 request 80
[ 113.996008]
&&&&&&&&&&&&&&& 0Xffffffc0ea300000 open /dev/video7 minor7 type=vid-cap video_opened=0xFF k:7 tvnorm::PAL 1
[ 113.996725] ========TW68__enum_fmt_vid_cap description 15 bpp RGB, le
[ 113.996735] ========TW68__enum_fmt_vid_cap description 16 bpp RGB, le
[ 113.996746] ========TW68__enum_fmt_vid_cap description 4:2:2 packed, YUYV
[ 113.996751] ========TW68__enum_fmt_vid_cap description 4:2:2 packed, UYVY
[ 113.996993] try fmt fail ffffffea
[ 116.006392] usb 1-2.3: usb_suspend_both: status 0

atri@atri-desktop:~$ gst-launch-1.0 -e --gst-debug-level=1 v4l2src device="/dev/video0" ! “video/x-raw, width=740, height=480, format=(string)UYVY” ! xvimagesink -e
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
0:00:00.431112865 7118 0x558c0152d0 ERROR v4l2 gstv4l2object.c:1927:gst_v4l2_object_get_interlace_mode: Unknown enum v4l2_field 3
0:00:00.431213125 7118 0x558c0152d0 ERROR v4l2 gstv4l2object.c:1927:gst_v4l2_object_get_interlace_mode: Unknown enum v4l2_field 3
0:00:00.431274531 7118 0x558c0152d0 ERROR v4l2 gstv4l2object.c:1927:gst_v4l2_object_get_interlace_mode: Unknown enum v4l2_field 3
Setting pipeline to PLAYING …
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
New clock: GstSystemClock
Got EOS from element “pipeline0”.
EOS received - stopping pipeline…
Execution ended after 0:00:00.000516771
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Hi,

I am a little bit confused by your case. Could you share some detail about tw6869 and what is the usecase for video0~7 here?

Could you share the what format is from the decoder?

Everything works. There are error messages but the video is playing.

gst-launch-1.0 -e --gst-debug-level=2 v4l2src norm=NTSC device="/dev/video3" ! “video/x-raw, width=640, height=480, format=(string)UYVY” ! xvimagesink -e

I have problems again. I can’t start the Deppstream-app.

atri@atri-desktop:/opt/nvidia/deepstream/deepstream-4.0/sources/apps/sample_apps/deepstream-app$ ./deepstream-app -c …/…/…/…/samples/configs/deepstream-app/source1_usb_dec_infer_resnet_int8.txt --gst-debug=2

(deepstream-app:12994): GStreamer-WARNING **: 14:59:08.345: Name ‘src_cap_filter’ is not unique in bin ‘src_sub_bin0’, not adding
0:00:00.672330104 12994 0x55ad0eb800 WARN omx gstomx.c:2826:plugin_init: Failed to load configuration file: Valid key file could not be found in search dirs (searched in: /home/atri/.config:/etc/xdg/xdg-unity:/etc/xdg as per GST_OMX_CONFIG_DIR environment variable, the xdg user config directory (or XDG_CONFIG_HOME) and the system config directory (or XDG_CONFIG_DIRS)
Creating LL OSD context new
0:00:00.820900364 12994 0x55ad0f0630 WARN v4l2 gstv4l2object.c:2866:gst_v4l2_object_get_nearest_size:<src_elem:src> Unable to try format: Invalid argument
0:00:00.820906562 12994 0x55ad0eb800 WARN v4l2src gstv4l2src.c:692:gst_v4l2src_query:<src_elem> Can’t give latency since framerate isn’t fixated !
0:00:00.820964010 12994 0x55ad0f0630 WARN v4l2 gstv4l2object.c:2754:gst_v4l2_object_probe_caps_for_format:<src_elem:src> Could not probe minimum capture size for pixelformat RGBO
0:00:00.821051198 12994 0x55ad0f0630 WARN v4l2 gstv4l2object.c:2866:gst_v4l2_object_get_nearest_size:<src_elem:src> Unable to try format: Invalid argument
0:00:00.821094218 12994 0x55ad0f0630 WARN v4l2 gstv4l2object.c:2760:gst_v4l2_object_probe_caps_for_format:<src_elem:src> Could not probe maximum capture size for pixelformat RGBO

Runtime commands:
h: Print this help
q: Quit

p: Pause
r: Resume

NOTE: To expand a source in the 2D tiled display and view object details, left-click on the source.
To go back to the tiled display, right-click anywhere on the window.

** INFO: <bus_callback:189>: Pipeline ready

0:00:00.822401875 12994 0x55ad0f0630 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<src_elem> error: Internal data stream error.
0:00:00.822448073 12994 0x55ad0f0630 WARN basesrc gstbasesrc.c:3055:gst_base_src_loop:<src_elem> error: streaming stopped, reason not-negotiated (-4)
** INFO: <bus_callback:175>: Pipeline running

ERROR from src_elem: Internal data stream error.
Debug info: gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline/GstBin:multi_src_bin/GstBin:src_sub_bin0/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)
Quitting
App run failed

Hi,

Please also file a topic in deepstream forum board. Thanks.
https://devtalk.nvidia.com/default/board/209/deepstream-sdk/