cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peakpeak
Adventurer
Adventurer
330 Views
Registered: ‎03-31-2020

VCU Gstreamer rendered black screen on HDMI TX

Hi,

I am rebuilding  vcu ml system.

Board: ZCU104

Platform: Petalinux 2019.1 & Vivado 2019.1

The gst-launch-1.0 -v videotestsrc ! kmssink bus-id=a2070000.v_mix runs OK. I could see the test pattern.

However, when I decode and display the face_15fps.mp4, which was downloaded from here

 

modetest -D a2070000.v_mix -s 42:1920x1080@AR24 &

WIDTH=480
HEIGHT=360
WOFF=100
HOFF=60
gst-launch-1.0 filesrc location=/media/card/face_15fps.mp4 ! qtdemux ! h264parse ! omxh264dec internal-entropy-buffers=3 ! xlnxvideoscale ! \
video/x-raw, width=$WIDTH, height=$HEIGHT, format= BGR ! \
fpsdisplaysink video-sink="kmssink plane-id=30 bus-id="a2070000.v_mix" render-rectangle=\"<$WOFF,$HOFF,$WIDTH,$HEIGHT>\"" text-overlay=false sync=false
The rendered screen becomes: a rectangle of <0,60,480,360> becomes black on a blue background as in the attached photo.

screen_.jpg

 

I thought it was because of incorrect video format, but could not find out the root cause. Below is my modetest result. Could you please help inspect this case?

oot@xilinx-zcu104-2019_1:/media/card# modetest -D a2070000.v_mix
Encoders:
id	crtc	type	possible crtcs	possible clones	
41	40	TMDS	0x00000001	0x00000000

Connectors:
id	encoder	status		name		size (mm)	modes	encoders
42	41	connected	HDMI-A-1       	520x320		40	41
  modes:
	name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
  1920x1200 60 1920 1968 2000 2080 1200 1203 1209 1235 154000 flags: phsync, pvsync; type: preferred, driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148352 flags: phsync, pvsync; type: driver
  1920x1080 50 1920 2448 2492 2640 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  1920x1080 30 1920 2008 2052 2200 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
  1920x1080 30 1920 2008 2052 2200 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
  1920x1080 25 1920 2448 2492 2640 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 74250 flags: phsync, pvsync; type: driver
  1920x1080 24 1920 2558 2602 2750 1080 1084 1089 1125 74176 flags: phsync, pvsync; type: driver
  1600x1200 60 1600 1664 1856 2160 1200 1201 1204 1250 162000 flags: phsync, pvsync; type: driver
  1280x1024 75 1280 1296 1440 1688 1024 1025 1028 1066 135000 flags: phsync, pvsync; type: driver
  1280x1024 60 1280 1328 1440 1688 1024 1025 1028 1066 108000 flags: phsync, pvsync; type: driver
  1920x1080i 60 1920 2008 2052 2200 540 1084 1094 1125 74250 flags: phsync, pvsync, interlace; type: driver
  1920x1080i 60 1920 2008 2052 2200 540 1084 1094 1125 74250 flags: phsync, pvsync, interlace; type: driver
  1920x1080i 60 1920 2008 2052 2200 540 1084 1094 1125 74176 flags: phsync, pvsync, interlace; type: driver
  1920x1080i 50 1920 2448 2492 2640 540 1084 1094 1125 74250 flags: phsync, pvsync, interlace; type: driver
  1152x864 75 1152 1216 1344 1600 864 865 868 900 108000 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1280x720 60 1280 1390 1430 1650 720 725 730 750 74176 flags: phsync, pvsync; type: driver
  1280x720 50 1280 1720 1760 1980 720 725 730 750 74250 flags: phsync, pvsync; type: driver
  1024x768 75 1024 1040 1136 1312 768 769 772 800 78750 flags: phsync, pvsync; type: driver
  1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
  800x600 75 800 816 896 1056 600 601 604 625 49500 flags: phsync, pvsync; type: driver
  800x600 60 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
  720x576 50 720 732 796 864 576 581 586 625 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27027 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  720x480 60 720 736 798 858 480 489 495 525 27000 flags: nhsync, nvsync; type: driver
  640x480 75 640 656 720 840 480 481 484 500 31500 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25200 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
  720x400 70 720 738 846 900 400 412 414 449 28320 flags: nhsync, pvsync; type: driver
  720x576i 50 720 732 795 864 288 580 586 625 27000 flags: nhsync, nvsync, interlace, dblclk; type: driver
  720x480i 60 720 739 801 858 240 488 494 525 27028 flags: nhsync, nvsync, interlace, dblclk; type: driver
  720x480i 60 720 739 801 858 240 488 494 525 27000 flags: nhsync, nvsync, interlace, dblclk; type: driver
  props:
	1 EDID:
		flags: immutable blob
		blobs:

		value:
			00ffffffffffff0010acbaa0554d3630
			011d010380342078ea0495a9554d9d26
			105054a54b00714f8180a940d1c0d100
			010101010101283c80a070b023403020
			360006442100001e000000ff00463547
			4a3239313230364d550a000000fc0044
			454c4c2055323431350a2020000000fd
			00313d1e5311000a20202020202001d2
			020322f14f9005040302071601141f12
			132021222309070765030c0010008301
			0000023a801871382d40582c45000644
			2100001e011d8018711c1620582c2500
			06442100009e011d007251d01e206e28
			550006442100001e8c0ad08a20e02d10
			103e9600064421000018000000000000
			00000000000000000000000000000082
	2 DPMS:
		flags: enum
		enums: On=0 Standby=1 Suspend=2 Off=3
		value: 0
	5 link-status:
		flags: enum
		enums: Good=0 Bad=1
		value: 0
	6 non-desktop:
		flags: immutable range
		values: 0 1
		value: 0
	19 CRTC_ID:
		flags: object
		value: 40

CRTCs:
id	fb	pos	size
40	43	(0,0)	(1920x1080)
  1920x1080 60 1920 2008 2052 2200 1080 1084 1089 1125 148500 flags: phsync, pvsync; type: driver
  props:
	20 ACTIVE:
		flags: range
		values: 0 1
		value: 1
	21 MODE_ID:
		flags: blob
		blobs:

		value:
			144402008007d8070408980800003804
			3c044104650400003c00000005000000
			40000000313932307831303830000000
			00000000000000000000000000000000
			00000000
	18 OUT_FENCE_PTR:
		flags: range
		values: 0 18446744073709551615
		value: 0

Planes:
id	crtc	fb	CRTC x,y	x,y	gamma size	possible crtcs
30	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
31	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
32	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
33	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
34	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
35	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
36	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
37	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 1440
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 116
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 480
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 247
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 31457280
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 23592960
38	0	0	0,0		0,0	0       	0x00000001
  formats: RG24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 0
	16 FB_ID:
		flags: object
		value: 0
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 0
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 0
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 0
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 0
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 0
39	40	43	0,0		0,0	0       	0x00000001
  formats: AR24
  props:
	7 type:
		flags: immutable enum
		enums: Overlay=0 Primary=1 Cursor=2
		value: 1
	16 FB_ID:
		flags: object
		value: 43
	17 IN_FENCE_FD:
		flags: signed range
		values: -1 2147483647
		value: -1
	19 CRTC_ID:
		flags: object
		value: 40
	12 CRTC_X:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	13 CRTC_Y:
		flags: signed range
		values: -2147483648 2147483647
		value: 0
	14 CRTC_W:
		flags: range
		values: 0 2147483647
		value: 1920
	15 CRTC_H:
		flags: range
		values: 0 2147483647
		value: 1080
	8 SRC_X:
		flags: range
		values: 0 4294967295
		value: 0
	9 SRC_Y:
		flags: range
		values: 0 4294967295
		value: 0
	10 SRC_W:
		flags: range
		values: 0 4294967295
		value: 125829120
	11 SRC_H:
		flags: range
		values: 0 4294967295
		value: 70778880

Frame buffers:
id	size	pitch

 

 

0 Kudos
Reply
1 Reply
florentw
Moderator
Moderator
219 Views
Registered: ‎11-09-2015

Hi @peakpeak 

Can you share the log you get when running the command?

Did you try with another h264 file? I am not familiar with that file but looking at the following demo, it seems that you are expected to read it from a PC then stream it to the board:

https://github.com/Xilinx/Embedded-Reference-Platforms-User-Guide/blob/master/Docs/run-application.md

BTW, the application below is running on the ZCU104, did you try with it directly?


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Reply