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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.