3

I'm trying to find a way to extract video into frames. The main goal is to change the image using openGl and construct the video again.

the problem is that I can't find a desent way to extract the video. I saw that lots of familiar questions were answered with the use of MediaMetadataRetriever but I don't want to use it because it works really slow.

I did a little research about libraries like - jcodec, ffmpeg ,openCV and mp4parser.

jcodec - works fine but really slow, every getFrame() costs 1 second.

ffmpeg - under GPL license which means that you'll have to publish your code.

openCV - complicated. Maybe I can accomplish what I need with it but it looks too complicate and I'm looking for a simpler solution.

mp4parser - extracts decoded frames but doesn't support encoding them to jpg/png.

Would be wonderful to get some help on that one. tnx

4

1 に答える 1

0

いいえ、ffmpeg ライブラリは LGPL でライセンスされており、すべてのコードを開く必要はありません。avcodec の Android ビルドには、h264 (avc) 用のハードウェア コーデックを提供する libstagefright へのインターフェイスが含まれています。これは、Android と同じくらい高速です。

于 2014-02-23T19:06:10.727 に答える