Is it possible to get precise timestamps for frames in video file from VLC?
Asked Answered
A

1

10

I’m looking to use VLC as the foundation for a video player within my application written in C# (since VLC is one of the few players that can properly decode the format I’m working with), but the primary tasks that I need it to perform are:

  1. Ability to browse between separate frames in a video file, both forward and back.
  2. Displaying a precise timestamp for each frame down to the millisecond, and the ability to relay the timestamp to an application.

Right now I’m doing this by means of a VLC extension LUA script, but the time VLC returns via vlc.var.get(input, “time”) lacks precision and can differ for the same frame in the same video file across multiple file readings. The frame browsing doesn’t work too reliably either. Plus, the values received in this way cannot be automatically relayed to another application.

I tried using the LibVLC.NET wrapper for libVLC, but I still couldn’t browse between frames, and the millisecond count values returned were rather odd. It’s almost like VLC (libVLC) doesn’t return an actual time value during playback but rather some sort of rounded value, a value with substantial delay when reading with precision down to the millisecond. The standard VLC interface can neither display precise time values down to the millisecond, nor browse between frames.

Is there any viable way to perform the two aforementioned tasks with VLC by somehow running VLC from an application written with the use of .NET? Or should I look into other options?

Abecedary answered 22/1, 2013 at 18:22 Comment(0)
E
0

I am not sure that you can do that with VLC. But you can use this example which uses very good framework called ffmpeg I am almost sure that you will be able to play your stream and navigate through. In addition there is another solution that you may use , I have to say that i am not familiar with it but it worth checking.

Basically try to find .Net implementation of video player instead of working VLC

Election answered 4/8, 2015 at 13:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.