去发现生活中的美好,记录生活中的点点滴滴

视频识别-利用ffmpeg截取视频截图

人工智能 admin 747℃

现在人脸识别、车牌识别、轨迹识别、花草树木识别、商品识别等等,其实底层都用到了图像识别,图像识别在人工智能里面已经应用广泛。

下面说说怎么通过视频拿到视频截图。

这里用到一个工具ffmpeg,安装教程就不说了网上很多,这里提供下载地址:

http://ffmpeg.zeranoe.com/builds/

Windows用法:

D:\ffmpeg_v4.2.2\ffmpeg-20200315-c467328-win64-static\bin\ffmpeg.exe -ss 00:02:06 -t 00:08:00  -re  -i http://video.cwl.gov.cn/vod_storage/vol1/2021/11/25/202111250923t/202111250923t.mp4  -f image2 output.jpg

Linux用法:

/usr/bin/ffmpeg -ss 00:02:06 -to 00:08:00  -re  -i http://video.cwl.gov.cn/vod_storage/vol1/2021/11/25/202111250923t/202111250923t.mp4  -f image2 output.jpg

转载请注明:永盟博客 » 视频识别-利用ffmpeg截取视频截图

喜欢 (3)

Warning: count(): Parameter must be an array or an object that implements Countable in E:\www\blog\wp-includes\class-wp-comment-query.php on line 405