i.MX6DL gstreamer imxvpuend_h264 issue

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

i.MX6DL gstreamer imxvpuend_h264 issue

1,377 Views
ganhongxing
Contributor I
 imx6dl.
 kernel-3.14.52
 gstreamer-1.8.1 
 gstreamer-imx-0.12.2
using:
v4l2src -> appsink  (m_src->pushSample(sample))  // m_src = appsrc
appsrc->imxipuvideotransform->clockoverlay->imxvpuenc_h264->filesink
issue:
0:00:07.154376334   295   0xbac660 ERROR              imxvpuapi imxvpuapi_vpulib.c:3299:imx_vpu_enc_get_initial_info: could not get initial info: failure
0:00:07.154445001   295   0xbac660 ERROR      imxvpuencoderbase encoder_base.c:444:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> could not get initial 
info: unspecified error
log detail:
0:00:05.393533001   295   0xb44400 INFO       imxvpuencoderbase encoder_base.c:284:gst_imx_vpu_encoder_base_start:<imxvpuencoderh264-0> starting VPU encoder
0:00:05.393735001   295   0xb44400 LOG                imxvpuapi imxvpuapi_vpulib.c:293:imx_vpu_load: VPU init instance counter: 0
0:00:06.071092668   295   0xb44400 INFO               imxvpuapi imxvpuapi_vpulib.c:302:imx_vpu_load: libimxvpuapi version 0.10.1 vpulib backend
0:00:06.088824334   295   0xb44400 DEBUG              imxvpuapi imxvpuapi_vpulib.c:306:imx_vpu_load: loaded VPU
0:00:07.101691001   295   0xb44400 INFO         imxvpuallocator allocator.c:60:gst_imx_vpu_allocator_init:<GstImxVpuAllocator@0xb888d8> initializing IMX VPU decoder 
allocator
0:00:07.101989001   295   0xb44400 TRACE              imxvpuapi imxvpuapi_vpulib.c:475:default_dmabufalloc_allocate: allocated 32 byte, ptr: 0xdaf160
0:00:07.116604668   295   0xb44400 DEBUG              imxvpuapi imxvpuapi_vpulib.c:499:default_dmabufalloc_allocate: allocated 1572864 bytes of physical memory
0:00:07.116889334   295   0xb44400 DEBUG              imxvpuapi imxvpuapi_vpulib.c:509:default_dmabufalloc_allocate: retrieved virtual address for physical memory
0:00:07.117030334   295   0xb44400 DEBUG              imxvpuapi imxvpuapi_vpulib.c:514:default_dmabufalloc_allocate: virtual address:  0x5da66000  aligned: 0x5da66000
0:00:07.117170001   295   0xb44400 DEBUG              imxvpuapi imxvpuapi_vpulib.c:515:default_dmabufalloc_allocate: physical address: 0x45d00000  aligned: 0x45d00000
0:00:07.117313668   295   0xb44400 LOG                imxvpuapi imxvpuapi_vpulib.c:293:imx_vpu_load: VPU init instance counter: 1
0:00:07.117483001   295   0xb44400 INFO       imxvpuencoderbase encoder_base.c:310:gst_imx_vpu_encoder_base_start:<imxvpuencoderh264-0> VPU encoder started
0:00:07.140541001   295   0xbac660 INFO       imxvpuencoderbase encoder_base.c:355:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> setting encoder format
0:00:07.140642334   295   0xbac660 DEBUG      imxvpuencoderbase encoder_base.c:383:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> input format uses shared 
chroma plane; enabling chroma interleave
0:00:07.140701001   295   0xbac660 INFO       imxvpuencoderbase encoder_base.c:392:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> setting bitrate to 1000 
kbps and GOP size to 16
0:00:07.150927001   295   0xbac660 INFO          imxvpuenc_h264 encoder_h264.c:234:gst_imx_vpu_encoder_h264_set_open_params:<imxvpuencoderh264-0> produce h.264 access 
units: yes
0:00:07.151153001   295   0xbac660 TRACE              imxvpuapi imxvpuapi_vpulib.c:2881:imx_vpu_enc_open: allocated 2100 byte, ptr: 0x65a16800
0:00:07.151275668   295   0xbac660 LOG                imxvpuapi imxvpuapi_vpulib.c:3061:imx_vpu_enc_open: opening encoder, frame size: 720 x 576 pixel
[INFO]  ringBufferEnable 0, chromaInterleave 1, mapType 0, linear2TiledEnable 1
0:00:07.153872001   295   0xbac660 DEBUG              imxvpuapi imxvpuapi_vpulib.c:3078:imx_vpu_enc_open: successfully opened encoder
0:00:07.153955668   295   0xbac660 TRACE      imxvpuencoderbase encoder_base.c:429:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> configuring encoder
0:00:07.154167001   295   0xbac660 TRACE      imxvpuencoderbase encoder_base.c:440:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> retrieving initial info
[WARN]  VPU iram is less than needed, some parts don't use iram
0:00:07.154376334   295   0xbac660 ERROR              imxvpuapi imxvpuapi_vpulib.c:3299:imx_vpu_enc_get_initial_info: could not get initial info: failure
0:00:07.154445001   295   0xbac660 ERROR      imxvpuencoderbase encoder_base.c:444:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> could not get initial 
info: unspecified error
0:00:07.487521001   295   0xbac660 WARN            videoencoder gstvideoencoder.c:674:gst_video_encoder_setcaps:<imxvpuencoderh264-0> rejected caps video/x-raw, 
width=(int)720, height=(int)576, framerate=(fraction)1/25, interlace-mode=(string)progressive, format=(string)NV12
0:00:07.488277668   295   0xbac660 INFO       imxvpuencoderbase encoder_base.c:355:gst_imx_vpu_encoder_base_set_format:<imxvpuencoderh264-0> setting encoder format
0:00:07.488351001   295   0xbac660 DEBUG      imxvpuencoderbase encoder_base.c:797:gst_imx_vpu_encoder_base_close:<imxvpuencoderh264-0> closing encoder
0:00:07.488399001   295   0xbac660 DEBUG              imxvpuapi imxvpuapi_vpulib.c:3099:imx_vpu_enc_close: closing encoder
0:00:07.488586668   295   0xbac660 TRACE              imxvpuapi imxvpuapi_vpulib.c:3125:imx_vpu_enc_close: freed 2100 byte, ptr: 0x65a16800
0:0
Labels (3)
0 Kudos
3 Replies

803 Views
igorpadykov
NXP Employee
NXP Employee

Hi gan

one can try with nxp plugins described in sect.7 Multimedia

attached Linux Guide. As for imxvpuenc_h264 and gstreamer-imx plugins

- they are supported by community:  https://lists.yoctoproject.org/listinfo/meta-freescale

There are 2 separate plugin's : community GStreamer-imx plugins and
nxp GStreamer Plugins, difference between nxp and community gstreamer plugins :
http://trac.gateworks.com/wiki/Yocto/gstreamer

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

0 Kudos

803 Views
ganhongxing
Contributor I

thinks, i have got imx-gst1.0-plugin-4.1.1

i want use appsink, appsrc for preview and record live video. recording files  5min/per .

v4l2src -> appsink  (m_src->pushSample(sample))  // m_src = appsrc
appsrc->imxvideoconvert_ipu->clockoverlay->vpuenc_h264->filesink
QGst::CapsPtr caps = QGst::Caps::fromString("video/x-raw, "
"format=(string)YUY2, width=(int)720, height=(int)576, "
"framerate=1/25, pixel-aspect-ratio=1/1");
m_qsrc.setCaps(caps);
when start the two pipelines, got errors : streaming task paused, reason not-negotiated (-4)
0 Kudos

803 Views
igorpadykov
NXP Employee
NXP Employee

please check sect.7 Multimedia attached Linux Guide

0 Kudos