This:
But this:Code:for %%a in ("*.mp4") do ffmpeg -i "%%a" -vf "vidstabdetect=shakiness=10:accuracy=15:result='%%~na.trf':show=1" dummy.avi -y
results with this with every frame.Code:for %%a in ("*.mp4") do ffmpeg -i "%%a" -vf "scale=in_range=full:out_range=full,curves=master='0.0625/0 1/1',vidstabdetect=shakiness=10:accuracy=15:result='%%~na.trf':show=1" dummy.avi -y
[vidstabdetect @ 00000097695fedb8] too low contrast. (no translations are detected in frame 34)
Why this doesn't work?
There seems to be a problem with "curves=master='0.0625/0 1/1'" -- it works fine without it.
+ Reply to Thread
Results 1 to 5 of 5
-
-
The message says "too low contrast"
Try lowering the mincontrast
https://ffmpeg.org/ffmpeg-filters.html#vidstabdetect-1
mincontrast
Set minimum contrast. Below this value a local measurement field is discarded. Must be a floating point value in the range 0-1. Default value is 0.3. -
Not working.
AfterCode:vidstabdetect=shakiness=10:mincontrast=0:accuracy=15:result='%%~na.trf':show=1
-
Do the 1st pass analysis on the "normal" video, write the .trf
Do the 2nd pass (assuming you want to stabilize it) with your scale/curves filter and vidstabtransform -
Pass 1 and pass 2 only work if "curves=" is removed. If I leave "curves=" on the second pass, ffmpeg aborts and I get a file of length 0.
It seems that the curves output is incompatible with vidstab.
But it works when I put "curves=" at the end (after vidstabtransform). However, I would prefer to put before.
Similar Threads
-
Intelligent Down-Scale for Video
By Sandfly in forum Video ConversionReplies: 23Last Post: 21st Nov 2021, 10:10 -
ffmpeg and crop+scale
By JosephTocco in forum Newbie / General discussionsReplies: 9Last Post: 18th Sep 2021, 10:05 -
[solved] Convert video changing Scale and Bitrates - Ffmpeg
By parvares in forum Newbie / General discussionsReplies: 10Last Post: 8th Apr 2021, 17:35 -
Problem with Premiere frame size and motion scale on frame hold
By miguelmorin in forum EditingReplies: 0Last Post: 10th Jan 2021, 17:20 -
HELP: FFMPEG Scale and Chromakey syntax?
By DotMatrix in forum Newbie / General discussionsReplies: 0Last Post: 20th May 2020, 11:54