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.

encode video with gstreamer

Hi.

Our next goal is to encode video. Gstreamer seems to be the most suitable for us. I try to use the following pipeline, but with no luck.

root@dm814x-evm:~# gst-launch -v videotestsrc ! 'video/x-raw-yuv, width=1920, height=1080, format=(fourcc){NV12}, framerate=30/1' ! omx_h264enc ! 'video/x-h264'
 ! queue ! gstperf ! filesink location=colorbar.264 sync=false
Setting pipeline to PAUSED ...
vmap allocation for size 197136384 failed: use vmalloc=<size> to increase size.
gst-launch-0.10: DomxProcMgrIf_HLOS.c:316: DomxCore_mapPhyAddr2UsrVirtual: Assertion `(status >= 0)' failed.
Aborted

I found this pipeline on the forum. But i didn't find any recommended example to encode video. Can anyone suggest for sure working pipeline?

Here are bootargs: mem=169M notifyk.vpssm3_sva=0xBF900000 mem=170M@0xA0000000

Ezsdk is ti-ezsdk_dm814x-evm_5_04_00_11.

Best regards,

Alexander Vasiljev.

  • Hello,

    You could try examples, like:

    gst-launch -v videotestsrc ! 'video/x-raw-yuv, width=1920, height=1080, format=(fourcc)NV12, framerate=30/1' ! omx_h264enc ! 'video/x-h264' ! gstperf ! filesink location=colorbar.264 sync=false

    or

    gst-launch videotestsrc is-live=true ! video/x-raw-yuv,framerate=60/1 ! clockoverlay auto-resize="0" shaded-background=true time-format="%y %j %H:%M:%S" !    gstperf ! omx_h264enc ! mpegtsmux ! filesink location=test.tsmux

    Both are working with default bootargs:

    New clock: GstSystemClock
    perf0: frames: 65     current: 64.13     average: 64.13    arm-load: 21
    perf0: frames: 125     current: 59.98     average: 62.07    arm-load: 61
    perf0: frames: 186     current: 60.04     average: 61.39    arm-load: 59
    perf0: frames: 246     current: 60.00     average: 61.04    arm-load: 70
    perf0: frames: 306     current: 59.99     average: 60.83    arm-load: 62
    perf0: frames: 367     current: 59.98     average: 60.69    arm-load: 61


    Let me know the result.

    Best Regards,

    Margarita

  • Hi, Margarita.

    It works! I had lost vmalloc in bootargs. I returned "vmalloc=500M" and it works.

    Best regards,

    Alexander Vasiljev.