mx6: video playback using the coda driver

Fabio Estevam festevam at gmail.com
Mon Oct 9 14:03:00 UTC 2017


Hi Philipp,

On Mon, Oct 9, 2017 at 10:57 AM, Philipp Zabel <p.zabel at pengutronix.de> wrote:

> -ERANGE could be returned by drm_plane_helper_check_state if kmssink
> requests scaling, which we don't support in the imx-drm driver.
> Though I'm not sure why that whould happen on 1.12, especially if the
> video size matches the output size.

Actually the LVDS resolution is 1024x768 and the video resolution is 1920x1080.

> What gets logged with GST_DEBUG="kmssink:6" set in the environment?

# export GST_DEBUG="kmssink:6"
# gst-play-1.0  /root/trailer_1080p_h264_mp3.avi
Press 'k' to see a list of keyboard shortcuts.
Now playing /root/trailer_1080p_h264_mp3.avi
0:00:00.993658667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:275:log_drm_version:<kmssink0> DRM v1.0.0 [imx-drm — i.MX
DRM graphics — 20120507]
0:00:00.994568667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:318:get_drm_caps:<kmssink0> prime import (✓) / async page
flip (✗)
0:00:00.995538000   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AR15
0:00:00.996351667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format XR15
0:00:00.997178333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AB15
0:00:00.997986667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format XB15
0:00:00.998791333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RA15
0:00:00.999596333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BA15
0:00:01.000469667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AR12
0:00:01.001427333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RA24
0:00:01.002267333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RX24
0:00:01.003113333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BA24
0:00:01.003946000   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BX24
0:00:01.004811333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format VYUY
0:00:01.005778667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YV16
0:00:01.006614667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YU24
0:00:01.007444333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YV24
0:00:01.008360333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RG16
0:00:01.009194333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format R5A8
0:00:01.010030333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format B5A8
0:00:01.011174667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format R8A8
0:00:01.012002333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format B8A8
0:00:01.012822667   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RXA8
0:00:01.013640333   236   0xd2b460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BXA8
0:00:01.014914000   236   0xd2b460 DEBUG                kmssink
gstkmssink.c:483:ensure_allowed_caps:<kmssink0> allowed caps =
video/x-raw, format=(string){ BGRA, BGRx, RGBA, RGBx, UYVY, YUY2,
YVYU, I420,
 YV12, Y42B, NV12, NV16 }, width=(int)[ 1, 4096 ], height=(int)[ 1,
4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]0:00:01.518558667
236   0xd9caf0 DEBUG                kmssink gstkmssink.c:788:gst_km
s_sink_calculate_display_ratio:<kmssink0> video calculated display ratio: 16/9
0:00:01.519830333   236   0xd9caf0 DEBUG                kmssink
gstkmssink.c:797:gst_kms_sink_calculate_display_ratio:<kmssink0>
keeping video height
0:00:01.520963333   236   0xd9caf0 DEBUG                kmssink
gstkmssink.c:813:gst_kms_sink_calculate_display_ratio:<kmssink0>
scaling to 1920x1080
0:00:01.522591000   236   0xd9caf0 DEBUG                kmssink
gstkmssink.c:856:gst_kms_sink_set_caps:<kmssink0> negotiated caps =
video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080,
int
erlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
chroma-site=(string)mpeg2, colorimetry=(string)bt709,
framerate=(fraction)25/1
Redistribute latency...
0:00:01.972174000   236   0xd9caf0 DEBUG                kmssink
gstkmssink.c:1318:gst_kms_sink_show_frame:<kmssink0> result = { 0, 0,
1024, 768} / src = { 0, 0, 1920 1080 } / dst = { 0, 0, 1024 768 }
0:00:01.973208667   236   0xd9caf0 WARN                 kmssink
gstkmssink.c:1320:gst_kms_sink_show_frame:<kmssink0> error:
drmModeSetPlane failed: Numerical result out of range (-34)
ERROR GStreamer encountered a general resource error. for
file:///root/trailer_1080p_h264_mp3.avi
ERROR debug information: gstkmssink.c(1320): gst_kms_sink_show_frame
(): /GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstKMSSink:kmssink0:
drmModeSetPlane failed: Numerical result out of range (-34)
Reached end of play list.

> What gets logged if you enable KMS debug flag (echo 4 >
> /sys/module/drm/parameters/debug)?

# echo 4 > /sys/module/drm/parameters/debug
# gst-play-1.0  /root/trailer_1080p_h264_mp3.avi
Press 'k' to see a list of keyboard shortcuts.
Now playing /root/trailer_1080p_h264_mp3.avi
0:00:00.989601667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:275:log_drm_version:<kmssink0> DRM v1.0.0 [imx-drm — i.MX
DRM graphics — 20120507]
0:00:00.990489000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:318:get_drm_caps:<kmssink0> prime import (✓) / async page
flip (✗)
0:00:00.991644000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AR15
0:00:00.992443667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format XR15
0:00:00.993251000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AB15
0:00:00.994040000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format XB15
0:00:00.994911000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RA15
0:00:00.995706334   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BA15
0:00:00.996508000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format AR12
0:00:00.997403334   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RA24
0:00:00.998196334   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RX24
0:00:00.999003000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BA24
0:00:00.999789000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BX24
0:00:01.000607334   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format VYUY
0:00:01.001569667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YV16
0:00:01.002385667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YU24
0:00:01.003200667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format YV24
0:00:01.004072000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RG16
0:00:01.004961667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format R5A8
0:00:01.005781000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format B5A8
0:00:01.006592667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format R8A8
0:00:01.007423000   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format B8A8
0:00:01.008233334   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format RXA8
0:00:01.009045667   245  0x14c5460 INFO                 kmssink
gstkmssink.c:452:ensure_allowed_caps:<kmssink0> ignoring format BXA8
0:00:01.010315000   245  0x14c5460 DEBUG                kmssink
gstkmssink.c:483:ensure_allowed_caps:<kmssink0> allowed caps =
video/x-raw, format=(string){ BGRA, BGRx, RGBA, RGBx, UYVY, YUY2,
YVYU, I420,
 YV12, Y42B, NV12, NV16 }, width=(int)[ 1, 4096 ], height=(int)[ 1,
4096 ], framerate=(fraction)[ 0/1, 2147483647/1 ]0:00:01.515325667
245  0x15368f0 DEBUG                kmssink gstkmssink.c:788:gst_km
s_sink_calculate_display_ratio:<kmssink0> video calculated display ratio: 16/9
0:00:01.516198000   245  0x15368f0 DEBUG                kmssink
gstkmssink.c:797:gst_kms_sink_calculate_display_ratio:<kmssink0>
keeping video height
0:00:01.516985334   245  0x15368f0 DEBUG                kmssink
gstkmssink.c:813:gst_kms_sink_calculate_display_ratio:<kmssink0>
scaling to 1920x1080
0:00:01.518564667   245  0x15368f0 DEBUG                kmssink
gstkmssink.c:856:gst_kms_sink_set_caps:<kmssink0> negotiated caps =
video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080,
int
erlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
chroma-site=(string)mpeg2, colorimetry=(string)bt709,
framerate=(fraction)25/1
Redistribute latency...
0:00:01.973469667   245  0x15368f0 DEBUG                kmssink
gstkmssink.c:1318:gst_kms_sink_show_frame:<kmssink0> result = { 0, 0,
1024, 768} / src = { 0, 0, 1920 1080 } / dst = { 0, 0, 1024 768 }
0:00:01.974857334   245  0x15368f0 WARN                 kmssink
gstkmssink.c:1320:gst_kms_sink_show_frame:<kmssink0> error:
drmModeSetPlane failed: Numerical result out of range (-34)
ERROR GStreamer encountered a general resource error. for
file:///root/trailer_1080p_h264_mp3.avi
ERROR debug information: gstkmssink.c(1320): gst_kms_sink_show_frame
(): /GstPlayBin:playbin/GstPlaySink:playsink/GstBin:vbin/GstKMSSink:kmssink0:
drmModeSetPlane failed: Numerical result out of range (-34)
Reached end of play list.

Thanks


More information about the gstreamer-devel mailing list