Hello,
Could anyone please shed some light on this issue. I am having trouble capturing at 720p resolution with dm355 and gstreamer. The annoying thing is that I get no real error and can't really do anything about it. My main suspect is a problem with cmem buffer allocations because it seems to change its behavior when I play around with those.
Can anyone point me in the write direction for the pool sizes? one time I got this output which might hint to something:
#@2,417,692us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[0]: size=0x2c58, align=0x100, space=0x11, attrs=0x1
#@2,417,912us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[1]: size=0x200, align=0x100, space=0x11, attrs=0x1
#@2,418,126us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[2]: size=0x309c00, align=0x100, space=0x11, attrs=0x1
#@2,418,333us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[3]: size=0x1e00, align=0x100, space=0x11, attrs=0x1
#@2,418,536us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[4]: size=0x4, align=0x100, space=0x11, attrs=0x1
#@2,418,794us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[5]: size=0x14000, align=0x100, space=0x11, attrs=0x1
#@2,419,053us:
[+4 T:0x41c15490] ti.sdo.ce.alg - ALG_create> Memory requested
memTab[6]: size=0x7080, align=0x100, space=0x11, attrs=0x1
in return i tried to set the pool sizes to the following values,
modprobe cmemk phys_start=0x84200000 phys_end=0x88000000 pools=100x11352,100x512,10x3185664,100x7680,100x4,100x81920,100x28800
and now I am stuck with this output every single time(before the kernel hangs):
root@dm355-evm:~# export CE_DEBUG=2
root@dm355-evm:~# gst-launch --gst-debug-no-color --gst-debug=TI*:5 v4l2src alwa
ys-copy=false ! 'video/x-raw-yuv,width=1280,height=720'! TIVidenc1 codecName=mpe
g4enc engineName=encode contiguousInputFrame=FALSE numInputBufs=1 numOutputBufs=
3 resolution=1280x720 ! filesink location=sensor_sample_720p.m4v
(gst-launch-0.10:842): GStreamer-WARNING **: Failed to load plugin
'/usr/lib/gstreamer-0.10/libgstsubparse.so':
/usr/lib/gstreamer-0.10/libgstsubparse.so: un
defined symbol: parse_sami
@0,638,717us: [+4 T:0x40020580] OG - Global_init> This program was built with the following packages:
@0,639,469us: [+4 T:0x40020580] OG - package gnu.targets.arm.rtsv5T
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/gnu/targets/a
rm/rtsv5T/) [1, 0, 0, 0]
@0,639,856us: [+4 T:0x40020580] OG - package ti.sdo.linuxutils.cmem
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-linuxutils/packa
ges/ti/sdo/linuxutils/cmem/) [2, 2, 0]
@0,640,088us: [+4 T:0x40020580] OG - package ti.catalog.hwa.imcop
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/packages/ti
/catalog/hwa/imcop/) [1, 0, 2]
@0,640,310us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.mpeg4dec.dm355
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/pac
kages/ti/sdo/codecs/mpeg4dec/dm355/) [1, 0, 2]
@0,640,515us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.mpeg4enc.dm355
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/pac
kages/ti/sdo/codecs/mpeg4enc/dm355/) [1, 0, 2]
@0,640,763us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.jpegenc.dm355
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/pack
ages/ti/sdo/codecs/jpegenc/dm355/) [1, 0, 2]
@0,640,995us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.jpegdec.dm355
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/pack
ages/ti/sdo/codecs/jpegdec/dm355/) [1, 0, 2]
@0,641,206us: [+4 T:0x40020580] OG - package ti.sdo.fc.global
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components/p
ackages/ti/sdo/fc/global/) [1, 0, 0]
@0,641,403us: [+4 T:0x40020580] OG - package ti.sdo.utils.trace
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components
/packages/ti/sdo/utils/trace/) [1, 0, 0]
@0,641,602us: [+4 T:0x40020580] OG - package ti.xdais
(/<>/oe/temp/staging/i686-linux/ti-xdais/packages/ti/xdais/) [1,
2.0, 1]
@0,641,784us: [+4 T:0x40020580] OG - package ti.sdo.fc.memutils
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components
/packages/ti/sdo/fc/memutils/) [1, 0, 0]
@0,641,985us: [+4 T:0x40020580] OG - package ti.sdo.fc.utils
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components/pa
ckages/ti/sdo/fc/utils/) [1, 0, 2]
@0,642,184us: [+4 T:0x40020580] OG - package ti.sdo.fc.dman3
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components/pa
ckages/ti/sdo/fc/dman3/) [1, 0, 4]
@0,642,379us: [+4 T:0x40020580] OG - package ti.sdo.ce.global
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/global/) [1, 0, 0]
@0,642,579us: [+4 T:0x40020580] OG - package ti.xdais.dm
(/<>/oe/temp/staging/i686-linux/ti-xdais/packages/ti/xdais/dm/)
[1, 0, 5]
@0,642,884us: [+4 T:0x40020580] OG - package ti.sdo.ce.utils.xdm
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packag
es/ti/sdo/ce/utils/xdm/) [1, 0, 2]
@0,643,104us: [+4 T:0x40020580] OG - package ti.sdo.ce.node
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/ti
/sdo/ce/node/) [1, 0, 0]
@0,643,306us: [+4 T:0x40020580] OG - package ti.sdo.fc.acpy3
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-framework-components/pa
ckages/ti/sdo/fc/acpy3/) [1, 0, 4]
@0,643,507us: [+4 T:0x40020580] OG - package gnu.targets
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/gnu/targets/)
[1, 0, 1]
@0,643,694us: [+4 T:0x40020580] OG - package gnu.targets.arm
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/gnu/targets/arm/)
[1
, 0, 0, 0]
@0,643,882us: [+4 T:0x40020580] OG - package ti.catalog.arm
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/ti/catalog/arm/)
[1,
0, 1, 0]
@0,644,070us: [+4 T:0x40020580] OG - package ti.catalog
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/ti/catalog/)
[1, 0, 0]
@1,010,793us: [+4 T:0x40020580] OG - package ti.platforms.evmDM355
(/<>/oe/temp/staging/i686-linux/ti-xdctools-native/packages/ti/platforms/e
vmDM355/) [1, 0, 0]
@1,011,076us: [+4 T:0x40020580] OG - package ti.sdo.ce.osal
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/ti
/sdo/ce/osal/) [2, 0, 2]
@1,011,308us: [+4 T:0x40020580] OG - package ti.sdo.ce.osal.linux
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packa
ges/ti/sdo/ce/osal/linux/) [2, 0, 1]
@1,011,527us: [+4 T:0x40020580] OG - package ti.sdo.ce.ipc
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/ti/
sdo/ce/ipc/) [2, 0, 1]
@1,011,736us: [+4 T:0x40020580] OG - package ti.sdo.ce.ipc.linux
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packag
es/ti/sdo/ce/ipc/linux/) [2, 0, 1]
@1,011,992us: [+4 T:0x40020580] OG - package ti.sdo.ce.alg
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/ti/
sdo/ce/alg/) [1, 0, 1]
@1,012,215us: [+4 T:0x40020580] OG - package ti.sdo.ce
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/ti/sdo/
ce/) [1, 0, 6]
@1,012,422us: [+4 T:0x40020580] OG - package ti.sdo.ce.video2
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/video2/) [1, 0, 2]
@1,012,624us: [+4 T:0x40020580] OG - package ti.sdo.ce.image1
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/image1/) [1, 0, 1]
@1,012,826us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.mpeg4dec.dm355.ce
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/
packages/ti/sdo/codecs/mpeg4dec/dm355/ce/) [1, 0, 2]
@1,013,036us: [+4 T:0x40020580] OG - package ti.sdo.ce.video1
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/video1/) [1, 0, 2]
@1,013,240us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.mpeg4enc.dm355.ce
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/
packages/ti/sdo/codecs/mpeg4enc/dm355/ce/) [1, 0, 2]
@1,013,515us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.jpegenc.dm355.ce
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/p
ackages/ti/sdo/codecs/jpegenc/dm355/ce/) [1, 0, 2]
@1,013,737us: [+4 T:0x40020580] OG - package
ti.sdo.codecs.jpegdec.dm355.ce
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codecs/p
ackages/ti/sdo/codecs/jpegdec/dm355/ce/) [1, 0, 2]
@1,013,948us: [+4 T:0x40020580] OG - package ti.sdo.ce.speech
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/speech/) [1, 0, 2]
@1,014,150us: [+4 T:0x40020580] OG - package ti.sdo.ce.speech1
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages
/ti/sdo/ce/speech1/) [1, 0, 1]
@1,014,350us: [+4 T:0x40020580] OG - package ti.sdo.ce.audio
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/t
i/sdo/ce/audio/) [1, 0, 2]
@1,014,549us: [+4 T:0x40020580] OG - package ti.sdo.ce.audio1
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/
ti/sdo/ce/audio1/) [1, 0, 1]
@1,014,809us: [+4 T:0x40020580] OG - package ti.sdo.ce.video
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/t
i/sdo/ce/video/) [1, 0, 3]
@1,015,029us: [+4 T:0x40020580] OG - package ti.sdo.ce.image
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-codec-engine/packages/t
i/sdo/ce/image/) [1, 0, 3]
@1,015,235us: [+4 T:0x40020580] OG - package ti.sdo.dmai
(/<>/oe/temp/staging/dm355-evm-angstrom-linux-gnueabi/ti-dmai/packages/ti/sdo/dmai/)
[1, 0, 0]
@1,347,775us: [+4 T:0x40020580] OG - package gstticodecplugin_dm355
(/<>/oe/temp/work/dm355-evm-angstrom-linux-gnueabi/gstreamer-ti-svnr459-r
37/gstreamer_ti/ti_build/ticodecplugin/src/gstticodecplugin_dm355/) []
@1,348,939us: [+0 T:0x40020580] ti.sdo.ce.alg - ALG_init> Enter
@1,349,613us: [+0 T:0x40020580] ti.sdo.ce.alg - ALG_init> Exit
@1,350,172us: [+6 T:0x40020580] CE - Engine_init> CE debugging on (CE_DEBUG=2; allowed CE_DEBUG levels: 1=min, 2=good, 3=max)
@1,350,734us: [+0 T:0x40020580] CS - Server_init()
@1,350,973us: [+0 T:0x40020580] CS - Server_init> Global_useLinkArbiter = 0
0:00:03.037193714 841 0x15050 LOG TIVidenc1 gsttividenc1.c:224:gst_tividenc1_get_type: initialized get_type
0:00:03.064975922 841 0x15050 LOG TIVidenc gsttividenc.c:200:gst_tividenc_get_type: initialized get_type
0:00:03.066276881 841 0x15050 LOG TIViddec gsttividdec.c:203:gst_tividdec_get_type: initialized get_type
0:00:03.067677589 841 0x15050 LOG TIViddec2 gsttividdec2.c:212:gst_tividdec2_get_type: initialized get_type
0:00:03.068974839 841 0x15050 LOG TIImgenc1 gsttiimgenc1.c:225:gst_tiimgenc1_get_type: initialized get_type
0:00:03.083747547 841 0x15050 LOG TIImgenc gsttiimgenc.c:223:gst_tiimgenc_get_type: initialized get_type
0:00:03.091922046 841 0x15050 LOG TIImgdec1 gsttiimgdec1.c:186:gst_tiimgdec1_get_type: initialized get_type
0:00:03.104151588 841 0x15050 LOG TIImgdec gsttiimgdec.c:186:gst_tiimgdec_get_type: initialized get_type
0:00:03.105296797 841 0x15050 LOG TIAuddec gsttiauddec.c:194:gst_tiauddec_get_type: initialized get_type
0:00:03.106600172 841 0x15050 LOG TIAuddec1 gsttiauddec1.c:193:gst_tiauddec1_get_type: initialized get_type
0:00:03.107925213 841 0x15050 LOG TIAudenc1 gsttiaudenc1.c:194:gst_tiaudenc1_get_type: initialized get_type
0:00:03.120338379 841 0x15050 LOG TIVidResize
gsttividresize.c:185:gst_tividresize_get_type: initialized get_type
0:00:03.145883046 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.146820212 841 0x15050 LOG TIVidenc1
gsttividenc1.c:493:gst_tividenc1_set_property: setting "codecName" to
"mpeg4enc"
0:00:03.147608045 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
0:00:03.149015712 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.149786254 841 0x15050 LOG TIVidenc1
gsttividenc1.c:484:gst_tividenc1_set_property: setting "engineName" to
"encode"
0:00:03.150569212 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
0:00:03.151941879 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.152900379 841 0x15050 LOG TIVidenc1
gsttividenc1.c:528:gst_tividenc1_set_property: setting
"contiguousInputFrame" to "FALSE"
0:00:03.153707337 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
0:00:03.154950587 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.155745795 841 0x15050 LOG TIVidenc1
gsttividenc1.c:508:gst_tividenc1_set_property: setting "numInputBufs" to
"1"
0:00:03.156490045 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
0:00:03.157726378 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.158526962 841 0x15050 LOG TIVidenc1
gsttividenc1.c:498:gst_tividenc1_set_property: setting "numOutputBufs"
to "3"
0:00:03.159270795 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
0:00:03.160535128 841 0x15050 LOG TIVidenc1
gsttividenc1.c:447:gst_tividenc1_set_property: begin set_property
0:00:03.161425420 841 0x15050 LOG TIVidenc1
gsttividenc1.c:471:gst_tividenc1_set_property: setting "resolution" to
"1280x720"
0:00:03.162173920 841 0x15050 LOG TIVidenc1 gsttividenc1.c:545:gst_tividenc1_set_property: end set_property
window_width:720 window_height:480
cdc_dev->hw_ops.get_line_length():1440
f->fmt.pix.sizeimage:691200 buf_type:0 f
->fmt.pix.pixelformat:1498831189
Setting pipeline to PAUSED ...
0:00:03.545240881 841 0x15050 LOG TIVidenc1
gsttividenc1.c:1352:gst_tividenc1_change_state: begin change_state (10)
0:00:03.546065673 841 0x15050 LOG TIVidenc1 gsttividenc1.c:1380:gst_tividenc1_change_state: end change_state
vpfe-capture vpfe-capture: IPIPE Chained
vpfe-capture vpfe-capture: input information not found for the subdev
vpfe-capture vpfe-capture: Standard not supported
window_width:640 window_height:480
cdc_dev->hw_ops.get_line_length():1280
f->fmt.pix.sizeimage:614400 buf_type:0
f->fmt.pix.pixelformat:844257602
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
0:00:03.75642137vpfe-capture vpfe-capture: adjusted width = 16, height = 1, bpp = 2, bytesperline = 32, sizeimage = 32
9 841 0x15050 LOG vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
TIVidenc1 vpfe-capture vpfe-capture: adjusted width = 1344, height
= 1536, bpp = 2, bytesperline = 2688, sizeimage = 4128768
gsttividenc1.c:1352:gst_tividenc1_change_state: vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
begin change_stavpfe-capture vpfe-capture: adjusted width = 16, height = 1, bpp = 2, bytesperline = 32, sizeimage = 32
te (19)
0:00:03.757650962 8vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
41 0x15050 LOvpfe-capture vpfe-capture: adjusted width = 1344, height
= 1536, bpp = 2, bytesperline = 2688, sizeimage = 4128768
G TIVidenc1 gsttividenc1.c:1380:gvpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
st_tividenc1_chavpfe-capture vpfe-capture: adjusted width = 16, height = 1, bpp = 2, bytesperline = 32, sizeimage = 32
nge_state: end change_state
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 1344, height = 1536, bpp = 2, bytesperline = 2688, sizeimage = 4128768
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 1, bpp = 2, bytesperline = 32, sizeimage = 32
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 1344, height = 1536, bpp = 2, bytesperline = 2688, sizeimage = 4128768
vpfe-capture vpfe-capture: width = 1, height = 1, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 16, height = 1, bpp = 2, bytesperline = 32, sizeimage = 32
vpfe-capture vpfe-capture: width = 32768, height = 32768, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 1344, height = 1536, bpp = 2, bytesperline = 2688, sizeimage = 4128768
vpfe-capture vpfe-capture: width = 1280, height = 720, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 1280, height = 720, bpp = 2, bytesperline = 2560, sizeimage = 1843200
vpfe-capture vpfe-capture: width = 1280, height = 720, bpp = 2
vpfe-capture vpfe-capture: adjusted width = 1280, height = 720, bpp = 2, bytesperline = 2560, sizeimage = 1843200
ipipe_set_rsz_structs, resizer - 0 enabled
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
0:00:04.174362170 841 0x15050 LOG TIVidenc1 gsttividenc1.c:
when I run through ssh i get the follwoing 2 extra lines:
0:00:03.489657631
855 0x15050 LOG TIVidenc1
gsttividenc1.c:1352:gst_tividenc1_change_state: begin change_state (28)
0:00:03.490549506 855 0x15050 LOG TIVidenc1 gsttividenc1.c:1380:gst_tividenc1_change_state: end change_state
New clock: GstSystemClock
0:00:03.536065173 855 0xe9d28 DEBUG TIVidenc1
gsttividenc1.c:761:gst_tividenc1_sink_event: pad "sink" received:
newsegment
0:00:03.549809131 855 0xe9d28 INFO TIVidenc1
gsttividenc1.c:598:gst_tividenc1_set_sink_caps: requested sink caps:
video/x-raw-yuv, format=(fourcc)UYVY, framerate=(fraction)100/1,
width=(int)1280, height=(int)720
I would very much appriciate any sort of help with this issue.
Thanks,
Ernie