User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

how to encode as .h264?

Tue Nov 26, 2013 3:56 pm

how to encode openGLES graphics as .h264?

just wondering if there is a simple solution before I start delving....

~:"
Last edited by peepo on Wed Nov 27, 2013 12:00 pm, edited 1 time in total.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5502
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: how to encode as .h263?

Tue Nov 26, 2013 3:57 pm

[original question referred to h263]
Only h.264 encode is supported.

For GLES texture to h264 encode, you can do it now inefficiently (glReadPixels and submit these to openmax video_encode component).
It's probably not too bad - might do 720p30, but will keep the ARM quite busy.

Tim, a colleague who's been doing some work on getting camera data into textures using mmal, has been talking about providing a way to feed these textures directly into video encoder.
So, this may be possible more efficiently in the near future.

User avatar
peepo
Posts: 306
Joined: Sun Oct 21, 2012 9:36 am

Re: how to encode as .h264?

Wed Nov 27, 2013 7:07 pm

Dom,

that is excellent news indeed, could you provide or point to any simple code samples using:
"glReadPixels and submit these to openmax video_encode component"

Excuse my apparent ignorance, but any more information on Tim?
ie how to follow up on this lead, and receive any announcements?

~:"

Return to “OpenGLES”