Mat*_*ski 1 ffmpeg amazon-web-services http-live-streaming m3u8
我正在尝试从当地付费通行处获取屏幕截图,以便使用图像识别来了解其拥堵程度。我尝试使用 ffmpeg 在每次从 AWS Lambda 运行命令时提取屏幕截图。我的问题是我无法从 m3u8 文件中提取任何类型的图像。
http://roads.mk/315/video-kameri
当我打开其中一台摄像机时,实时流显示正常,但当我右键单击复制地址时,我得到一个 blob 链接
斑点:http://roads.mk/cb301be0-3e70-4d09-af2b-3f3d44ee8f4f
幸运的是,在该网站的移动版本上,一旦单击链接,它就会立即下载 m3u8 文件。使用命令放入 ffmpeg 后
ffmpeg -i "gradsko_1.m3u8" -vf fps=1/3600 grad%04d.jpg
我得到回应
[hls @ 000000ce3d26d700] Skip ('#EXT-X-VERSION:3')
[hls @ 000000ce3d26d700] Opening 'gradsko_1-586008.ts' for reading
[hls @ 000000ce3d26d700] Failed to open segment 586008 of playlist 0
[hls @ 000000ce3d26d700] Opening 'gradsko_1-586009.ts' for reading
[hls @ 000000ce3d26d700] Failed to open segment 586009 of playlist 0
[hls @ 000000ce3d26d700] Opening 'gradsko_1-586010.ts' for reading
[hls @ 000000ce3d26d700] Failed to open segment 586010 of playlist 0
[hls @ 000000ce3d26d700] Skip ('#EXT-X-VERSION:3')
Last message repeated 3 times
[hls @ 000000ce3d26d700] Error when loading first segment 'gradsko_1-585991.ts'
gradsko_1.m3u8: Immediate exit requested
Exiting normally, received signal 2.```
From what I could tell, the stream seems to be protected.
Any way to get inside this? I would only need a single screenshot with no audio since the program would run once an hour/on command for a very general estimate. I'm just starting out with ffmpeg so any tips would be greatly appreciated.
Run Code Online (Sandbox Code Playgroud)
这对我有用:ffmpeg -i http://streaming1.neotel.net.mk:8080/hls/romanovce_3.m3u8 -vframes 1 -q:v 2 output.jpg
仅供参考:如果您首先将播放列表 (m3u8) 下载到本地驱动器,然后尝试使用它 - 您将遇到两个问题。
| 归档时间: |
|
| 查看次数: |
3419 次 |
| 最近记录: |