-
Notifications
You must be signed in to change notification settings - Fork 254
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
WIP: Add loopAttribute to EncodingAttributes #79
Conversation
Hmmm. This doesn't seem to jive very well. I must've fessed something up with the order as I'm getting 1 returns from ffmpeg. |
I think you must add both as separate arguments like here:
|
Indeed, that fixed the erroneous return messages. On the other hand, I seem to have entered either an infinite loop or my duration calculation is wrong in my test code where duration = (25 * 1000) From what I understand, duration as set in EncodingAttributes is supposed to be in milliseconds. Is this correct? |
For testing, it might be simpler to get ffmpeg.exe working in the commandline, and then integrating it in jave |
Do you mean this https://trac.ffmpeg.org/wiki/Slideshow |
Yes, the use case was basically for a single image
so something similar is the desired output (although I am testing with vp9 and webm and it works, I'm just getting infinitely growing .webm video files :-) ) |
OK, digging into
whereas in MultimediaInfo duration is given as milliseconds which probably confused me ;) |
So I did what you suggested @a-schild and tested with the included binary. What I need is basically something like the following exposed. This PR adds the loop attribute but not the -shortest flag.
|
Seems |
Can you please also add some test cases to the project? See here for some existing test cases. Just create a new class to test the image->video stuff in different variations. |
Your merge request is included in the 2.8.0-SNAPSHOT release. Thanks for your submission |
See #78