English 中文(简体)
确切地在校方空气中摄取当地录像
原标题:precise seek local video in adobe air
  • 时间:2012-04-29 14:35:53
  •  标签:
  • video
  • air

i 想在观看录像时,用不便的空气提出申请。 优先工作是寻求真正的微薄的杂质(framneNumber)。 i m weinf FLVPlayback Object from FLVPlayebackAS3.swc:

import fl.video.FLVPlayback;

首先,我不理解我所寻求的准确性:这是在任何框架中,还是仅仅在GOF(在录像压缩中使用的碎片组——编码)的I框架内。

这样一来,就寻求一种干净的方法。 i 采用该守则:

    private function getFrameRate():int {
        if(playerFLV.metadataLoaded) return playerFLV.metadata.videoframerate;
        else return -1;
    }

    private function seek(frame:int):void {
        if(getFrameRate()>0)
            playerFLV.seek( frame / getFrameRate() );
    }

但有时似乎不够准确。

最佳回答

寻求(时间:数量)的职能预计时间不变,其准确性限于3个半衰期。 a 框架可能与你上述计算方法相距甚远。

作为一种快速检查,你是否确保获得任何回报? 应:

if(playerFLV.metadataLoaded) return playerFLV.metadata.framerate;

metadata.framerate will give you the flv frame rate, if you dont care about the audio, you can try using:

playerFLV.metadata.videodatarate

关于这两个部分:

RE- 首先,所有一米都不理解我所寻求的准确性:它实际上处于任何框架之中,还是仅仅存在于GOF(在录像压缩中使用的碎片组——编码)。

if the video is progressive download:

寻求者将寻求一个时间,届时反馈部分将展示第一个重要框架。

<> 如果视频流出:

员工和管理当局协调处将产生当时所需的关键框架。

如果你关心档案规模,或者如果你确实控制你的录像带,而且这些录像是渐进的,那么我会建议就你想向视频索取的每个框架增加点。

问题回答

暂无回答




相关问题
Non-linear video editing tool/API?

Can anyone recommend a good library that would enable me to write an application that can blend multiple input videos into one output video (for example into a split screen). I don t care about the ...

WPF playing a video, shopping up, can I preload?

Im showing a video int my application, but its being chopped up, its locally on disc so I dont understand why this is so... any way i can start to preload it before playing it - so the content would ...

FLVs on timeline are glitching out

I have a Movieclip with about five FLV movies embedded on its timeline, one after another. I am loading multiple instances (about 5-10) of this movieclip onto the stage. Once added to the stage, they ...

Get the dimensions of a H.264 MP4

Does anybody know a ready-made, reliable way to tell the dimensions (width x height) of a MP4 encoded using the H.264 codec without ffmpeg or similar extensions, in pure PHP? Thanks for all the ...