5 ms·
Automatic Video Editing
- PeterisP 6y agoThis reminds me of a cool tech demo about "enchanced tool" for video editing I saw in January - https://www.youtube.com/watch?v=Bl9wqNe5J8U https://www.youtube.com/watch?v=Bl9wqNe5J8U from descript.com (no affiliation).
- johnx123-up 6y agoJust curious.. how is this better than https://davidbieber.com/snippets/2020-02-21-jump-cut-programming/ https://davidbieber.com/snippets/2020-02-21-jump-cut-program... ?
- mcguire 6y agoIt composites his face from a camera input into the screencast, and automatically performs the editing for re-takes.
- netik 6y agoA lot of the issues raised in this post are well solved by commercial video editing software. For instance, markers and scene detection / edit lists in DaVinci, or word by word editing with recognition in Descript. I feel like the OP should give them a try before trying to apply the universal script hammer to this problem. The ffmpeg line alone is frightening. Use of unix time instead of timecode is another problem here. It’s cool that he wrote this but it doesn’t conform to any video standards in use.
- jjice 6y agoMy guess is that it was written because the author much prefers writing code and automating tasks to video editing, and it was worth the extra time for them to do that. Out of curiosity, do any commercial video editing programs offer automation/scripting? That seems like a great place for scripting to be available to help alleviate common tedious tasks, if it's not already there. I think that could lead to a best of both worlds.
- netik 6y agodescript is the only thing I’ve seen that turns video editing into something resembling word processing - it gets very jump cut-y and jerky but most people are used to it in the TikTok/YT era. It’s terrifically buggy right now but as a PoC it’s amazing.
- netik 6y agooh, and scripting wise you can fully automate davinci with python.
- kfarr 6y agoYes there are many existing automation options for video production applications. For example, the concept of a portable EDL (edit decision list) file is already well established in the industry for decades: https://en.wikipedia.org/wiki/Edit_decision_list https://en.wikipedia.org/wiki/Edit_decision_list Scripting languages are also available for specific post production applications such as Final Cut: https://en.wikipedia.org/wiki/FXScript https://en.wikipedia.org/wiki/FXScript Then there grew a whole crop of cloud-based scripted content generators like stupeflix, sundaysky, idomoo.com. I think the author did a great job creating a fun project and explaining the ffmpeg workflow, but a video professional has many off-the-shelf options already.
- moyix 6y agoThe author seems to be using OpenBSD, so I imagine that rather limits their options.
- bluetwo 6y ago"Aeschylus is the worst written bit of software I’ve put my name to since I was about 15 years old and it will probably never be usable for anyone other than me." Hilarious and honest.
- dceddia 6y agoI've been thinking a lot about this problem myself! Making screencasts, I realized most of my editing time was spent cutting out silence. If I recorded with that in mind (staying silent between re-takes), the editing became pretty straightforward but really tedious. I made my own automatic editor tool [0] recently, and the approach I started with is simply cutting out the silent parts. I looked at other options like jumpcutter.py and auto-editor.py before building it, and they helped prove out the idea, but I really wanted an interactive UI, so I built an app in Swift. I figured the automated approach is probably not gonna be perfect, so I built it to export XML/EDL/ScreenFlow files that can be imported to other editors for fine-tuning. It works pretty well and people seem happy with it so far. Someone else mentioned timestamps vs. timecode. Maaan, timing has been a real thorn in my side with this project. The "even" framerates aren't too bad (30fps/60fps/etc) but the uneven ones are a huge pain (29.97, 59.94). One fun problem recently was figuring out how to bin audio samples at 48khz into frames at 29.97. Because each frame holds an uneven number (1601.6), I had to alternate between assigning 1602/1601 to each frame, or else my idea of time would slowly but steadily skew out of sync. As someone who'd never worked with video before, this has been a fun adventure. Right now I'm working on adding more manual control over the cuts, and this kind of stuff is what I'd like to tackle next! Automatic scene detection, ability to leave markers during recording, more control over transitions, stuff like that would be really cool. Feels to me like automatic editing might get more popular as more people realize it's even possible. 0: https://getrecut.com https://getrecut.com
- jjnoakes 6y agoBy "Automatic scene detection" do you mean somehow detecting in the video if interesting things are going on and avoiding cuts around those spots? Because a lot of videos I record have silence in the audio when important things might be happening in the video, and having to manually go find those places is a bit of a pain. Of course, automatically detecting which parts of the video are interesting or not is probably impossible, but it sure feels like an interesting problem to try to tackle.
- dceddia 6y agoSomething like that. I could base it on frame-to-frame changes, or if my app was doing the screen recording, I could look at keyboard/mouse input as another signal of "non-silence". I'm pretty much looking at silence removal as a good starting point. My overall goal is to cut down on the manual editing required, so just looking for repetitive processes that I could add automations for.
- nickjj 6y agoAfter having recorded close to 600 screencast videos, I automated a number of setup and teardown processes too. Such as using the Sizer[0] tool to move windows to specific 1920x1080 coordinates of the screen where I configured OBS to record from. This way my desktop resolution never needs to change. Using Sizer requires right clicking a title bar and choosing a pre-created menu item and it auto-resizes and positions the window correctly. Very painless. But I also have these little shell scripts that are responsible for setting up font sizes and making sure my history is clear. Not showing history is so important if you're using CTRL+r and FZF frequently because having to blur stuff later is time consuming and error prone (ie, missing 1 frame of blur by accident). The stop record script reverts everything back to normal. record-start () { mv ~/.bash_history ~/.bash_history.bak && history -c rm /tmp/%* change_terminal_font 9 18 if [[ "${1}" = "--obs" ]]; then cd "/c/Program Files/obs-studio/bin/64bit" wslview obs64.exe cd - fi } record-stop () { mv ~/.bash_history.bak ~/.bash_history && history -r change_terminal_font 18 9 } change_terminal_font () { [[ -z "${1}" || -z "${2}" ]] && echo "Usage: change_terminal_font FROM_SIZE TO_SIZE" from="${1}" to="${2}" windows_user="$(powershell.exe '$env:UserName' | sed -e 's/\r//g')" terminal_config="/c/Users/${windows_user}/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json" perl -i -pe "s/\"fontSize\": ${from}/\"fontSize\": ${to}/g" "${terminal_config}" } I don't think I'll ever automate the editing process because editing is where you can throw in a lot of human nice touches, like zooming into a specific area of the screen for emphasis or adding an overlay picture for context. But I do try to make things as live as possible, such as using OBS scenes to cut down on post processing editing. That and automating your audio processing so you don't need to edit your audio afterwards has given me the biggest bank for my buck in terms of how fast I can go from an idea in my head to a video ready for YouTube. A complete list of tools that I use for dev + recording + editing can be found here: https://nickjanetakis.com/blog/the-tools-i-use https://nickjanetakis.com/blog/the-tools-i-use [0]: http://www.brianapps.net/sizer4/ http://www.brianapps.net/sizer4/
- SeanFerree 6y agoI agree. I could never have editing automated. It takes a while, but like you said, it adds a personal touch
- nate 6y agoLove stuff like this. It feels like we're close to some really interesting things here but I haven't quite seen it yet. Facebook/Apple have their "auto movies" but they're largely just montages over music. Any interesting/useful audio captured in those clips just seems ignored. My brain cycles on thoughts of what GPT-3 like things could be enable here possibly. Could there be some interesting algorithm trained on which clip should come next kind of AI: these 10s or skip and check again. Self promotion, but I did fool with a way to try and automate making stop motion movies: https://www.trylocomotion.com https://www.trylocomotion.com Rudimentary process of letting people take a video and doing a reverse motion detection algorithm. "When there's nothing moving in frame, use that frame for the stop motion movie." But that was a fun dive into this world.
- mauricesvay 6y agoMakes me think of https://www.descript.com/ https://www.descript.com/
- Barr1552 6y agoThanks for sharing this information. https://www.upsers.run/ https://www.upsers.run/