RTSP使用h264_rkmpp无法使用 #19

Closed
opened 2025-12-23 10:30:38 +01:00 by backuprepo · 1 comment
Owner

Originally created by @szaipcljl on GitHub (Mar 4, 2024).

使用的fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter这版FFmepg
rkmpp使用的是fdeb8c378b

现在出现问题如下,请问这个是什么原因呢?
[tcp @ 0x2cbc850] No default whitelist set
[tcp @ 0x2cbc850] Original list of addresses:
[tcp @ 0x2cbc850] Address 192.168.11.65 port 554
[tcp @ 0x2cbc850] Interleaved list of addresses:
[tcp @ 0x2cbc850] Address 192.168.11.65 port 554
[tcp @ 0x2cbc850] Starting connection attempt to 192.168.11.65 port 554
[tcp @ 0x2cbc850] Successfully connected to 192.168.11.65 port 554
[rtsp @ 0x2ce0500] SDP:
v=0
o=- 1709553511739851 1709553511739851 IN IP4 192.168.11.65
s=Media Presentation
e=NONE
b=AS:5050
t=0 0
a=control:rtsp://192.168.11.65:554/Streaming/Channels/101/
m=video 0 RTP/AVP 96
b=AS:5000
a=control:rtsp://192.168.11.65:554/Streaming/Channels/101/trackID=1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z0IAKpY1QPAET8s3AQEBQAABwgAAV+Qh,aM4xsg==
a=Media_header:MEDIAINFO=494D4B48010100000400000100000000000000000000000000000000000000000000000000000000;
a=appversion:1.0

[rtsp @ 0x2ce0500] video codec set to: h264
[rtsp @ 0x2ce0500] RTP Profile IDC: 42 Profile IOP: 0 Level: 29
[rtsp @ 0x2ce0500] RTP Packetization Mode: 1
[rtsp @ 0x2ce0500] Extradata set to 0x2ce13d0 (size: 36)
[rtsp @ 0x2ce0500] setting jitter buffer size to 0
[rtsp @ 0x2ce0500] hello state=0
mVideoIndex = 0, width = 0, height = 0, codecId = 27
pixfmt: 0, width: 0, height: 0
[h264_mp4toannexb @ 0x2cda170] The input looks like it is Annex B already
[h264_rkmpp @ 0x2cd67c0] Format nv12 chosen by get_format().
[h264_rkmpp @ 0x2cd67c0] Failed to init MPP context: -1
open codec failed, return: -542398533, errstr: Generic error in an external library

Originally created by @szaipcljl on GitHub (Mar 4, 2024). 使用的[fixup! lavf/rkrga: add force_{yuv,chroma} options for vpp filter](https://github.com/nyanmisaka/ffmpeg-rockchip/commit/3aad30a781dd4fc7ab76776ca588126d69e74edd)这版FFmepg rkmpp使用的是https://github.com/HermanChen/mpp/commit/fdeb8c378b79d4b4ef80457e4431815de89dc417 现在出现问题如下,请问这个是什么原因呢? [tcp @ 0x2cbc850] No default whitelist set [tcp @ 0x2cbc850] Original list of addresses: [tcp @ 0x2cbc850] Address 192.168.11.65 port 554 [tcp @ 0x2cbc850] Interleaved list of addresses: [tcp @ 0x2cbc850] Address 192.168.11.65 port 554 [tcp @ 0x2cbc850] Starting connection attempt to 192.168.11.65 port 554 [tcp @ 0x2cbc850] Successfully connected to 192.168.11.65 port 554 [rtsp @ 0x2ce0500] SDP: v=0 o=- 1709553511739851 1709553511739851 IN IP4 192.168.11.65 s=Media Presentation e=NONE b=AS:5050 t=0 0 a=control:rtsp://192.168.11.65:554/Streaming/Channels/101/ m=video 0 RTP/AVP 96 b=AS:5000 a=control:rtsp://192.168.11.65:554/Streaming/Channels/101/trackID=1 a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=420029; packetization-mode=1; sprop-parameter-sets=Z0IAKpY1QPAET8s3AQEBQAABwgAAV+Qh,aM4xsg== a=Media_header:MEDIAINFO=494D4B48010100000400000100000000000000000000000000000000000000000000000000000000; a=appversion:1.0 [rtsp @ 0x2ce0500] video codec set to: h264 [rtsp @ 0x2ce0500] RTP Profile IDC: 42 Profile IOP: 0 Level: 29 [rtsp @ 0x2ce0500] RTP Packetization Mode: 1 [rtsp @ 0x2ce0500] Extradata set to 0x2ce13d0 (size: 36) [rtsp @ 0x2ce0500] setting jitter buffer size to 0 [rtsp @ 0x2ce0500] hello state=0 mVideoIndex = 0, width = 0, height = 0, codecId = 27 pixfmt: 0, width: 0, height: 0 [h264_mp4toannexb @ 0x2cda170] The input looks like it is Annex B already [h264_rkmpp @ 0x2cd67c0] Format nv12 chosen by get_format(). [h264_rkmpp @ 0x2cd67c0] Failed to init MPP context: -1 open codec failed, return: -542398533, errstr: Generic error in an external library
Author
Owner

@nyanmisaka commented on GitHub (Mar 4, 2024):

[h264_rkmpp @ 0x2cd67c0] Failed to init MPP context: -1

The user does not have permission to access /dev/mpp_service, or MPP is not enabled in the kernel/device tree.
https://github.com/nyanmisaka/ffmpeg-rockchip#important

@nyanmisaka commented on GitHub (Mar 4, 2024): ``` [h264_rkmpp @ 0x2cd67c0] Failed to init MPP context: -1 ``` The user does not have permission to access `/dev/mpp_service`, or MPP is not enabled in the kernel/device tree. https://github.com/nyanmisaka/ffmpeg-rockchip#important
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#19
No description provided.