在使用视频会议时,有时候会需要对会议画面进行截图,来保存重要信息。那么,是如何实现这一功能的呢,下面一起来看看吧。
视频截图功能
对于选定的视频,截取指定时间的缩略图。视频抓图,获取静态图和动态图,不提倡抓gif文件;因为抓出的gif文件大而播放不流畅
给视频加水印功能
使用ffmpeg 视频添加水印(logo)。
支持的格式和协议
支持的编码
源自FFmpeg项目组的两个视频编码:
Snow
FFV1
FFmpeg实现的其它音频视频编码:
ITU-T video standards: H.261,[5]H.262 (aka MPEG-2Video), H.263[5], H.263v2 and H.264/MPEG-4 AVC[5]
ITU-T vocoder standards: G.711µ-law, G.711 A-law, G.722.2 (aka AMR-WB. supports via OpenCORE) andG.726
ISO/IEC MPEG video standards: MPEG-1Video, MPEG-2 Video (aka H.262),MPEG-4 Visual and H.264/MPEG-4 AVC
ISO/IEC MPEG audio standards: MP2,MP3, AAC and MPEG-4 ALS
ISO/IEC/ITU-T JPEG image standards:JPEG and JPEG-LS
SMPTE video standards: VC-1 (akaWMV3), VC-3 (aka AVID DNxHD) and DPX image
DVD Forum standards related audio codecs: MLP and AC-3
3GPP vocoder standards: AMR-NB,AMR-WB (aka G.722.2. supports via OpenCORE)
Windows Media Player related video codecs: Microsoft RLE, Microsoft Video 1, Cinepak, Indeo 2, 3 and 5[5],Motion JPEG, Microsoft MPEG-4 v1, v2 and v3, WMV1, WMV2 and WMV3
Windows Media Player related audio codecs: WMA1, WMA2, WMA Pro and WMA Voice
Real Player related video codecs:Real Video 1, 2, 3 and 4
Real Player related audio codecs:Real Audio 1, 2, 3, 4, 5, 6, 7, 8 and 9
QuickTime related video codecs:Cinepak, Motion JPEG and Sorenson 3 Codec
QuickTime related audio codecs:QDesign Music Codec 2 and ALAC
Adobe Flash Player related video codecs: Sorenson 3 Codec, VP6 and Flash Screen Video
Xiph-Org: Theora, Speex (vialibspeex), Vorbis and FLAC
Sony: ATRAC1 and ATRAC3[5]
NTT: TwinVQ
On2: Duck TrueMotion 1, DuckTrueMotion 2, VP3, VP5[5] and VP6[5]
RAD Game Tools: Smacker video andBink video
Truespeech
TXD[6]
支持的格式
ASF
AVI
BFI[7]
IFF[8]
RL2[9]
FLV
MXF, Material eXchange Format, SMPTE 377M
Matroska
Maxis XA[10]
MSN Webcam stream[11]
MPEG transport stream
TXD[6]
OMA[12]
GXF, General eXchange Format, SMPTE 360M
mov,mp4,m4a,3gp,
支持的协议
HTTP
RTP
RTSP
RealMedia RTSP/RDT
TCP
UDP
Gopher
RTMP
RTMPT, RTMPE, RTMPTE, RTMPS (via librtmp)
SDP
MMS over TCP