ijkplayer icon indicating copy to clipboard operation
ijkplayer copied to clipboard

能播放jpeg或者png图片吗

Open TopsLuo opened this issue 2 years ago • 3 comments

在android下面编译ffmpeg的时候我尝试启用如下功能: --enable-decoder=mjpeg,png --enable-demuxer=image2 --enable-protocol=file --enable-zlib 但最终生成的sdk均无法正常播放本地图片,sdk也没有报错,所使用的ijkplayer commit:2902e33f6e59ed77ddc1b372586c1ab8db1fb096,部分日志如下: 2022-06-14 16:08:47.312 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 2022-06-14 16:08:47.312 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_END: 2022-06-14 16:08:47.533 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: start 2022-06-14 16:08:47.533 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_START: 2022-06-14 16:08:47.533 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: end 2022-06-14 16:08:47.533 14567-16210/com.rt.pro_screen D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2022-06-14 16:08:47.533 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 2022-06-14 16:08:47.533 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_END: 2022-06-14 16:08:47.753 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: start 2022-06-14 16:08:47.753 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_START: 2022-06-14 16:08:47.753 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: end 2022-06-14 16:08:47.753 14567-16210/com.rt.pro_screen D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2022-06-14 16:08:47.753 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 2022-06-14 16:08:47.753 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_END: 2022-06-14 16:08:47.974 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: start 2022-06-14 16:08:47.974 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_START: 2022-06-14 16:08:47.974 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: end 2022-06-14 16:08:47.974 14567-16210/com.rt.pro_screen D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2022-06-14 16:08:47.974 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 2022-06-14 16:08:47.974 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_END: 2022-06-14 16:08:48.194 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: start 2022-06-14 16:08:48.195 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_START: 2022-06-14 16:08:48.195 14567-16212/com.rt.pro_screen D/IJKMEDIA: ffp_toggle_buffering_l: end 2022-06-14 16:08:48.195 14567-16210/com.rt.pro_screen D/IJKMEDIA: ijkmp_get_msg: FFP_MSG_SEEK_COMPLETE 2022-06-14 16:08:48.195 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_SEEK_COMPLETE: 2022-06-14 16:08:48.195 14567-16210/com.rt.pro_screen D/IJKMEDIA: FFP_MSG_BUFFERING_END:

TopsLuo avatar Jun 14 '22 09:06 TopsLuo

已经解决

TopsLuo avatar Jun 18 '22 03:06 TopsLuo

怎么解决的老哥· @TopsLuo

kyriej avatar Jun 18 '22 15:06 kyriej

怎么解决的老哥· @TopsLuo 先开启ffmpeg的jpeg的解码功能,再修改demo中的播放器属于,详情我已经整理成博客了,仅供参考: https://blog.csdn.net/TopsLuo/article/details/125345071

TopsLuo avatar Jun 20 '22 01:06 TopsLuo