如何录制/拼接FLV片段?

发布于 2024-10-14 05:56:47 字数 505 浏览 7 评论 0原文

我正在为一家想要为其用户创建服务的公司开发一个应用程序。该公司目前提供长度约为 1.5 小时的视频,他们想要集成的服务是让用户能够“录制”这段较大视频的剪辑,以创建一个精彩片段。这项服务的最终结果将是一个 3 分钟的视频,其中包含了 1.5 小时长视频中用户最喜欢的部分。有道理吗?

为了简单地提出我的问题,想象用户交互是非常基本的。用户观看视频时,他/她可以按“录制”来录制主视频的剪辑。现在...我已经知道 ByteArray 的 Thibault 的 FLVslicer,但我想除了这个人的框架之外,肯定还有其他一些方法来记录/拼接/合并 FLV 剪辑。

最后,我的问题是:你们中有人知道除了使用 FLVslicer 之外我如何研究创建此功能的最佳方法吗?我似乎找不到任何其他途径来“录制”这样的视频剪辑。 (编辑:Vi 对于如何在 Flash 应用程序之外完成此任务给出了精彩的答复,但我的好奇心仍然在于是否可以纯粹在 Flash 中完成此操作。尽管如此,Vi 还是高五!)

谢谢 ,请提供您的意见

布莱克

I'm working on an application for a company that wants to create a service for their users. This company currently offers videos that are around 1.5 hours in length, and the service they want to integrate is the ability for the user to 'record' clips of this larger video to create, essentially, a highlight reel. The end result of this service would be a 3 minute video of the user's favorite parts of a huge 1.5 hour long video. Make sense?

For the sake of simplicity in asking my question, imagine the user interaction to be very basic. The user watches the video, he/she can press 'record' to record a clip of the master video. Now... I'm already aware of FLVslicer by Thibault at ByteArray, but I've thought surely there is some other approach to recording / splicing / merging FLV clips than just this guy's framework.

And so finally, my question is: do any of you have insight as to how I might investigate the best way to create this functionality aside from using FLVslicer? I can't seem to find any other route for "recording" clips from videos like this. (EDIT: Vi gave a fantastic response about how to accomplish this outside of the Flash app, but my curiosity is still aimed at if this can be done purely within Flash. High five though, Vi!)

Thanks for your input,

Blake

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

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

发布评论

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

评论(2

暗恋未遂 2024-10-21 05:56:47

例如,使用 ffmpeg/mkvtools:

ffmpeg -i video.flv -ss 00:00:05 -t 00:00:10 -vcodec copy -acodec copy -y test1.mkv
           input file    start time   length
ffmpeg -i video.flv -ss 00:00:45 -t 00:00:10 -vcodec copy -acodec copy -y test2.mkv
mkvmerge -o test.mkv test1.mkv + test2.mkv

test.mkv 将包含 video.flv 中的 0:05-0:15+0:45-0:55。没有重新编码=>无质量损失。

但是,如果您的源视频未编码为 flv,那么最好首先从原始视频中准备视频,然后作为最后一步编码为 flv。它速度较慢,但​​更正确、更灵活。

For example, use ffmpeg/mkvtools:

ffmpeg -i video.flv -ss 00:00:05 -t 00:00:10 -vcodec copy -acodec copy -y test1.mkv
           input file    start time   length
ffmpeg -i video.flv -ss 00:00:45 -t 00:00:10 -vcodec copy -acodec copy -y test2.mkv
mkvmerge -o test.mkv test1.mkv + test2.mkv

test.mkv will contain 0:05-0:15+0:45-0:55 from video.flv. No re-encoding => no quality loss.

But if you have the source video not encoded as flv it's may better to prepare the video from raw first and then encode to flv as the last step. It is slower, but more correct and flexible.

念﹏祤嫣 2024-10-21 05:56:47

have you checked FLVSlicer by Thibault Imbert : http://www.bytearray.org/?p=955
it seems to do ( more or less :) ) what you want.
cheers

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