检测是否“快速启动"已应用于视频 [英] Detect if "faststart" has been applied to video

查看:67
本文介绍了检测是否“快速启动"已应用于视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在MP4上运行"qt-faststart"时,实际上是从后面获取元数据并将其放在文件的前面.就我而言,Flash可以在完全加载视频之前正确开始播放视频.

When running "qt-faststart" on an MP4, you're essentially taking the meta data from the back and placing it at the front of the file. In my case, so Flash can properly start playing the video before it's fully done loading.

我有大量的视频正在通过Shell脚本运行,以在一夜之间进行编码.但是,当我上传视频时,我不一定会知道在我的视频的最终文件夹中(在服务器上)在其上运行"qt-faststart".

I have a large number of videos that I'm running through a shell script to encode overnight. When I upload, however, I won't necessarily know in my final folder of videos (on the server) have "qt-faststart" run on it.

我的目标是找到散乱的视频并对其手动运行qt-faststart,但是我需要一种方法来编译列表.有什么方法可以使用PHP或其他方式检查此元数据信息吗?想知道如何分辨视频是否已经运行过qt-faststart.

My goal is to find the straggler videos and run qt-faststart on them manually, but I'll need a way to compile a list. Is there any way to check for this meta data information with PHP or something? Wondering how I can tell if a video has already had qt-faststart run on it or not.

推荐答案

多次运行qt-faststart不会造成任何危害,第二次将是无操作.因此,最简单的解决方案是始终运行qt-faststart.

It shouldn't do any harm to run qt-faststart more than once, it will be a no-op the second time. So the easiest solution is to always run qt-faststart.

为获得更精确的控制,我将使用qt-faststart的Python转换: https://github.com/danielgtaylor/qtfaststart

For more precise control, I would use the Python translation of qt-faststart: https://github.com/danielgtaylor/qtfaststart

它具有检查MP4文件中原子的功能,使用它们确定是否需要重新排序应该不难.

It has functions that examine the atoms in an MP4 file, it shouldn't be too hard to use them to determine whether they need to be reordered.

这篇关于检测是否“快速启动"已应用于视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆