options of vidstabdetect video filter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

options of vidstabdetect video filter

PPRJ01
Hello All,

Is there a maximum value for the "stepsize" option of vidstabdetect ? I don't see any in the documentation.


I first tried this on Windows :

ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=6:result="TRF06.txt" "dummy.mp4"



and then this :

ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=32:result="TRF32.txt" "dummy.mp4"



In both cases ffmpeg says that the parsed value is 6 and the two output TRF*.txt files are identical.

Thank you for helping.

Pascal
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: options of vidstabdetect video filter

Moritz Barsnick
On Fri, Aug 07, 2020 at 17:16:24 +0200, PPRJ01 wrote:
> Is there a maximum value for the "stepsize" option of vidstabdetect ? I don't see any in the documentation.

If it's not in the documentation (it should be), you can query all
ranges with a command such as
$ ffmpeg -h filter=vidstabdetect

ffmpeg allows a maximum of 32.

> ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=6:result="TRF06.txt" "dummy.mp4"
[...]
> ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=32:result="TRF32.txt" "dummy.mp4"

> In both cases ffmpeg says that the parsed value is 6 and the two output TRF*.txt files are identical.

I can see that vid.stab's source code has a limitation:
If accuracy is larger than 9, step size is automatically reduced to 6.

That would explain your observation. Actually, the vid.stab library
even emits a message explaining this. So please always do have a look
at ffmpeg's console messages:

[vidstabdetect @ 0xbffe58a0] Multitheading: use 1 threads
[vidstabdetect @ 0xbffe58a0] For high accuracy use lower stepsize  -- set to 6 nowFieldsize: 32, Maximal translation: 34 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 24 out of 24
[vidstabdetect @ 0xbffe5840] Fieldsize: 16, Maximal translation: 16 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 40 out of 40

Note how it's hidden a bit due to a missing line break:
    For high accuracy use lower stepsize  -- set to 6 now

Reducing your accuracy to nine should result in changing behavior.

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: options of vidstabdetect video filter

PPRJ01
Thank's a lot Moritz for your kindly help.

It works !!!

I am an ffmpeg user since november 2018 and I didn't pay attention to this warning message that was in green color. It's the first time I use vidstab* filters.

I will continue doing tests because the video I received from a friend is a very very shaky one (taken from a high speed boat).

Best regards.

Pascal

___________________________

 

On Fri, Aug 07, 2020 at 17:16:24 +0200, PPRJ01 wrote:
> Is there a maximum value for the "stepsize" option of vidstabdetect ? I don't see any in the documentation.

If it's not in the documentation (it should be), you can query all
ranges with a command such as
$ ffmpeg -h filter=vidstabdetect

ffmpeg allows a maximum of 32.

> ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=6:result="TRF06.txt" "dummy.mp4"
[...]
> ffmpeg -i "INPUT.mp4" -an -vf vidstabdetect=shakiness=10:accuracy=15:stepsize=32:result="TRF32.txt" "dummy.mp4"

> In both cases ffmpeg says that the parsed value is 6 and the two output TRF*.txt files are identical.

I can see that vid.stab's source code has a limitation:
If accuracy is larger than 9, step size is automatically reduced to 6.

That would explain your observation. Actually, the vid.stab library
even emits a message explaining this. So please always do have a look
at ffmpeg's console messages:

[vidstabdetect @ 0xbffe58a0] Multitheading: use 1 threads
[vidstabdetect @ 0xbffe58a0] For high accuracy use lower stepsize  -- set to 6 nowFieldsize: 32, Maximal translation: 34 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 24 out of 24
[vidstabdetect @ 0xbffe5840] Fieldsize: 16, Maximal translation: 16 pixel
[vidstabdetect @ 0xbffe5840] Number of used measurement fields: 40 out of 40

Note how it's hidden a bit due to a missing line break:
   For high accuracy use lower stepsize  -- set to 6 now

Reducing your accuracy to nine should result in changing behavior.

Cheers,
Moritz

 
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: options of vidstabdetect video filter

Dan Bridges
On 8/08/2020 8:47 pm, PPRJ01 wrote:
> I am an ffmpeg user since november 2018 and I didn't pay attention to this warning message that was in green color. It's the first time I use vidstab* filters.
>
> I will continue doing tests because the video I received from a friend is a very very shaky one (taken from a high speed boat).
>
If you are a Windows FFmpeg user, check out the 3-part message, starting
from https://forums.whirlpool.net.au/thread/3q68l4j9#r5 , where I post
some links to comparison videos and a "test workbench" to experiment
with vidstab settings.

Dan.

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".