DRM render

袁嘉伟 yuanjw1025 at 163.com
Tue Nov 22 02:59:09 EST 2016


Hi, Arunkumar:
       
        Because there is no x11 library in my sdk(Yocto) that provided by Bsp, I modified wrap in eglvivsink.
        I set default platform as wayland instead of x11 and compiled successfully.
        Then I put all the libgstimx***.so into the arm(/usr/lib). 
        And I found the gst-launch-1.0 under the /usr/bin.
        
Below is the pipeline command and logs in terminal. I don't know whether 'Not initialized' is an error. 


gst-launch-1.0 playbin uri=file:///opt/sintel_trailer-1080p.mp4 video-sink="imxeglvivsink window-width=800 window-height=480"


Setting pipeline to PAUSED ...
output_scale 
Pipeline is PREROLLING ...


====== AIUR: 4.0.9 build on Oct 28 2016 18:02:57. ======
        Core: MPEG4PARSER_06.09.22  build on Jan 12 2016 05:26:25
 file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:00:52.208000000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)1920, height=(int)1080, frame 
------------------------
------------------------
    Track 01 [audio_0] Enabled
        Duration: 0:00:51.946000000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)0, stream-format=(string)raw, codec_data=(buff 
------------------------
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed soc_pcm_open 440 
DEBUG: Passed fsl_esai_startup 475 
esai_ipg clk_gate2_enable
DEBUG: Passed fsl_esai_startup 484 
DEBUG: Passed fsl_esai_startup 488 
esai_extal clk_gate2_enable
DEBUG: Passed fsl_esai_startup 494 
DEBUG: Passed fsl_esai_startup 500 
fsl-esai-dai 2024000.esai: ASoC: can open interface 2024000.esai: 0
DEBUG: Passed dmaengine_pcm_open 200 
DEBUG: Passed dmaengine_pcm_set_runtime_hwparams 129 
ASoC: runtime->hw.info == 852227
ASoC: runtime->hw.formats == 0x8085ae88
ASoC: runtime->hw.period_bytes_min == 128
ASoC: runtime->hw.period_bytes_max == 65535
ASoC: runtime->hw.periods_min == 2
ASoC: runtime->hw.periods_max == 255
ASoC: runtime->hw.buffer_bytes_max == 262144
ASoC: runtime->hw.fifo_size == 0
fsl-esai-dai 2024000.esai: ASoC: can open platform 2024000.esai: 0
fsl-esai-dai 2024000.esai: ASoC:  platform->driver->ops->open == 0x80551400
tef6635-dummy-codec tef6635-dummy-codec: ASoC: can open codec hero-esai-dai: 0
DEBUG: Passed imx_tef6635_surround_startup 131 
ASoC: MainAudio startup succeed: 0
DEBUG: Passed soc_pcm_init_runtime_hw 377 
ASoC: hero-esai-dai <-> 2024000.esai info:
ASoC: rate mask 0xfe
ASoC: min ch 2 max ch 12
ASoC: min rate 8000 max rate 48000
DEBUG: Passed snd_soc_runtime_activate 52 
DEBUG: Passed soc_pcm_hw_params 852 
DEBUG: Passed imx_tef6635_surround_hw_params 60 
DEBUG: Passed fsl_esai_set_dai_sysclk 225 
DEBUG: Passed fsl_esai_set_dai_fmt 385 
DEBUG: Passed fsl_esai_set_dai_tdm_slot 364 
imx-tef6635 sound-tef6635: ASoC: machine hw_params succeed: 0
imx-tef6635 sound-tef6635: ASoC: rtd->dai_link->ops->hw_params == 0x80560ec8
DEBUG: Passed soc_dai_hw_params 821 
tef6635-dummy-codec tef6635-dummy-codec: ASoC: can set hero-esai-dai hw params: 0
tef6635-dummy-codec tef6635-dummy-codec: ASoC: dai->driver->ops->hw_params == 0x80551a08
DEBUG: Passed soc_dai_hw_params 821 
DEBUG: Passed fsl_esai_hw_params 542 
DEBUG: Passed fsl_esai_set_bclk 320 
fsl-esai-dai 2024000.esai: hck_rate == 24576000, freq == 2822400, ratio == 8
fsl-esai-dai 2024000.esai: failed to derive required SCKT rate
fsl-esai-dai 2024000.esai: ASoC: can't set 2024000.esai hw params: -22
esai_extal clk_gate2_disable
esai_ipg clk_gate2_disable


====== BEEP: 4.0.9 build on Oct 28 2016 18:03:09. ======
        Core: AAC decoder Wrapper  build on Apr 22 2014 09:43:50
 file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8  build on Jun 19 2014 18:30:32.
[INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0
[WARN]  VPU iram is less than needed, some parts don't use iram
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed snd_open 159 
DEBUG: Passed snd_card_file_add 949 
DEBUG: Passed soc_pcm_open 440 
DEBUG: Passed fsl_esai_startup 475 
esai_ipg clk_gate2_enable
DEBUG: Passed fsl_esai_startup 484 
DEBUG: Passed fsl_esai_startup 488 
esai_extal clk_gate2_enable
DEBUG: Passed fsl_esai_startup 494 
DEBUG: Passed fsl_esai_startup 500 
fsl-esai-dai 2024000.esai: ASoC: can open interface 2024000.esai: 0
DEBUG: Passed dmaengine_pcm_open 200 
DEBUG: Passed dmaengine_pcm_set_runtime_hwparams 129 
ASoC: runtime->hw.info == 852227
ASoC: runtime->hw.formats == 0x8085ae88
ASoC: runtime->hw.period_bytes_min == 128
ASoC: runtime->hw.period_bytes_max == 65535
ASoC: runtime->hw.periods_min == 2
ASoC: runtime->hw.periods_max == 255
ASoC: runtime->hw.buffer_bytes_max == 262144
ASoC: runtime->hw.fifo_size == 0
fsl-esai-dai 2024000.esai: ASoC: can open platform 2024000.esai: 0
fsl-esai-dai 2024000.esai: ASoC:  platform->driver->ops->open == 0x80551400
tef6635-dummy-codec tef6635-dummy-codec: ASoC: can open codec hero-esai-dai: 0
DEBUG: Passed imx_tef6635_surround_startup 131 
ASoC: MainAudio startup succeed: 0
DEBUG: Passed soc_pcm_init_runtime_hw 377 
ASoC: hero-esai-dai <-> 2024000.esai info:
ASoC: rate mask 0xfe
ASoC: min ch 2 max ch 12
ASoC: min rate 8000 max rate 48000
DEBUG: Passed snd_soc_runtime_activate 52 
DEBUG: Passed soc_pcm_hw_params 852 
DEBUG: Passed imx_tef6635_surround_hw_params 60 
DEBUG: Passed fsl_esai_set_dai_sysclk 225 
DEBUG: Passed fsl_esai_set_dai_fmt 385 
DEBUG: Passed fsl_esai_set_dai_tdm_slot 364 
imx-tef6635 sound-tef6635: ASoC: machine hw_params succeed: 0
imx-tef6635 sound-tef6635: ASoC: rtd->dai_link->ops->hw_params == 0x80560ec8
DEBUG: Passed soc_dai_hw_params 821 
tef6635-dummy-codec tef6635-dummy-codec: ASoC: can set hero-esai-dai hw params: 0
tef6635-dummy-codec tef6635-dummy-codec: ASoC: dai->driver->ops->hw_params == 0x80551a08
DEBUG: Passed soc_dai_hw_params 821 
DEBUG: Passed fsl_esai_hw_params 542 
DEBUG: Passed fsl_esai_set_bclk 320 
fsl-esai-dai 2024000.esai: hck_rate == 24576000, freq == 2822400, ratio == 8
fsl-esai-dai 2024000.esai: failed to derive required SCKT rate
fsl-esai-dai 2024000.esai: ASoC: can't set 2024000.esai hw params: -22
esai_extal clk_gate2_disable
esai_ipg clk_gate2_disable
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Not initialized
Got EOS from element "playbin0".
Execution ended after 0:00:52.231366672
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Not initialized



在 2016-11-21 18:52:01,"arunkrish20 ." <arunkrish20 at gmail.com> 写道:




Hi Anthenony,


Please find the below sample pipeline command,
gst-launch-1.0 playbin uri=file:///meta/video1.mp4 video-sink="imxeglvivsink window-width=800 window-height=480


Thanks,

Arunkumar R



On Mon, Nov 21, 2016 at 2:38 PM, 袁嘉伟 <yuanjw1025 at 163.com> wrote:

Hi, Arunkumar:


        I have compiled gstreamer-imx0.12.3 with your patch successfully. 
        I want to test whether the libgstxxxx.so file are available.
        Do you have any video examples with eglvivsink?


        
Best regards,
Anthenony


在 2016-11-18 17:24:55,"arunkrish20 ." <arunkrish20 at gmail.com> 写道:

Hi Anthenony,



EGLvivsink is under Freescale/Gstreamer-imx for IMX6.


But i dont know about "glimagesink". I have seen in internet, I think freescale is not provided this sink, Please confirm with him.

Please go through the link and understand further on eglvivsink related stuffs.
https://github.com/Freescale/gstreamer-imx



Thanks,

Arunkumar R



On Fri, Nov 18, 2016 at 12:43 PM, 袁嘉伟 <yuanjw1025 at 163.com> wrote:

Hi Arunkumar,


       Thank you for your help.
       
       The engineer of Freescale told me that I should use glimagesink to playing the video in this project.
       I know nothing about glimagesink.
       So do you know that could glimagesink work with ivi-shell?
       If not, is there any other way?



Best regards,
Anthenony



At 2016-11-17 15:48:59, "arunkrish20 ." <arunkrish20 at gmail.com> wrote:

Hi Anthenony,


Have you checked my patch in the given link in my previous mail.
Are you able to run the video in your setup with eglvivsink?

Why do you want to use ilm APIS in eglvivsink?


Your ilm surface controls should be in your application, not from eglvivsink.


Eglvivsink should create the surface when pipeline is created.
When you destroy the pipelines eglvivsink will remove the surface. Thats it.
Meantime your application should take care of surface visibility or anything based on use case.
You should not overload or should not write the application code in the eglvivsink.


How to run:

1. Run the layer-add-surface 1000 1

2. Give gstreamer pipeline command to play a video with eglvivsink.

note: if still video is not visible check the visibility of the surface attached from eglvivsink.



Feel free to ask anything related to this.



Thanks,

Arunkumar R







On Thu, Nov 17, 2016 at 12:49 PM, 袁嘉伟 <yuanjw1025 at 163.com> wrote:

Hi Arunkumar,


    Do you have any simple examples which is about eglvivsink and use the ilm APIS?
    I want to learn more knowledge about eglvivsink and apply to the project.
    Thanks.




Best regards,
Anthenony

At 2016-11-15 17:28:57, "Rajagopal, Arunkumar (A.)" <arunkumar.rajagopal at visteon.com> wrote:
>Hi Anthenony,
>
>For IMX6, Freescale provided eglvivsink(with wayland) for playing the video instead wayland sink.
>I have modified the code to work with ivi-shell.
>
>Patch, that I have attached in the github. Please refer that.
>Wayland sink taking more CPU to play the video(around 70%), so that we moved to eglvivsink and CPU will take less 20% to play the video with this sink.
>
>https://github.com/Freescale/gstreamer-imx/issues/115#issuecomment-260185862
>
>Thanks,
>Arunkumar R
>
>-----Original Message-----
>From: genivi-ivi-layer-management [mailto:genivi-ivi-layer-management-bounces at mailman1.genivi.org] On Behalf Of Ucan, Emre (ADITG/SW1)
>Sent: Tuesday, November 15, 2016 1:28 PM
>To: 袁嘉伟; genivi-ivi
>Subject: RE: DRM render
>
>Hi,
>
>1. Wayland IVI Extension examples are wayland clients. You can use pixman renderer with drm backend with --use-pixman commandline option.
>2. I think wayland sink only supports wl_shell. Therefore, you cannot use it with ivi-shell out of the box. You have to implement ivi_application support for wayland sink.
>
>Best regards
>
>Emre Ucan
>Software Group I (ADITG/SW1)
>
>Tel. +49 5121 49 6937
>
>> -----Original Message-----
>> From: genivi-ivi-layer-management [mailto:genivi-ivi-layer-management-
>> bounces at mailman1.genivi.org] On Behalf Of ???
>> Sent: Dienstag, 15. November 2016 04:13
>> To: genivi-ivi
>> Subject: DRM render
>> 
>> Hi,All:
>> 
>>     1. Now genivi ivi extension provide some examples only about 
>> OpenGL ES render.
>>     Could drm backend use the pixman renderer instead of OpenGL ES?
>> 
>> 
>>     2. Could ivi extension support that using wayland sink to render 
>> Gstreamer Video?
>>         If not, how could ivi render the video?
>> 
>>     Perhaps the way I asked is not very correct. Please bear with me.
>> 
>> Best regards,
>> Anthenony
>_______________________________________________
>genivi-ivi-layer-management mailing list genivi-ivi-layer-management at mailman1.genivi.org
>http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-ivi-layer-management

_______________________________________________
genivi-ivi-layer-management mailing list
genivi-ivi-layer-management at mailman1.genivi.org
http://lists.genivi.org/cgi-bin/mailman/listinfo/genivi-ivi-layer-management







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genivi.org/pipermail/genivi-ivi-layer-management_lists.genivi.org/attachments/20161122/d2913bfb/attachment.html>


More information about the genivi-ivi-layer-management mailing list