Javacv: FFmpegFrameGrabber.getLengthInTime() is 0

Created on 12 Aug 2020  路  4Comments  路  Source: bytedeco/javacv

Hello, I can't get the duration time of video file.
I use VideoInputFrameGrabber open webcam.
The FFmpegFrameRecorder also call setTimestamp() function.
But FFmpegFrameGrabber.getLengthInTime() can't get duration of video file , which FFmpegFrameRecorder generating.
Could you help me ?

question

All 4 comments

Not all video files come with that information, that's normal. To have
FFmpegFrameRecorder write that information, you'll need to call stop().

Not all video files come with that information, that's normal. To have FFmpegFrameRecorder write that information, you'll need to call stop().

can I use close() for the same purpose?

Thanks, it took effect after I changed my code.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iamazy picture iamazy  路  4Comments

ahmedaomda picture ahmedaomda  路  4Comments

chrisliu12345 picture chrisliu12345  路  4Comments

newstarbka picture newstarbka  路  5Comments

SenudaJayalath picture SenudaJayalath  路  3Comments