VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    This:

    Code:
    for %%a in ("*.mp4") do ffmpeg -i "%%a" -vf "vidstabdetect=shakiness=10:accuracy=15:result='%%~na.trf':show=1" dummy.avi -y
    But this:

    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
    results with this with every frame.

    [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.
    Quote Quote  
  2. Originally Posted by rgr View Post

    [vidstabdetect @ 00000097695fedb8] too low contrast. (no translations are detected in frame 34)


    Why this doesn't work?
    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.
    Quote Quote  
  3. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Not working.

    After
    Code:
    vidstabdetect=shakiness=10:mincontrast=0:accuracy=15:result='%%~na.trf':show=1
    still every frame has "too low contrast".
    Quote Quote  
  4. 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
    Quote Quote  
  5. Member
    Join Date
    Aug 2018
    Location
    Wrocław
    Search PM
    Originally Posted by poisondeathray View Post
    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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!