简体   繁体   English

如何使用vlcj同时读取视频帧和帧时间文件

[英]How to read the video frame and frame time file simultaneously using vlcj

I am working on VLCJ. 我正在研究VLCJ。 I want to play a video where every frame's duration time is recorded in an independent file. 我想播放一个视频,其中每个帧的持续时间都记录在一个独立的文件中。 So I plan to modify the input module of VLCJ in order to read the video content file and frame time file at the same time. 因此,我计划修改VLCJ的输入模块,以便同时读取视频内容文件和帧时间文件。 Finally, the result should be VLCJ playing the video frame by frame and frame time file decides how long a video frame is playing. 最后,结果应该是VLCJ逐帧播放视频,并且帧时间文件决定了视频帧播放多长时间。

To implement this, anybody knows which modules of VLCJ source code should be modified? 要实现这一点,有人知道应该修改VLCJ源代码的哪些模块?

I'm not even sure you can do this with libvlc - do you mean the amount of time the frame should display for on the screen or actually does? 我什至不知道您可以使用libvlc来做到这一点-您是说帧应该在屏幕上显示的时间还是实际上应该显示的时间? If you mean should , then you should just be able to calculate this from the frame rate. 如果你的意思是应该 ,那么你应该能够从帧速率计算出这一点。

If you mean does then you might want to look at an API such as Xuggler which works with each frame directly. 如果您的意思是肯定的 ,那么您可能希望查看直接与每个框架配合使用的API,例如Xuggler

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM