如何在正在播放HTML5实时视频中抓取一个图片并保存到本地

h5stream 提供了抓图功能,但该抓图是在h5stream 服务端进行,并且为了不影响h5stream 的运行性能,h5s只读取了I帧,所以有一定的时延,能不能在浏览器端直接抓一个png图片么,答案是可以的,新的版本已经把该功能集成到了h5sconsole, 并在h5splayerhelper.js 中加入了该函数。

1

可以参考如下代码, 也可以参考h5sconsole 的代码 https://github.com/linkingvision/h5sconsole/blob/master/src/components/widgets/liveplayer.vue 

h5s r9.3 released 支持H.265 GPU转码和软件转码

9.3 0708 2019
1. Optimize HIKVISION SDK playback control, pause/resume/seek and high speed only use I frame.
2. Add default transcoding profile H265 to H264.
3. Add HIKVISION SDK H265 live and playback support.
4. Add Intel GPU hardware (windows) H265 to H264 transcoding support.
5. Add CPU based software (windows) H265 to H264 transcoding support.
6. Add RTSP server H265 support.
7. Change diskautodelpercent from 50% to 92%.
8. WS for device SDK live view support audio.
9. Add RTSP/RTMP server AAC support.

h5s r9.2 released

9.2 0628 2019
1. Add manual record configuration to enable always record.
2. Fix record start time is not correct when there has no video like UAV.
3. Add serverpb.html to enable stream playback for the video record on h5s.
4. Add manual record start and stop in h5sconsole.
5. Fix GB28181 port range loop can't get port issue.
6. GB28181 register message as keepalive when device already exist.
7. Add GB28181 keepalive timeout configuration.
8. Fix Firefox can't play WS video issue for r9.
 

h5s r9.1 released 支持设备录像和录像日历搜索

9.1 0618 2019
1. Change 无视频信号(NO VIDEO) to small size.
2. Fix GB28181 some public network sip message crash issue.
3. Fix sometime HIKVISION SDK User ID USERNOTEXIST issue.
4. RTSP RTMP server on demand streaming support.
5. RTSP RTMP server support Device SDK.
6. Support mediastore path setting.
7. Add GB28181 G711 Audio support.
8. Add getonline option for the GetDevice and GetSrc to ignore the online status.
9. Add SearchDeviceRecordByTime for HIKVISION SDK device.