script : stabilizing scenes to create a better video #288
Replies: 2 comments
-
and take a look at VideoMass, https://jeanslack.github.io/Videomass/ , a free application (for many OS) to manipulate media files .. and even download them .. it also has a stabilize function, using ffmpeg, and in the GUI you can see its parameters .. however, it's difficult to test these : different settings should give different results .. |
Beta Was this translation helpful? Give feedback.
-
i will show an example duo video : http://e.pc.cd/tfwotalK .. this is my very first one .. once i searched for some .mkv video files on a FTP server, just for testing, and i found this little video .. when i created a stabilizing application (with python and ffmpeg) i used this video to develop that script .. it's some Russian landscape or so, nothing special, but the movements are stabilized perfectly ! Default settings are used. You can get such result also with a smartphone recording while walking, etc. I have many more examples .. maybe you can share your own ? (did you manage to run my script?) |
Beta Was this translation helpful? Give feedback.
-
Hi, Brandon. Thanks for this nice module .. with it, i created a Python script to improve any video by stabilizing each scene : ffmpeg does the stabilizing of all detected scenes and finally all scenes are concatenated .. the script also uses a scenes exclude list, indexed by scene number, which can be added to a scene (eg. in bottom left corner) in a first test video : a "duo video" is created, showing 2 versions of the movie next to eachother : the original and the stabilized version .. i had to develop some code to make it work for all video types, and i decided to extract the full audio of the original video and finally insert it to the stabilized movie, because concatenating the audio of each scene often gave a nasty click sound at scene switch ..
i attached a ZIP containing my script files.
execute it with python3 go.py
i developed for linux, but i guess it should run on other OS also .. several bash files (.sh) are included, they perform needed tasks in the process .. i added many comments in the code, so you should be able to understand the working and even adjust things .. on top of the main python file (go.py) you'll see some parameters which determine how the script will perform, eg. the folder containing the original video(s), if scene numbers should be added, creating a duo video etc. I once found the stabilizing code by ffmpeg in some forum post, and also how to create the duo video, which is very handy.
PyStableFilm_v01.zip
Beta Was this translation helpful? Give feedback.
All reactions