[Cin] Issues related to Motion Plugin
Miroslav Rovis
miro.rovis at croatiafidelis.hr
Tue Sep 27 19:36:11 CEST 2022
Georgy, I suppose it was not intentional, but in case this did
not arrive to Cin ML (likely, it's not in the archive), I want
to send this email, because I worked a couple of hours on it,
and I mentioned it in another email today. I need it to show
what issues I had.
--
Miroslav Rovis
Zagreb, Croatia
https://www.CroatiaFidelis.hr
my PGP-key:
https://www.croatiafidelis.hr/FCF13245ED247DCE443855B7EA9884884FBAF0AE.asc
I'm removing one layer of citation, for legibility, as if Georgy
sent it, not me.
==========================================================
On 220926-10:20+0700, Georgy Salnikov wrote:
On Sun, 25 Sep 2022, Miroslav Rovis wrote:
> > Phyllis has such a very shaky example. May be, I have yet a cingg project to
> > stabilize it using Motion plugin keyframes. Should I search for it?
> If you think so.
Miroslav, in attachment you find the archive. Unpack it, there are two
files: the source video clip, and the cingg project file. This is a rather
difficult example not only because of strong shaking. Moreover, the video is
taken perhaps from a moving car, so the landscape itself in the viewport is
changing. The example project demonstrates the possibility of the Motion
plugin to switch from one key part of image to another as the former part
goes off the viewport, becomes obscured or changes shape. This is not
smoothing video, but freezing it. The result is not completely still, but
additionally applying vidstab to it perhaps should improve the result once
more. To test, do the following after unpacking:
Open shaker2.xml (replace current project)
Make sure: Motion and Time Average must be off
Rewind to the beginning
Uncheck 'Play track'
Open Motion controls dialog
Action: Do Nothing
Calculation: Save coords to tracking file
Scroll timeline forward, set cursor after the next keyframe
Action: Do Nothing
Calculation: Save coords to tracking file
Repeat that for all the rest keyframes (total of 4)
Close Motion controls dialog
Rewind to the beginning
Switch Motion on
Check 'Play track'
Play forward up to the end
Video will be still very shaky.
The file 'motion-shaker4' will appear in /tmp
Uncheck 'Play track'
Rewind to the beginning
Open Motion controls dialog
Action: Stabilize Subpixel
Calculation: Load coords from tracking file
Scroll timeline forward, set cursor after the next keyframe
Action: Stabilize Subpixel
Calculation: Load coords from tracking file
Repeat that for all the rest keyframes (total of 4)
Close Motion controls dialog
Rewind to the beginning
Switch Motion on
Switch Time Average on
Check 'Play track'
Render project
Now compare the result of rendering with the original one.
.......
Some of my examples to apply ffmpeg's vid.stab is as follows:
rm transforms.trf
ffmpeg -i video-src.mp4 -c:v rawvideo -filter:v vidstabdetect -an -f null -y /dev/null
ffmpeg -i video-src.mp4 -c:v libx264 -filter:v vidstabtransform,unsharp=5:5:0.8:3:3:0.4 -b:v 12000k -b:a 192k -ac 2 -ar 48000 -y video-dst.m4v
Regards
Georgy
_______________________________________________________________________________
Georgy Salnikov
NMR Group
Novosibirsk Institute of Organic Chemistry
Lavrentjeva, 9, 630090 Novosibirsk, Russia
Phone +7-383-3307864
Email sge at nmr.nioch.nsc.ru
_______________________________________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20220927/d0898db0/attachment-0001.asc>
More information about the Cin
mailing list