I don’t really understand what you’re doing there. It looks like almost random (and conflicting) arguments to ffmpeg. In the second ffmpeg cmd you select the HEVC (x265, which isn’t installed) codec for your rtsp stream which is h264.
I think the error is pretty self explanatory. There is a missing encoder / filter which is not installed. Make sure libx264 is installed for h264 decoding.
Also make sure your RTSP URL is correct. Test it with VLC.
I have installed the ffmpeg on Openwrt router using opkg install ffmpeg, i guess it should install everything. Even i have tried on VLC and i can see the streaming.
I know nothing about openwrt. But on some platforms, certain builds of ffmpeg come without codecs like h264 or hevc due to patent issues. You need to make sure to have a full build installed, with all the required codec dependencies.
FYI, the screen grab command line I posted above is in daily use on my setup and it works perfectly.
Oh and you need to reply to peoples posts, not just to your own thread. Otherwise we won’t be notified of your replies and forget about your topic