- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Media Foundation 在一系列过滤器之后从输入 MP4 创建 MP4 (H264 + AAC) 输出文件。视频的创建工作完美,视频在本地复制没有问题。问题在于,当远程执行时(通过网络播放器甚至 VLC),视频在完全下载之前不会开始播放。
我检查并确认托管该文件的 http 网站支持 Accepts-Ranges header 字段,一段时间后我发现问题的发生是因为该文件尚未使用允许的“快速启动”标志创建视频的渐进式下载。
我尝试在线搜索解决方案,但一直找不到通过 Media Foundation 的 Sinkwriter 应用该标志的方法。任何想法? (我不能使用任何外部应用程序来执行此操作,因为此代码将在 Windows 应用商店环境中运行)
最佳答案
渐进式下载要求 moov
框在 MPEG-4 文件中位于 mdat
框之前,这通常在生成文件时需要额外的努力,而不是媒体基础的默认行为。
媒体基金会介绍 MF_MPEG4SINK_MOOV_BEFORE_MDAT
attribute处理这个:
The default behavior of the mpeg4 media sink is to write 'moov' after 'mdat' box. Setting this attribute causes the generated file to write 'moov' before 'mdat' box.
In order for the mpeg4 sink to use this attribute, the byte stream passed in must not be slow seek or remote for .
This feature involves an additional file copying/remuxing.
注意最低要求。或者,您需要对文件进行后处理以将 moov
框移动到开头。
另见:
关于c++ - 媒体基础 SinkWriter (MP4 FastStart),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27668755/
所以我的电脑上有很多 mp4 文件,我读到 QT-FastStart 用于将元数据从文件末尾移动到开头,但我该如何使用或运行它? 每次我将文件拖放到 qt-faststart 时,似乎没有任何反应?
所以我的电脑上有很多 mp4 文件,我读到 QT-FastStart 用于将元数据从文件末尾移动到开头,但我该如何使用或运行它? 每次我将文件拖放到 qt-faststart 时,似乎没有任何反应?
我正在尝试在 MP4 视频上使用 qt-faststart 来加快流式传输,但 qt-faststart 命令永远不会完成,它从最后一个半小时开始运行,视频文件只有 14MB。 qt-faststar
在 MP4 上运行“qt-faststart”时,您实际上是从后面获取元数据并将其放在文件的前面。在我的例子中,Flash 可以在视频完全加载之前正确开始播放视频。 我有大量视频,我正在通过 shel
我尝试使用命令-movflags faststart 出现如下错误: Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft
我正在使用 Media Foundation 在一系列过滤器之后从输入 MP4 创建 MP4 (H264 + AAC) 输出文件。视频的创建工作完美,视频在本地复制没有问题。问题在于,当远程执行时(通
我尝试使用 H264、AAC 编解码器和 mp4 容器转换视频以在 Android 上播放。非系统播放器可以正常播放视频。但系统播放器显示错误“无法播放此视频”。我发现问题出在moov atom中,它
我对 bash 脚本不太熟悉,所以我需要你们的一点帮助。 我的 Gentoo 服务器上有一个目录,其中包含数百个视频,每个视频的名称中都有一个日期(09092015.mp4、10092015.mp4
我已经在 WAMP 2 上安装了 FFMPEG。但是我相信我还需要 qt-faststart 以便快速加载 MP4 文件中的元数据。我该怎么做? 最佳答案 您需要 qt-faststart 使 MP4
我是 ffmpeg 的新手. 有一个视频脚本 ( ClipBucket ) 并想知道如何添加 -movflags +faststart到脚本以利用 .mp4正在转换的视频。 这是代码ffmpeg.cl
因为我不知道 qt-faststart(对 MP4Box 也有一点了解),是否有任何关于它们的在线资源(没有找到太多)?哪个更好?他们的区别是什么?特别是如果我想为 Android 设备创建提示视频文
虽然我能够编码一个可以在本地 Windows 机器上播放的 mp4 文件,但我在将文件编码为 mp4 时遇到了问题,这些文件在通过 safari 流式传输时可读,等等。 经过一些阅读,我认为我的问题是
我正在为视频设置格式布局,如下所示: AVOutputFormat* outputFormat = ffmpeg.av_guess_format(null, "output.mp4", null);
我制作了一个使用 ffmpeg 压缩视频文件的应用程序。有 3 台计算机在 Synology NAS 之间处理文件。 一切都很好,但是如果我添加参数“-movflags faststart”,则生成的
是否可以从命令行运行 ffmpeg,它将“moovatom”元数据放在 MP4 文件的开头,或者运行 qt-faststart 作为 ffmpeg 中的后处理操作,以便生成的文件是流式的可以通过互联网
我要加 -movflags +faststart到 mp4 文件。基本上这就是我想要做的,其他什么都不应该改变。我正在使用 ffmpeg。 最快的方法是什么?我必须重新编码整个视频吗?还是有更好/更简
是否可以从命令行运行 ffmpeg,将“moov atom”元数据放在 MP4 文件的开头,或者运行 qt-faststart 作为 ffmpeg 中的后处理操作,以便生成的文件是流式的可以上网吗?
视频是用 ffmpeg 渲染的,添加了“faststart”标志,这意味着元数据应该在文件的开头,服务器似乎正确地处理了部分内容请求,那么为什么它需要下载这么多在播放器启用并可以播放视频之前的视频?我
我是一名优秀的程序员,十分优秀!