Greetings,
My usecase is v4l2capture->h264enc.
I began from saloopback demo and it is working fine.
Then, I am trying to export v4l2 buffer into omx_h264 using memcpy and as I am dealing with raw video data the frame rates dropped badly due to the low speed of memcpy.
Just wondering is a v4l2->h264encoder example out there, so I can use for reference?
Or any better approach to read data from v4l2 buffer?
I noticed there is similar thread here: http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/162490/609239.aspx#609239
However, there is not any useful answers to my issue.
Thanks,
Jun
You should be able to directly pass V4L buffers via OMX usethisbuffer call as these buffers are physically contiguous. This is how gstreamer v4lsrc plugin works with h264encoder plugin.
Memcpy will not scale well. If you are seeing latency or dropped frames consider using more buffers in a ping-pong scheme.
RV