Lem
Lem

Reputation: 173

How record thumbnail when stream start NGINX RTMP

we can use this :

exec_record_done ffmpeg -i /streams_video/$filename -vcodec png -vframes 1 -an -f rawvideo -s 240x120 -ss 00:00:01 -y /thumbnails/$basename.png;

this command make thumbnail, but only when recording done.

How we can make thumbnail when recording start?

Upvotes: 2

Views: 2213

Answers (1)

sole007
sole007

Reputation: 727

I am late to the party, but for the people still looking for answer -

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 -i <rtmp_feed_url> -frames:v 1 <destination_filepath>

Upvotes: 0

Related Questions