-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ffmpeg png output as stream for thumbnail creation? #502
Comments
Yep, transcode should support png output. |
I use the following ffmpeg command to create a single frame png thumbnail /usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live?vhost=dev/stream -vf fps=1/6 tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ ll *.png tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ file stream_000001.png Here's the command for creating jpg thumbnails instead of png: /usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live?vhost=dev/stream -vf fps=1/6 tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ ll *.jpg tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ file stream_000001.jpg I use the -ss and -vframes options to pull just a single frame after at a /usr/bin/ffmpeg -i rtmp://127.0.0.1:1935/live?vhost=dev/stream -vf fps=1/6 tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ ll single* tmacneil@ubuntu-VirtualBox:/tmp/thumb/live$ file single_frame.png I haven't tested how SRS handles a graceful exit from ffmpeg. I'll test
On Thu, Oct 15, 2015 at 10:29 PM, winlin [email protected] wrote:
|
I see, what about the following workflow for snapshot?
The Is this ok for you? |
SRS will start the transcoder when encoder start to publish stream, and terminate it when encoder stop to publish. |
That's not too different from the workaround I came up with this weekend. On Sun, Oct 18, 2015 at 6:31 PM, winlin [email protected] wrote:
|
So, for the snapshot feature, there are two ways:
Agree? |
Agreed On Sun, Oct 18, 2015, 11:03 PM winlin [email protected] wrote:
|
For the api-server which handle the snapshot, it will generate some thumbnail and choose the best one, read 1aa4502 |
FIXED. |
I was experimenting with the ffmpeg transcode engine in srs and noticed that only the libx264 vcodec was supported for output. I was trying to setup a transcode configuration to create a thumbnail every 60 seconds but the only file output I could create was flv. Do you have any plans to allow PNG output as well so that web browser compatible images could be created during the stream?
The text was updated successfully, but these errors were encountered: