This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm368 h264enc for 1080p

Hi,

I am using dm368 dvsdk4 for h264 encoding & decoding and i am able to encode & decode upto 720p and when it comes to videotestsrc and v4l2src of 1080p,its not able to encode and decode i.e

For videotestsrc with the following pipeline

gst-launch-0.10 -v videotestsrc num-buffers=10 ! video/x-raw-yuv, format=\(fourcc\)NV12,  width=1920, height=1080 ! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=output_cap_1080P.264 > enclog-testsrc1.txt 2>&1

trows the following error

Additional debug info:

gsttividenc1.c(1805): gst_tividenc1_encode_thread (): /GstPipeline:pipeline0/GstTIVidenc1:tividenc10

/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)1920, height=(int)1080, framerate=(fra1

/GstPipeline:pipeline0/GstTIVidenc1:tividenc10.GstPad:sink: caps = video/x-raw-yuv, format=(fourcc)NV12, width=(int)1920, height=(int)1080, framerate=(fract1

ERROR: from element /GstPipeline:pipeline0/GstTIVidenc1:tividenc10: failed to encode video buffer

And

For v4l2src with the following pipe line

 

gst-launch-0.10 -v v4l2src always-copy=FALSE num-buffers=900 ! video/x-raw-yuv, format=\(fourcc\)NV12, width=1920, height=1080! TIVidenc1 codecName=h264enc engineName=codecServer ! filesink location=output_cap_1080P.264

it outputs the following error

vpfe-capture vpfe-capture: dma_alloc_coherent size 3112960 failed

NOTE: in bootargs i am using mem=80m

 

So,could any one resolve my problem

Thanks & Regards

Siva Prasad T

  • hi,

    I resolved the above issue of videotestsrc of 1080p by changing the reslution of 1920x1080 to 1920x1088 i.e resolution should be multiples of 16 otherwise we have to write our own application in gstreamer

     and 

    the below error was resolved by allocating reqiured amount of buffer size in bootargs

    vpfe-capture vpfe-capture: dma_alloc_coherent size 3112960 failed

    Thanks & Regards
    Siva Prasad T

  • siva prasad said:

    the below error was resolved by allocating reqiured amount of buffer size in bootargs

    vpfe-capture vpfe-capture: dma_alloc_coherent size 3112960 failed

    Thanks & Regards
    Siva Prasad T

    Could you please provide some details about how you solved this?

    I'm having the same problem everytime I try to grab a frame bigger than 1MB

    and I haven't figure out how to fix it.

    Thanks in advance.

  • Hi

    are you using CMEM allocated buffers for your requirement ?

    If so i believe the poll for buffer size it's looking for is not available. You can allocate the same buffer size in your cmem poll.

    Increasing or decreasing the bootargs mem=xxx doesn't make any sense for your poll, you have to specifically add the required memory poll inside cmem setting and then based upon your total cmem memory poll you need to allocate in bootargs.

    if your total DDR memory is 256 MB and suppose all CMEM Polls total is 100 MB then your rest memory i.e 156 MB you have to mention in bott args mem= 156 which will be used for other user allocated buffers in application.