Apache License 2.0

项目介绍

fishwjy/VideoCompressor 是一个托管在 GitHub 上的开源项目,主要使用 Java 编写,采用 Apache License 2.0 许可证,目前获得 944 个 Star、197 次 Fork。

仓库全名
fishwjy/VideoCompressor
开源许可证
Apache License 2.0
Star 数
944
Fork 数
197
未关闭 Issue
45

README 摘要

VideoCompressor A High-performance video compressor for Android using Hardware decoding and encoding API(MediaCodec). Demo Usage Call compressVideoLow, compressVideoMedium and compressVideoHigh that indicates 3 quality of compressing. VideoCompressTask task = VideoCompress.compressVideoLow(tvinput.getText().toString(), destPath, new VideoCompress.CompressListener() { @Override public void onStart() { //Start…

完整内容见 GitHub 原始 README 或本页 。

常见问题

VideoCompressor 用什么语言开发?

主要使用 Java 编写,采用 Apache License 2.0 许可证,目前有 944 个 Star。

VideoCompressor 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 VideoCompressor 的源码?

可以直接克隆仓库:git clone https://github.com/fishwjy/VideoCompressor.git;安装与运行步骤见仓库 README。

VideoCompressor 最近还在维护吗?

仓库最近一次更新为 2021年4月27日,当前有 45 个未关闭 Issue;Star 数为 944,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

A High-performance video compressor for Android using Hardware decoding and encoding API(MediaCodec).

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
2282
价值分
717
活跃状态
活跃

语言占比

Java

贡献者

README

VideoCompressor

A High-performance video compressor for Android using Hardware decoding and encoding API(MediaCodec).

Demo

Demo

Usage

Call compressVideoLow, compressVideoMedium and compressVideoHigh that indicates 3 quality of compressing.

    VideoCompressTask task = VideoCompress.compressVideoLow(tv_input.getText().toString(), destPath, new VideoCompress.CompressListener() {
                @Override
                public void onStart() {
                    //Start Compress
                }

                @Override
                public void onSuccess() {
                    //Finish successfully
                }

                @Override
                public void onFail() {
                    //Failed
                }

                @Override
                public void onProgress(float percent) {
                    //Progress
                }
            });

Performance

You can find some test results in pic/test_reports.

I compress a video which is 168MB(00:01:06).

And it took 1 minute for compressing.

The result of compressing is 11MB.

So it’s a great job by MediaCodec :) .

License

Copyright 2017 Vincent Woo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

评论

暂无评论