可以从 flv 流中提取位图数据吗?

发布于 2024-10-12 11:30:39 字数 44 浏览 5 评论 0原文

嗨,听起来这可能是不可能的,但想知道是否可以从 flv 流中提取位图数据?

Hi Sounds like it might be impossible, but was wondering if it was possible to extract bitmap data from an flv stream?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

月下伊人醉 2024-10-19 11:30:39

是的,如果您的服务器上有该文件,您可以使用 ffmpeg。

ffmpeg -ss 00:01:10 -t 1 -s 400x300 -i <VideoFile> -f mjpeg <imgFile>

-ss 是屏幕截图的时间位置,

但如果这是您可以使用的 YouTube 视频;
http://i.ytimg.com/vi/[videoCode]/default.jpg
喜欢;

http://i.ytimg.com/vi/YXkwQzJHb6s/default.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/0.jpg(大的)
http://i.ytimg.com/vi/YXkwQzJHb6s/1.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/2.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/3.jpg

yeah, if you have the file on your server you can use ffmpeg.

ffmpeg -ss 00:01:10 -t 1 -s 400x300 -i <VideoFile> -f mjpeg <imgFile>

-ss is time position the for the ScreenShot

but if that is a youtube video you may use ;
http://i.ytimg.com/vi/[videoCode]/default.jpg
Like;

http://i.ytimg.com/vi/YXkwQzJHb6s/default.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/0.jpg (big one)
http://i.ytimg.com/vi/YXkwQzJHb6s/1.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/2.jpg
http://i.ytimg.com/vi/YXkwQzJHb6s/3.jpg

¢好甜 2024-10-19 11:30:39

可以尝试使用 hypeframework 屏幕截图,但不确定它是否适用于视频。我想仍然值得一试

http:// blog.six4rty.ch/2010/07/11/as3-take-a-screenshot-of-displayobject/

http://active.tutsplus.com/tutorials/design/quick-tip-how-to-export-flash -to-png-with-hype/

could try using the hypeframework screencapture, not sure if it will work with video though. Still worth a try I guess

http://blog.six4rty.ch/2010/07/11/as3-take-a-screenshot-of-displayobject/

and

http://active.tutsplus.com/tutorials/design/quick-tip-how-to-export-flash-to-png-with-hype/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文