【问题标题】:Get frames of the video and perform modifications in that frame in android获取视频的帧并在android中对该帧进行修改
【发布时间】:2015-02-01 03:24:03
【问题描述】:

我需要获取视频帧并对其进行一些修改,例如在其上绘制一些东西或写一些文本。然后在保存时,我需要修改后的视频。

请给我建议最好的方法。任何帮助表示赞赏。

请查看下面的应用程序以了解我的问题

https://play.google.com/store/apps/details?id=com.techsmith.apps.coachseye.free

【问题讨论】:

  • 所以您想解码视频、修改帧并重新编码视频?对于广泛的可移植性,许多人似乎喜欢 ffmpeg,为了获得最佳性能(但仅在 API 18+ 上),您可以使用 MediaCodec,例如bigflake.com/mediacodec/#DecodeEditEncodeTest.

标签: android android-ndk ffmpeg android-videoview android-mediacodec


【解决方案1】:

您可以尝试 INDE 媒体包 - https://software.intel.com/en-us/articles/intel-inde-media-pack-for-android-tutorials

它具有作为 MediaComposer 类的转码\重新混合功能和灰度、TextOverlayEffect 等几个示例效果。例如放置文本的效果:https://github.com/INDExOS/media-for-mobile/blob/master/Android/samples/effects/src/com/intel/inde/mp/effects/TextOverlayEffect.java。它可以很容易地增强为其他效果

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-07-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-24
    相关资源
    最近更新 更多