Capturing bitmapData from a video display that plays h.264 (mp4) video

I have a video file that I play in an Android application. I am trying to capture a frame with bitmapData.Draw(video), but it only works for .flv video.

Videos play locally - no internet or server.

As soon as I changed the video to .mp4, it plays it on stage, but it has a bitmapData bit after calling the draw function. I am not talking about mistakes.

How can I capture a frame from a playable .mp4 video?

Note. This is a component of the video, not StageVideosince I know that this is not possible with StageVideo.

Initializing a clean thread. I also added checkPolicyFile = true- it did not help.

my_nc.connect(null);
my_nc.client = this;

_ns = new NetStream(my_nc);
_ns.client = this;
_ns.useHardwareDecoder = true;
_ns.checkPolicyFile = true;
+5
source share
3 answers

UPD: , h.264 Android ActionScript. () h.264 (It ) mp4 FlashPlayer 11.1 AIR 3.5 , . (direct, cpu gpu).

, , ( , , , ) . , .

+4

. . .. , .

0

Try the concept shown on this link .

It suggests how to draw a container of video pixels (a graphicsData object).

myBitmap.bitmapData = GraphicsBitmapFill(vidContainer.graphics.readGraphicsData()[0]).bitmapData;
0
source

All Articles