Is there a esay way to add ffmpeg with a videocodec as a streaming encoder

pmgzed

New Member
Hello
I have a Radxa Zero 3W (small ARM Board) with Debian, Panfrost and RKMPP
I got ffmpeg-rkmpp running on it and in tests i got 50 fps for the encoder (ffmpeg -hide_banner -f lavfi -i testsrc2=duration=300:size=1920x1080:rate=30 -c:v h264_rkmpp test.mp4)
OBS with the Panfrost Driver works fine. i only have e problem on encoding.
i have compile ffmpeg-rkmpp and OBS. if i try to record with the h264_rkmpp encoder i only got 1 fps. with the ffmpeg test i got 50fps. why i got in obs only 1 fps?
WIN_20241218_19_25_09_Pro.jpg


WIN_20241218_19_35_51_Pro.jpg


and is there a esay way to add the ffmpeg with the h264_rkmpp encoder as a encoder for streaming?
so ffmpeg looks like integratet in obs as encoder but not for streaming
 

pmgzed

New Member
I think the best place to start is the obs-ffmpeg plugin
does anyone have any experience and can give some tips?
 

pmgzed

New Member
ok do some progress.
the ffmpeg rkmpp is registerd and i can set the settings
WIN_20241220_22_45_22_Pro.jpg


The create with
if (!ffmpeg_video_encoder_init(&enc->ffve, enc, encoder, "h264_rkmpp", "rkmpp_h264",
"Rockchip MPP (Media Process Platform) H264 encoder (codec h264)", on_init_error,
on_first_packet)) {
goto fail;
}

dont fail

but my ffmpeg_video_encoder_init_codec trigger the on_init_error function and fail.
WIN_20241220_22_45_38_Pro.jpg

anyone know what settings are required in in enc->ffve ?
 

pmgzed

New Member
I switch to the Radxa Rock 5B with more power.
i got the streaming startet but the output is only 30kbs and no image arrived at the streamign server. If i test it with recording and set output to stream it work but i want the normal streaming not over file recording
WIN_20241224_10_06_09_Pro.jpg


WIN_20241224_10_08_42_Pro.jpg
 

Attachments

  • WIN_20241224_10_08_42_Pro.jpg
    WIN_20241224_10_08_42_Pro.jpg
    265.8 KB · Views: 4
Top