To generate thumbnail from rtmp video feed use ffmpeg tool. I have used this on Android app, NodeJS server and it never disappoints. And not just thumbnail. And it work like a charm.
ffmpeg
ffmpeg -i <rtmp_feed_url> -frames:v 1 <destination_filepath>