1. 关闭rk3399 硬件解码:
diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index d7951ee0d9..053955c757 100755
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -288,7 +288,7 @@ else
FFMPEG_CONF_OPTS += --disable-vdpau
endif
-ifeq ($(BR2_PACKAGE_MPP),y)
+ifeq ($(BR2_PACKAGE_MPP),n)
ifeq ($(BR2_PACKAGE_RV1108),y)
FFMPEG_DEPENDENCIES += mpp libion
FFMPEG_CONF_OPTS += --enable-rkmpp --extra-cflags="-D CONFIG_ION"
@@ -440,6 +440,11 @@ FFMPEG_CONF_OPTS += --disable-libopenjpeg
endif
ifeq ($(BR2_PACKAGE_X264)$(BR2_PACKAGE_FFMPEG_GPL),yy)
+FFMPEG_CONF_OPTS += \
+ --disable-decoder=h264_v4l2m2m \
+ --disable-decoder=vp8_v4l2m2m \
+ --disable-decoder=mpeg2_v4l2m2m \
+ --disable-decoder=mpeg4_v4l2m2m
FFMPEG_CONF_OPTS += --enable-libx264
FFMPEG_DEPENDENCIES += x264
2. sdl2 buildroot 配置
3. 编译测试:
ffplay rtmp://192.168.72.127/live/livestream