imx6 L4.9.11 imxeglvivsink usage errors

cancel
Showing results for 
Search instead for 
Did you mean: 

imx6 L4.9.11 imxeglvivsink usage errors

495 Views
westbrook
Contributor III

Hello guys, 

I am now using imx6 with L4.9.11 BSP. Following is my software conditions:

BSP: L4.9.11

Display: Xserver

Gstreamer: gstreamer 1.10.4

I am trying to using gstreamer element “imxeglvivsink”, I can find this element with “gst-inspect-1.0 | grep imx”。

I tried following test:

# Xorg &

# export DISPLAY=:0

# gst-launch-1.0 videotestsrc ! imeglvivsink 

I can see the test video just show on the LCD screen for very few time, disapper very fast. And the pipeline stopped according to the gst logs:

0:00:03.297011334 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:325:gst_imx_egl_viv_sink_gles2_renderer_build_shader: successfully compiled vertr
0:00:03.309241000 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:325:gst_imx_egl_viv_sink_gles2_renderer_build_shader: successfully compiled fragr
0:00:03.316913667 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:393:gst_imx_egl_viv_sink_gles2_renderer_link_program: successfully linked program
0:00:03.321012000 1309 0x6bb02600 INFO imxgles2renderer gles2_renderer.c:210:gst_imx_egl_viv_sink_gles2_renderer_thread: starting GLES2 renderer loop
0:00:03.321145000 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:788:gst_imx_egl_viv_sink_gles2_renderer_render_current_frame: rendering frame
0:00:03.321305334 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:800:gst_imx_egl_viv_sink_gles2_renderer_render_current_frame: new display scale:0
0:00:03.321518667 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:695:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: w/h: 320/240 total_w/h: 320
0:00:03.321619334 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:702:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: video frame did change
0:00:03.322419667 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:746:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: copying pixels into VIV dir
0:00:03.341752667 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:788:gst_imx_egl_viv_sink_gles2_renderer_render_current_frame: rendering frame
0:00:03.342043001 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:695:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: w/h: 320/240 total_w/h: 320
0:00:03.343228001 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:702:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: video frame did change
0:00:03.343488001 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:746:gst_imx_egl_viv_sink_gles2_renderer_fill_texture: copying pixels into VIV dir
0:00:03.686280001 1309 0x6bb02600 INFO imxeglplatform_x11 egl_platform_x11.c:565:gst_imx_egl_viv_sink_egl_platform_mainloop: window got closed
0:00:03.686435334 1309 0x6bb02600 INFO imxgles2renderer gles2_renderer.c:221:gst_imx_egl_viv_sink_gles2_renderer_thread: Window closed - stopping thread
0:00:03.717026001 1309 0x6bb02600 LOG imxgles2renderer gles2_renderer.c:240:gst_imx_egl_viv_sink_gles2_renderer_thread: thread function finished
Got EOS from element "pipeline0".
Execution ended after 0:00:01.136184001
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...

Please refer to attached complete log.

Why the window closed? How can I make imxelgvivsink work fine on imx6?

Thanks in advance.

Best Regards,

Xiao

Labels (2)
0 Kudos
4 Replies

326 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi xiao

one can look at gstreamer-imx tutorial:

i.MX6 GStreamer-imx Plugins - Tutorial & Example Pipelines 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

326 Views
westbrook
Contributor III

Hi Igor,

Thanks for you reply.

I referred to this tutorial, but I still got above error, I am not sure why the window closed. Is it related to the Xserver?

I need to make sure the imxeglvivsink work on the command line.

Thank you.

BR,

Xiao

0 Kudos

326 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Xiao

issues with gstreamer-imx can be posted on

Issues · Freescale/gstreamer-imx · GitHub 

Alternatively one can try nxp gst1.0-plugins described in

linux documentation (Linux Guide, Release Notes) on

i.MX Software | NXP 

Best regards
igor

0 Kudos

326 Views
westbrook
Contributor III

Hi Igor,

Thank you.

I will try.

BR,

Xiao

0 Kudos