Gstreamer with imx6sx sabresd

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Gstreamer with imx6sx sabresd

1,205 Views
adelantesey
Contributor IV

Dear Friends,

I am working with mx6sx sabresd EVK i am able to play audio but for video with gstremer iget this error:

-------------------------------------------------------------------------------------------------------------------------

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

====== AIUR: 4.0.2 build on Jan 17 2017 06:42:43. ======
Core: MPEG4PARSER_06.09.08 build on Nov 25 2014 11:46:12
file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
Track 00 [video_0] Enabled
Duration: 0:01:06.200000000
Language: und
Mime:
video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=(string)avc, width=(int)640, height=(int)480, framerate=(fraction)25/1, codec_data=(buffer)014d401effe10018674d401eda0280f6c044000003000400000300c83c58ba8001000468ef3c80
------------------------
====== OVERLAYSINK: 4.0.2 build on Jan 17 2017 06:42:52. ======
------------------------
Track 01 [audio_0] Enabled
Duration: 0:01:06.197000000
Language: und
Mime:
audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)48000, bitrate=(int)383882, stream-format=(string)raw, codec_data=(buffer)11b0
------------------------
Redistribute latency...

====== BEEP: 4.0.2 build on Jan 17 2017 06:42:47. ======
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
[1;33mCODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8 build on Jun 19 2014 18:30:32.
[0mPipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstAudioSinkClock
g2d_alloc: alloc memory fail with size 462848!
Execution ended after 0:00:00.035265666
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Total showed frames (0), display master blited (0), playing for (0:00:00.240000000), fps (0.000).
Setting pipeline to NULL ...
Freeing pipeline ...

----------------------------------------------------------------------------------------------------------

Could anyone help?

Labels (1)
0 Kudos
5 Replies

865 Views
adelantesey
Contributor IV

Dear All,

could anyone please help?

I used the pipeline in a way Igor mentioned above, but

I am still getting this:

g2d_alloc: alloc memory fail with size 462848!

any comment is appreciated.

thanks

0 Kudos

865 Views
igorpadykov
NXP Employee
NXP Employee

Hi Adelante

encoding and decoding of H.264 files can be done by hardware (using VPU) or software (for non-VPU processors).

As i.MX6SX does not have VPU, one can try:

$ gstreamer-launch-1.0 filesrc location=<video file> ! decodebin ! queue max-size-time=0 ! autovideosink sync=false
For software encoding and decoding of H.264, the following changes needed to be added:
build/conf/local.conf
CORE_IMAGE_EXTRA_INSTALL += “gstreamer1.0-plugins-ugly-meta packagegroup-fsl-gstreamer1.0-commercial gst-ffmpeg”
LICENSE_FLAGS_WHITELIST += “commercial”   

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

865 Views
adelantesey
Contributor IV

Thanks a lot Igor, for the help

0 Kudos

865 Views
adelantesey
Contributor IV

Hello again Igor,

i used the pipeline you advised, i also had the modules(... extra install) in local.conf.

the problem solved when i moved to imx-4.1 Krogoth i also

set distribution to xwayland.

0 Kudos

865 Views
adelantesey
Contributor IV

Hi Igor,

thanks for the reply.

I did all that! but the result is still the same!

g2d_alloc: alloc memory fail with size 462848!

any thoughts?

P.S. I used wayland/weston with this command:

$weston --tty=1 --use-gl=0

best regards

0 Kudos