【问题标题】:How to compress a video file in android?如何在android中压缩视频文件?
【发布时间】:2013-07-12 11:58:56
【问题描述】:

我的 sdcard 中有视频文件列表。当我在 gridview 中单击所选视频时,我想在 android 中压缩所选视频文件。如何在 android 中压缩视频文件。是否有任何示例代码可用?

【问题讨论】:

    标签: android video compression


    【解决方案1】:

    可以通过 MediaCodec(来自 JB)和 FFMPEG 完成视频压缩。有关压缩的更多信息,请参阅 FFMPEG 的文档。

    参考:

    ffmpeg: compress video?

    https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/

    【讨论】:

    【解决方案2】:

    我认为视频压缩的最佳解决方案是使用ffmpeg 库。 在这里您可以找到使用该库的示例 android 应用:

    https://github.com/umeshbsa/ffmpeg-video-compresion-with-progress-android

    另一个可爱的图书馆是silicompressor,你可以在这里找到:

    https://github.com/Tourenathan-G5organisation/SiliCompressor

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-03-21
      • 2017-11-29
      • 2015-08-06
      • 1970-01-01
      相关资源
      最近更新 更多