ijkplayer
ijkplayer copied to clipboard
能播放jpeg或者png图片吗
在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
怎么解决的老哥· @TopsLuo 先开启ffmpeg的jpeg的解码功能,再修改demo中的播放器属于,详情我已经整理成博客了,仅供参考: https://blog.csdn.net/TopsLuo/article/details/125345071