视频压缩不适用于 ffmpeg4android_lib 库

Posted

技术标签:

【中文标题】视频压缩不适用于 ffmpeg4android_lib 库【英文标题】:Video compressing not working with ffmpeg4android_lib library 【发布时间】:2020-04-10 19:06:09 【问题描述】:

当我尝试使用 ffmpeg4android_lib 库压缩视频时,它正在调试模式(不是 google play store 应用程序),之后当我在 play store 上实时检查时,视频压缩不起作用并发现应用程序崩溃了。崩溃后,它给出了错误:- videokitLibPath 不存在:/data/app/com.practice.presto-SSicBo_Qm4UXOQAQ45Vttg==/lib/arm/libvideokit.so 我的应用日志如下:

1576657500.663 20809-20809/com.practice.presto D/MyPracticeAudioVideo: outside wifi file type 2
1576657500.807 20809-22043/com.practice.presto D/MyPracticeAudioVideo: Worker started
1576657500.807 20809-22043/com.practice.presto D/MyPracticeAudioVideo: new file video path /storage/emulated/0/DCIM/Camera/VID_20191218_135413.mp4
1576657500.808 20809-22043/com.practice.presto D/MyPracticeAudioVideo: Acquire wake lock
1576657500.812 20809-22043/com.practice.presto I/ffmpeg4android: checkForPermissions() called
1576657500.814 20809-22043/com.practice.presto I/ffmpeg4android: permission already granted
1576657500.830 20809-22043/com.practice.presto D/MyPracticeAudioVideo: ffmpeg -y -i /storage/emulated/0/DCIM/Camera/VID_20191218_135413.mp4 -strict experimental -s 320x240 -r 25 -aspect 4:3 -vcodec mpeg4 -b 150k -ab 48000 -ac 2 -ar 22050 /storage/emulated/0/pp/1576657432247.mp4
1576657500.831 20809-22043/com.practice.presto I/ffmpeg4android: running ffmpeg4android_lib: 41.07.00_LM41_00
1576657500.831 20809-22043/com.practice.presto D/ffmpeg4android: "ffmpeg","-y","-i","/storage/emulated/0/DCIM/Camera/VID_20191218_135413.mp4","-strict","experimental","-s","320x240","-r","25","-aspect","4:3","-vcodec","mpeg4","-b","150k","-ab","48000","-ac","2","-ar","22050","/storage/emulated/0/pp/1576657432247.mp4"
1576657500.833 20809-22043/com.practice.presto D/ffmpeg4android: /storage/emulated/0/DCIM/Camera/VID_20191218_135413.mp4 length in bytes: 15793157
1576657500.834 20809-22043/com.practice.presto E/ffmpeg4android: **videokitLibPath not exits: /data/app/com.practice.presto-SSicBo_Qm4UXOQAQ45Vttg==/lib/arm/libvideokit.so**
1576657500.835 20809-22043/com.practice.presto I/Videokit: libvideokit.so load Fail: /data/app/com.practice.presto-SSicBo_Qm4UXOQAQ45Vttg==/lib/arm/libvideokit.so
1576657500.835 20809-22043/com.practice.presto I/Videokit: args is not NULL
1576657500.835 20809-22043/com.practice.presto I/Videokit: more then one arg
1576657500.835 20809-22043/com.practice.presto I/Videokit: function symbol not found
1576657500.835 20809-22043/com.practice.presto D/Videokit: Calling videokit run via loader
1576657500.860 20809-22043/com.practice.presto A/libc: **Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 22043 (Thread-19), pid 20809 (practice.presto)**

【问题讨论】:

【参考方案1】:

不确定,但您需要检查本机库支持,此建议基于您共享的日志。

请看这个 - https://issuetracker.google.com/issues/37067983

谢谢

【讨论】:

感谢您的快速响应 借助本机库支持,它在签署 Apk 构建时工作正常,但在 Play 商店上传相同构建后,它无法正常工作并给出此日志错误。

以上是关于视频压缩不适用于 ffmpeg4android_lib 库的主要内容,如果未能解决你的问题,请参考以下文章

gzip压缩不适用于xampp

tar.gz 压缩不适用于 GIF 文件

Nginx gzip压缩不适用于CSS或JS

使用 jersey-client 发送到码头的压缩 GZIP 请求不适用于 FormDataMultiPart

iOS - MPMediaPickerController 不适用于视频

为啥 HTML 5 视频标签不适用于将 YouTube 视频用作源?