Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set time stamp not working properly in 1.0 #238

Open
john-us opened this issue Sep 29, 2015 · 1 comment
Open

set time stamp not working properly in 1.0 #238

john-us opened this issue Sep 29, 2015 · 1 comment

Comments

@john-us
Copy link

john-us commented Sep 29, 2015

Hi,

I am using javacv 1.0 for creating a video and using setTimestamp method of FFmpegGrabber class. The analysis is as:

  1. When i set timestamp in FFmpegGrabber as duration of video(which should be point to last frame) and again set as start of the video(which should be point to first frame) it returns same frame number in both cases from the method of getFrameNumber.
  2. If i set start time first and then end time the returned frame number is correct.
  3. Grabbing the frame from last by setting the frame number in reverse as n, n-1, n-2.....1st and creating the video, it seems that i am not getting all frames and created video is not smooth(its jumpy).
  4. Also tested MPEG4 codec is not working in 1.0 (it throws error in recorder like image height>0 width >0)and i have to used H264 codec.

I have tried with grab and grabImage method both. Please help.

@saudet
Copy link
Member

saudet commented Sep 29, 2015

Sure, it's not very robust functionality, so it probably doesn't work well on all formats and files. If you could look into this and figure out a way to make it better, send a pull request, and I will gladly accept it. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants