hello. Now i have RK3506 Lyra board and i want to decode h264 video (RTSP camera stream and show on lcd). I have run official buildroot image now. Check ffmpeg -codecs | grep v4l2m2m and It has ffmpeg with h264_v4l2m2m decoder support. Is it right? Then I use this command:
it has return an error:ffmpeg -rtsp_transport tcp \
-fflags nobuffer \
-flags low_delay \
-c:v h264_v4l2m2m \
-i rtsp://admin:[email protected]:554/stream=0 \
-vf "scale=1280:720,transpose=1" \
-pix_fmt bgra \
-f fbdev \
/dev/fb0
if i use -c:v h264 i have 4fps only!!!Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/stream=0':
Metadata:
title : RTSP Session
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p(tv, bt709, progressive), 1920x1080, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
[h264_v4l2m2m @ 0x5e7710] Could not find a valid device
[h264_v4l2m2m @ 0x5e7710] can't configure decoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
Error while opening decoder for input stream #0:0 : Invalid argument
v4l2-ctl --list-devices is not working, there are no v4l2 utility in image. i try to compile new buildroot image with v4l utilities but it has an error with 64bit time.
Could not you give any instructions how to enable softwsre encoding h264 for better performance ?
