Wednesday, March 5, 2014
android opengl es play video question ...
Currently there is a demand: play video in opengl.
Read hene Chapter 35, but now there is a problem: how to get a picture of a video bitmap, and the time of the bitmap in android.
Please help! ! ! Yesterday, up to now, have each completed, opengl is really just to get started.<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
You ask questions and seem to have no relationship gl, video, bitmap get a piece of paper, is codec problem, android default there are codecs, but not all formats can be,
Reply:
What format you want to play video, android does not support it, use a third-party decoder ffmpeg, x264, etc., to obtain the decoded bitmap
Reply:
Well, android for decoding, only the MediaPlayer class, this class feels less open interfaces, but can not get this class and the time of each bitmap bitmap.
It seems only write a decoder it. .
Reply:
Write decoder. . Too complicated.
Look http://www.cnblogs.com/mcodec/archive/2011/05/11/1780598.html. Transplant bygones
Reply:
Ffmpeg transplant is a good idea, but it's also used some of the problems of the decoder is a good way
Reply:
Thank you! I engage in a day, a little depressed, not to die bottom. . . .
Do not know opengl play video, will not crash too often the texture of it, or dropped frames.
Reply:
First solution into a bitmap?
Reply:
Decoded into YUV data, ANDROID2.3 GLESL of direct RenderYUV420
Reply:
Daniel ・ ・
Reply:
ANDROID2.3 GLESL can RenderYUV420's? ?
I did not see where
support
Reply:
of direct RenderYUV420
Application needs to run on 2.2, customized system.
Decoding a map, and then up the texture, it should be feasible.
In some English forum, a lot of people have mentioned this problem, and others published in the problems encountered in the implementation process and the implementation process.
However, no source code, as well as others to achieve decoding are implemented by C, which one I do not really understand.
In contrast, in the domestic forum, opengl too deep point data, so difficult to find.
Reply:
Amount, to ask how the bitmap to a picture of OpenGL rendering it?
Reply:
You can communicate directly RENDERYV12 Q:. 1049568282
Reply:
This is Lane's two years ago, when the project is no longer done in contact with opengl it. Then do: to draw the picture from the outside (because the video is small), then the texture to the screen, under the control of the texture of the next time, it becomes a play videos.
No comments:
Post a Comment