找回密码
 立即注册
相关推荐换一批
  1. SJ/T 11156-1998 计算机辅助设计 设计文件档案管理制度
  2. SJ/T 10719-1996 电子设备设计文件编制示例
  3. SJ/T 10631-1995 工艺文件的编号
  4. SJ/T 10375-1993 工艺文件格式的填写
  5. SJ/T 10323-1992 电池产品设计文件的分类编号
  6. GB 11177-1989 无机胶粘剂套接压缩剪切强度试验方法
  7. GB 10007-1988 硬质泡沫塑料剪切强度试验方法
  8. GB/T 19097-2003 技术产品文件 生命周期模型及文档分配
  9. GB/T 18253-2000 钢及钢产品 检验文件的类型
  10. SH/T 0618-1995 高剪切条件下的润滑油动力粘度测定法(雷范费尔特法)
  11. FZ/T 90066-1995 纺织机械 产品图样及设计文件的更改
  12. FZ/T 90012-1991 材料在图样及设计文件中的标记方法
  13. FZ/T 91003.8-1993 纺织机械制造工艺管理导则 工艺文件的修改
  14. FZ/T 91003.7-1993 纺织机械制造工艺管理导则 工艺文件标准审查
  15. FZ/T 91001.4-1993 纺织机械制造工艺文件 工艺装备设计图样及文件格式
  16. FZ/T 91001.1-1993 纺织机械制造工艺文件 工艺文件完整性及审批程序
  17. GB/T 12830-1991 硫化橡胶与金属粘合剪切强度测定方法 四板法
  18. GB/T 13959-1992 文件格式分类与代码编制方法
  19. GB/T 13937-1992 分级用硫化橡胶动态性能的测定 强迫正弦剪切应变法
  20. GB/T 6290-1999 夹扭钳和剪切钳通用技术条件
  21. SJ/T 207.8-2001 设计文件管理制度 第8部分:图样编制
  22. SJ/T 207.7-2001 设计文件管理制度 第7部分:电气简图的编制
  23. SJ/T 207.6-2001 设计文件管理制度 第6部分:项目代号
  24. QB/T 1093-1991 家具实木胶接合顺纹压缩剪切强度的测定
剪切mp4the文件 | Delphi/CppBuilder 2022-05-14 478 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
本节讲述如何在android上实现对mp4文件的高效剪切。
业务需求示例:将一个2分钟的mp4文件从00:42到01:16剪成视频,需要足够短的执行时间和尽可能少的错误。
分析:mp4Parser 只能在关键帧处剪切。例如,如果在 00:40 和 00:45 有一个可剪切的关键帧,那么剪切视频的头部和尾部应该被剪短。然后有错误的视频很短。如果误差大于0.5S,则使用FFmpeg逐帧对文件进行编码和解码。这样一来,mp4文件最多会有三段,你可以将这三段mp4重新拼接起来。
下面直接列出关键代码。这些代码也可以通过在PC上新建一个java项目来实现。

(This section describes how to cut MP4 files efficiently on Android.
Business requirement example: cutting a 2-minute MP4 file from 00:42 to 01:16 into video requires short enough execution time and as few errors as possible.
Analysis: mp4parser can only cut at keyframes. For example, if there is a cutable key frame at 00:40 and 00:45, the head and tail of the cut video should be cut short. Then the video with errors is very short. If the error is greater than 0.5s, ffmpeg is used to encode and decode the file frame by frame. In this way, the MP4 file can have up to three segments, and you can splice these three segments together again.
Key codes are listed directly below. These codes can also be implemented by creating a new Java project on the PC.)

[下载]11192544634.rar




上一篇:嵌入式操作系统Linux中的串口应用编程.pdf
下一篇:安卓软件管理器的开发_日志.docx