Skip to content
ramazansubasiPublic

About

AI-assisted pre-edit helper for DaVinci Resolve (free version): cuts silences, hesitations and throat clearing, steadies phone shots, transcribes, writes subtitles and YouTube texts that match the cut, places lower thirds, makes vertical clips. Runs on your computer.

Topics

Resources

Stars

64 stars

Watchers

0 watching

Forks

Latest commit

 

History

63 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Davar

A pre-edit helper for DaVinci Resolve. It takes over the tedious manual work on talking-head videos: syncing audio, cutting silences and "uh / um" hesitations, transcribing, making lower thirds and vertical clips.

Türkçe: README.tr.md

Status: early release. So far it has been tried with one user's handful of videos. Always watch the cuts before you publish, and please open an issue if you find a bug.

The name nods to two things: DaVinci Resolve, and Katır ("mule"), İlker Canikligil's tool that pioneered this kind of workflow in Turkey. Davar is Turkish for a flock of sheep and goats, and like them it grazes off what your video does not need.

The Davar window

Workflows

All ten workflows work. Full Process, at the top of the menu, runs them one after the other.

No Workflow Status What it does
01 Audio works Puts separately recorded audio in its place in the video and sets the loudness for YouTube
02 Picture works Reframes the video to 16:9 and locks a tripod shot so the background stands still
03 Transcribe works Transcribes the speech once with word-level timing and saves it; writes subtitles (.srt) and text (.txt)
04 Rough Cut works Finds silences, "uh / um" hesitations and filler words, lets you review the candidates, writes a Resolve timeline (.fcpxml)
05 Multicam Edit works Cuts to the camera of whoever is speaking: the other cameras' files, matched by their sound, on the Rough Cut timeline
06 Content Analysis works Has Claude Code, Codex or an AI chat of your choice write the YouTube texts: titles, description with chapters, tags, social clip candidates
07 Titles works Makes a transparent lower third with a soft entrance and exit for a speaker's name and title, and for the topic being talked about, and places them on the timeline
08 Visual Assets works Lists what the talk names that a picture could show; places your pictures full screen with a slow zoom on the timeline
09 Social Clips works Cuts a chosen range into a vertical Reels / Shorts video with headline, subtitles and cover
10 Publish works Draws the YouTube thumbnail on a good frame and writes the upload sheet: title, description with chapters, tags, subtitle file

No workflow modifies your original video. Davar works with the free version of Resolve: it does not remote-control Resolve, it writes files that Resolve imports.

The interface is available in English and Turkish; pick the language at the top left of the window.

Installation

You need:

  • Python 3.10 or newer
  • ffmpeg (ffmpeg and ffprobe on your PATH)
  • numpy and Pillow
  • faster-whisper (for Transcribe and automatic subtitles)
  • OpenCV (opencv-python, for locking the frame in Picture)
pip install -r requirements.txt

An easy way to get ffmpeg on Windows:

winget install Gyan.FFmpeg

Usage

With the window

Double-click Davar.bat. Choose the video (and an output folder if you like) at the top, pick a workflow on the left, tick the settings and press Start. Progress and results appear in the log at the bottom. Dropping a video onto Davar.bat opens the window with that video selected.

Settings are remembered. Nothing has to be entered twice, and there is nothing to save or open:

  • General settings (thresholds, paddings, filler words, ticked options, speaker names) come back as you last left them, for every video.
  • Settings that belong to one video (trim times, the range of a social clip, separately recorded audio files, the output folder) are kept with that video and come back when you choose it again. A new video starts with those boxes empty.
  • Davar opens with the video and the page you last worked on.
  • A video Davar wrote from another one (talk_picture.mp4 from talk.mp4) starts with the settings of its source.
  • Back to defaults on each page puts the general settings back to what Davar ships with.

They are kept in .davar/settings.json in your home folder, on this computer only; a video that is renamed or moved starts fresh.

Outside Windows:

python davar_gui.pyw

From the command line

Every workflow is also a script:

python audio.py "video.mp4" --audio "lavalier.wav"
python picture.py "video.mp4" --position 100
python transcript.py "video.mp4" --srt --text
python roughcut.py "video.mp4" --from 0:07 --to 51:19 --remove "50:46-51:03" --fillers "you know, like"
python titles.py "Jane Doe" "Journalist" --video "video.mp4"
python content.py "video.mp4"                     # writes video_prompt.txt
python content.py "video.mp4" --answer answer.txt # writes video_youtube.txt
python clips.py "video.mp4" 13:06 13:56 --headline "TRAFFIC IN TUZLA" --subtitles --cover

Run any of them with --help for all options.

Importing into Resolve

  1. Open a project in Resolve.
  2. File → Import → Timeline… and choose the <video>_cut.fcpxml written next to the video.
  3. If two microphones were recorded on the video's two audio channels, tick Import multi-channel audio tracks as linked groups in the dialog. Each microphone then comes on a track of its own (A1, A2), cut along with the picture and linked to it, so their levels can be set apart.
  4. Press OK. The trimmed timeline opens on the Edit page.

01 Audio

Puts separately recorded audio (a lavalier microphone, an audio recorder, parts recorded afterwards) in its place in the video. It finds the place by itself: it compares the rhythm of the speech in both recordings, then aligns to sample accuracy. On long recordings it also measures and removes the drift caused by the two devices' clocks.

  • Each recording's level is matched to the video's own audio, and it replaces the video's audio there.
  • Audio that does not occur in the video is not placed; the report says which file was rejected.
  • The whole track is brought to YouTube loudness (-14 LUFS). Optionally the speakers' levels are balanced and background noise is reduced.

The picture is not re-encoded; the result is written as <video>_audio.mp4. Do the next steps with that new video.

02 Picture

For footage shot on a phone. It does two things, each of which can be switched off.

Reframe to 16:9. Most phones record a picture wider than 16:9, which leaves black bars above and below it on YouTube. Davar cuts the sides instead. The position says which side goes: 0 keeps the left edge, 50 takes the same from both sides, 100 keeps the right edge (so everything is cut from the left). The height is untouched, so nothing is scaled up.

Lock the frame. A phone on a tripod still moves the picture. While it hunts for focus the lens travels, and the whole picture grows, shrinks and hops by a few pixels; over a long recording the frame also creeps. In a video that is cut every few seconds, the background then jumps at every cut. Davar follows the background through the whole video, lines every frame up with one reference frame and zooms in by about one percent to keep the moving edges out of sight. People moving in front of the camera do not disturb it: the background agrees on one position and everything else is ignored.

  • Only for a camera that does not move. Davar refuses a video in which the picture travels more than a few percent of its width.
  • The blur of the moment the focus slips cannot be repaired; only the movement is.
  • Locking reads every frame twice and writes the video anew. Expect one to two times the length of the video.
  • A variable frame rate comes out constant.

The audio is copied untouched; the result is written as <video>_picture.mp4. A transcript already made for the original is carried over to the new video, so Transcribe does not have to run again. Do the next steps with the new video.

03 Transcribe

Transcribes the speech word by word with timing and saves it next to the video as <video>.davar.json. The other workflows read that file; the same video is never transcribed twice. It can also write subtitles you can upload to YouTube Studio (.srt) and a time-stamped text file (_transcript.txt).

Transcription runs on your computer with the Whisper model; nothing is sent to the internet (the model is downloaded once on first use). Accuracy offers two: small is quick (about a third of the length of the video on a 4-core processor); large-v3-turbo (1.6 GB) gets names and Turkish suffixes right far more often and takes about as long as the video on the processor. On an NVIDIA graphics card both run several times quicker (a 30-minute programme took 4 minutes with large-v3-turbo on a 2 GB Quadro P620); a card that DaVinci Resolve is using at the same time has less memory to spare and is slower. Both still get names and numbers wrong; check before publishing. Every Whisper model now and then writes something nobody said, such as one word hundreds of times; Davar keeps only the first of such a loop and lists where it happened.

On an NVIDIA graphics card. Davar looks for an NVIDIA graphics card as it starts and says in the log what it found. When one can be used, Transcribe and the subtitles of Social Clips run on it by default; untick Use the NVIDIA graphics card on the Transcribe page to use the processor instead. The log says which did the work. It needs the CUDA 12 libraries, which come as two pip packages (about 1 GB to download): pip install nvidia-cublas-cu12 nvidia-cudnn-cu12; the page says when they are missing. On a 2 GB Quadro P620, which also drives the screen, 5 minutes of a Turkish talk show took 48 s with large-v3-turbo against 161 s on a 4-core processor, and 30 s with small against 100 s. If the card runs out of memory, the processor does the work instead.

Editing the text and the personal dictionary

The Edit the text window shows the transcript line by line: listen to a line, correct it, press Enter for the next. Saving also rewrites the subtitle and text files.

Davar offers to add single-word corrections to your personal dictionary, the file .davar/dictionary.txt in your home folder. Each line reads wrong = right:

tuzda = Tuzla
Akbörse = Akköse
top sen = TÜPSAN

The dictionary is applied every time a transcript is read: a word taught once is fixed in later videos and in the ones transcribed before. A suffix after an apostrophe is kept (Akbörse'nin → Akköse'nin).

04 Rough Cut

What it finds How
Silences From the audio level. The threshold is chosen from the recording's own background noise. Cut directly.
"Uh / um" hesitations From the audio itself (flat pitch, steady sound). Checked against the transcript when there is one.
Filler words From your list ("you know, like"), searched in the transcript.
Coughs and other non-speech sounds Short bursts standing between silences. With a transcript, a burst no word was written for is non-speech.

Trimming. You can also give the time the programme starts and ends, and ranges to drop from the middle (a repeated take, an off-air exchange): everything outside is removed. The page can print the first and last lines of the transcript to help you pick the times. Times are written as minute:second (16:40.5) and are times in the video, not on the timeline; three numbers such as 16:40:00 mean hours:minutes:seconds, and a time past the end of the video is refused. A time that falls inside a word moves to the nearest pause, looked for up to 0.9 seconds before it and 0.3 seconds after, so no word is clipped; the log says how many moved. A time with no pause near stays where it is.

Subtitles for the cut. When the video has a transcript, Rough Cut also writes subtitles that follow the cut timeline (<video>_cut.srt), to upload with the finished video: words that were cut away are left out and the others move to their time on the timeline. Correcting the text later rewrites them too. The .srt written by Transcribe follows the uncut video.

Hesitations and filler words arrive as candidates in a list with time, kind, confidence and the surrounding sentence. You can listen to each candidate, hear how it sounds with the cut, and change its tick. Confident ones arrive ticked, doubtful ones unticked; filler words always arrive unticked, because only you can tell which ones are superfluous. The Show choice above the list narrows it to what is to be cut, what is not, the uncertain ones or the non-speech sounds; looking through Not to be cut finds a cough or a throat being cleared that Davar was not sure of. A row whose tick you change stays in the list until you choose again.

Moving closer to the speaker. With one camera every cut makes the people jump. With Move closer to the speaker ticked, the timeline is framed as an editor with a second camera would: during a long answer the picture moves closer to the speaker (125% by default, toward the side they sit on), and in quick exchanges it stays on everyone. Inside a long answer the framing changes about every half minute, at the cut where most was removed, which hides the biggest jumps; the other cuts keep their framing. Who speaks is found from the transcript, and who sits where is taken from the speakers written on the Titles page (Name | Title | left); without them two people are assumed and the closer framing stays in the middle. On a 51-minute interview the framing changed 84 times. In Resolve keep Use sizing information ticked when importing the timeline, or the closer framings are lost. Name titles placed by Titles stay where they are.

How silences and hesitations are found

Silence. The audio is split into 10 millisecond slices and each slice's level is measured. The threshold is placed between the background noise and the speech level. Stretches that stay below it long enough are cut, leaving a little padding around words.

Hesitation. An "uh" differs from speech in three ways: it is voiced, its pitch stays flat and the mouth shape does not change. In normal speech those three never hold together for 0.3 seconds. Davar looks for stretches that fit this pattern and sorts them:

  • standing alone, with silence on both sides,
  • following a silence and running straight into a word ("uh so…"),
  • glued to the end of a word. These are usually part of a real word, so they are shown but not cut by default.

An "uh" rarely stops abruptly: it fades for another 0.1-0.3 seconds. The cut follows that fading tail to where the next sound begins, so no stub is left behind.

No AI model or internet connection is needed for this; it is computed from the audio. That is why Rough Cut also works on videos that have not been transcribed.

Throat clearing

Coughs and throat clearing standing between silences are found from the audio as above. A throat cleared in the middle of speech is harder: its level and pitch are those of a voice, and the transcript often writes a word over it. With Find throat clearing with the sound model ticked, Google's YAMNet sound model (Apache 2.0, 16 MB, downloaded once on first use and checked against its fingerprint) describes every moment of the audio, and a small classifier that comes with Davar (models/throat_clearing.json) picks about 25 likely places an hour. For each, the stretch offered for cutting lies between two dips of the level: taken out, it leaves the model hearing no throat clearing, and heard on its own it is one; of those the shortest is offered, so the words around it stay. They arrive unticked as "throat clearing? (listen)"; Show → Non-speech sounds lists them. The classifier was trained on one programme with 16 throat clearings marked by ear, so it will miss some and pick others; only you decide what is cut. It runs on your computer with onnxruntime, which comes with faster-whisper.

The rhythm of finished episodes

Every programme has a rhythm: how long a speaker is left silent between two phrases, and how long a pause may run before it is cut. Instead of guessing the three silence settings, Take the rhythm of finished episodes… under Cut silences measures them on episodes already finished and published, whether cut by hand or by Davar and checked by ear. A pause is a stretch below the silence threshold between two sounds; those of 0.2 seconds or more fall between phrases. A pause that is cut keeps the usual (median) length of those, two thirds of it after the speech and one third before, and a pause is cut only when it is longer than 95 in 100 pauses of the finished episodes. The boxes are set and the log shows the measurement of each episode; choose several to take their common rhythm. A hand-cut 18-minute episode gave 0.41 seconds between phrases and kept pauses up to 0.77 seconds, so: shortest silence 0.77 s, padding 0.12 s before a word and 0.24 s after. The idea comes from ffmpeg-skill (MIT).

Joins to listen to

A cut made in a silence is never heard, and one made at an "uh" glued to a word cuts into sound on purpose. The joins worth a listen are those where a cut goes through a word of the transcript, part of it kept and part of it gone, with sound right at the join: the word may be clipped. With Mark the joins to listen to (on by default) each of them gets a marker on the timeline, "Davar: listen to this join (word)", and the log lists them with their times on the timeline and in the video. A 50-minute talk had 22. The markers stay when Titles later adds names, topic titles or the logo.

Resolve does not read the markers of an FCPXML file, so the same markers are also written next to the timeline as <video>_cut_markers.edl. In Resolve, right-click the timeline in the Media Pool and choose Timelines > Import > Timeline Markers from EDL.

Repeated words and talk about the recording

With a transcript, Find repeated words and talk about the recording (on by default) looks for what an editor usually takes out by hand: a word or a few said twice in a row ("rahat konuşun rahat konuşun"), a word broken off and said again whole ("yayın yayından"), a sentence begun again after a pause or an "uh" with a different ending, and what is said to the crew rather than the viewer ("baştan alıyorum", "bunu keseriz", "kayıttayız"; in English "let me start again", "we'll cut that"). For a repeat the first try is offered; for talk to the crew, its sentence. When the words after "baştan alıyorum" were already said a little earlier, the whole abandoned take between is offered. Speech also repeats on purpose ("kaybede kaybede", "Her ikisi de …"), and a transcript cannot tell the two apart, so they arrive unticked as "repeated words? (listen)" and "talk about the recording? (listen)"; Show → Repeats and retakes lists them.

05 Multicam Edit

For a programme filmed with several cameras. The video chosen at the top is the main camera, usually the wide shot: its sound is the programme's sound and its picture shows whenever no other camera does. Add the other cameras' files and say what each shows (one speaker, or everyone); a camera split into several files is added as several. Then press Start (run Transcribe and Rough Cut first):

  • Each file is put in its place by its sound, as Audio places a separate recorder, so the camera's own microphone must have been on. A file whose sound does not match is left out and the log says so; a camera that starts late, stops early or has a gap leaves the main video on screen there.
  • Who speaks when comes from the transcript, and from the two microphones when each speaker wears one (then down to a reply of a second and a half). The log quotes the first words of each speaker, so a mix-up of who is who shows at once.
  • The edit cuts to the camera of whoever speaks 0.15 seconds before they begin, never before the one before has finished. A reply shorter than 1.5 seconds does not cut, no shot is shorter than 2.5 seconds, and everyone is shown for the first five seconds, the last three, an exchange too quick for its shots, and four seconds after twenty on one speaker. Every other such look away goes to the listener's camera instead, for two and a half seconds (every one of them when there is no wide shot); this can be switched off. The three lengths can be changed.

The cameras go onto the Rough Cut timeline on the track right above the video, picture only: the sound stays the main video's, and in Resolve deleting a camera's clip shows the main video again. Each clip ends at a join of the Rough Cut, so none runs on across a cut. The pictures of Visual Assets, the titles and the logo stay above them, and running Titles, Visual Assets or the logo again keeps them. Running Rough Cut again takes them off (its cuts change), and the log says to run Multicam Edit again. The closer framing of Rough Cut is taken off, as the cameras do that work. A camera whose picture is of another shape than the main video's (a phone's, say) would leave bands where the main video shows through: Fill the frame, on by default for each camera, enlarges it until none show, cutting off its edges; untick it to set the camera's Size yourself (100% shows the whole picture). The main video is never changed. A camera with another frame rate than the main video's is used, and the log asks you to check in Resolve that the lips move with the sound.

06 Content Analysis

Has an AI chat write the texts for YouTube: five title suggestions, a description, chapters, tags, a short summary and three to five candidate ranges for social clips. It needs no key and costs nothing, because you do the asking:

  1. Start writes a prompt (<video>_prompt.txt) and copies it. It holds the transcript with its times on the Rough Cut timeline, who says what (the speakers and their titles are taken from the Titles page), and the programme and channel names you give.
  2. Paste it into an AI chat (claude.ai, gemini.google.com, chatgpt.com) and send it. The transcript of a 45-minute talk is about 45,000 characters.
  3. Copy the whole answer, paste it into box 2 and press Write the texts. Davar checks it and writes <video>_youtube.txt, ready to copy into YouTube Studio.

Because the times are on the Rough Cut timeline, the chapters match the finished video. Davar puts the first chapter at 0:00 and drops chapters closer than ten seconds, as YouTube requires. For each social clip candidate the times in the uncut video are given too, which is what Social Clips takes. The transcript goes to the AI service you paste it into.

Asking an AI program straight away. With Claude Code (Anthropic's command-line program) or Codex (OpenAI's) installed on the computer, Ask straight away (on by default) skips the copying and pasting: Start hands the program the prompt, and its answer is written into box 2 and turned into the texts at once. It answers with your own Claude or ChatGPT subscription, so there is still no key and no fee beyond it; a long programme takes a few minutes. When both are installed, choose one beside the tick; Visual Assets asks the same one. Sign in once first: for Claude Code type claude in a terminal and then /login; for Codex type codex login. Davar runs Claude Code with none of its tools and Codex in its read-only sandbox, each in an empty folder and without keeping the conversation, so it can only read the prompt and write the answer; it is sent the same prompt you would paste into a chat. If it is not signed in or does not answer, the log says why and the prompt is copied as before. Codex has not been tried with Davar on a real answer yet.

07 Titles

Makes a lower third for a speaker's name and title: an accent stripe on the left, the name on top, the title below. It opens from the left in half a second and fades out at the end. The output is a video with a transparent background (ProRes 4444, lowerthird_<name>.mov); in Resolve you drag it onto the track above the video and need no further effect.

The size and frame rate come from the selected video; the duration and place (left, centre, right) can be set. The channel's colour, set under Logo and colour, is used for the name and topic titles, the kicker and cover of Social Clips and the band of the Publish thumbnail.

Write one person per line, as Name | Title. When people sit on different sides, give a name its own place after the title; the lines without one use the place chosen on the page. The place is on the screen, as the viewer sees it: whoever sits on the left of the picture gets left.

Jane Doe | Journalist | left
John Roe | Mayor | right

Placing the names on the timeline

With Place them on the timeline ticked, Davar also puts each name on the track above the video, a few seconds after that person first speaks:

  • Write the speakers in the order they first speak. Davar tells the voices apart by their colour and gives the first line the voice heard first, the second line the next new voice, and so on. This needs the transcript.
  • The names go into the Rough Cut timeline of the video (<video>_cut.fcpxml) when there is one; import it into Resolve again. Without one, a timeline of the whole video is written (<video>_titles.fcpxml).
  • The log shows the moment chosen for each name and the words spoken there, so a swap is easy to see. If two names are swapped, change the order of the lines.
  • To choose the moment yourself, add the time in the video to the line: Jane Doe | Journalist | 0:41. A place and a time can stand together, in either order: John Roe | Mayor | right | 0:41.
  • Running Rough Cut again keeps the names where they are.

The voices are told apart on your computer, with no extra download. It is made for a few people with clearly different voices; the moment a turn changes is known only to within a few seconds, which is why the name appears a little after the speaker starts.

Two microphones. When two people each wear a microphone recorded on one of the two channels of the camera, whoever speaks is much louder on their own microphone. Davar notices this by itself and then gives each word of the transcript to the louder microphone, so a turn is known to the word instead of to a few seconds; it is used here, for Move closer to the speaker and for Content Analysis. On two of our programmes it found the same speaker as the voices for 98 in 100 words, and put the changes of speaker where they are: once where the voices had placed one five seconds too early. With one microphone, the same sound on both channels or more than two people, the voices are used as before.

Topic titles

A lower third for the question or the subject being talked about: a white panel along the bottom of the picture, the programme's name on a red tab, a large headline, a red line under it (for the guest) and your logo on the right. It opens from the left, like the name titles, and stays 8 seconds by default.

Write one per line as time | headline, or press Take the chapters of Content Analysis to fill them from the on-screen titles the AI wrote for each chapter. The times are on the Rough Cut timeline; each title opens three seconds into its chapter and waits while a name title is on screen. A line of its own under the headline can be added: time | headline | line. The titles go onto the Rough Cut timeline next to the name titles, and making either again keeps the other.

The logo in a corner

In the Logo card, tick Put it in a corner of the picture and choose the corner (top right, top left, bottom right, bottom left) and the width of the logo. Davar draws it on a transparent picture of the size of the video and puts that on a track of its own above the video and the titles, from the start of the Rough Cut timeline to its end. Nothing is re-encoded: in Resolve the logo can still be moved, resized or switched off. Running Rough Cut or Titles again keeps it. The same logo file is used on the topic titles.

The look of the topic titles comes from a brand folder, .davar/brand in your home folder: Montserrat is used when its files (Montserrat-ExtraBold.ttf, -Bold, -SemiBold) are in its fonts folder, a common bold font otherwise. The logo is any picture you choose on the page.

08 Visual Assets

Pictures cut in where the talk names something that can be shown. It works in two steps, from the transcript (run Transcribe first; with a Rough Cut timeline the times follow it):

  1. Suggestions. The first Start asks Claude Code (or, without it, copies a prompt for an AI chat, whose answer is pasted back) which places, people, documents, institutions and events named in the talk a picture could show (or Codex, as chosen on the Content Analysis page): 8 to 25 of them, never the speakers in the studio. Each comes with the words in which it is named and what to look for, and its time is moved to the moment those words begin. They are listed in <video>_visuals.txt, and a folder is made for the pictures, <video>_visuals.
  2. Pictures. Put a picture or a piece of footage for a suggestion in that folder, named by its number: 03.jpg, 03 town hall.png or 03.mp4 (jpg, png, webp, tif, bmp; mp4, mov, mkv, avi, m4v, mts, webm). The lines on the page, time | picture | subject, can also name any picture file or be added by hand. Start makes a clip of each picture that is there and puts them on the Rough Cut timeline (or on a timeline of the whole video when it has none) at their times; the others wait for their picture.

Each picture is shown for five seconds (three to twelve), slowly growing to 106%: full screen, cut in and out; or, under Place, in a white-edged box that fades in and out on the listener's side (found from who speaks and where each sits, as Social Clips finds it), so that the speaker is still seen, or in a box always on the right or the left. A box is a transparent ProRes 4444 clip, as the titles are. A picture of another shape, such as a portrait document or a transparent logo, is shown whole over a blurred, darkened copy of itself. The clips (visual_01_….mp4, H.264, of the video's size and frame rate) go on the track right above the video, so the names, the topic titles and the logo stay above them; running Rough Cut or Titles again keeps them, and placing the pictures again replaces only them. Footage is not re-encoded: it goes on the same track as it is, from its start and without its sound, for as long as a picture is shown (or less, when it is shorter). Picture-in-picture and PDF pages are not done yet.

09 Social Clips

Cuts the time range you give from a landscape video into a 1080x1920 vertical video: the speaker's frame over a blurred background, a short kicker and up to two headline lines on top. When Multicam Edit has placed other cameras on the Rough Cut timeline, the vertical frame is taken from them while they are shown, cut around their largest face, so the close-ups stay sharp. Optionally it adds subtitles and a 2.5 second intro cover: the clip's best frame (sharp, the speaker's eyes open, chosen as Publish chooses its frames), cut vertically around whoever speaks the most in it, darkened towards the bottom into the channel's colour, with the kicker and the headline low on it. Loudness is brought to the social media level (-14 LUFS).

Subtitles use the transcript when there is one; otherwise the chosen range is transcribed on the spot. They are burned in and cannot be corrected afterwards, so fix the transcript first.

Applying the Rough Cut. When the video has a Rough Cut timeline, Apply the Rough Cut's cuts (on by default) leaves the silences, hesitations and trimmed parts it cut out of the clip as well, and the subtitles follow. The times you give stay times in the video, as Content Analysis lists them for each social clip candidate. On a one-minute range of a talk, 22 cuts made the clip 11 seconds shorter. At each join the sound fades out and in over 8 milliseconds, so a cut in the middle of a sound does not click. The start and the end you give move to the nearest pause in the same way as the trims of Rough Cut, and the log shows the range used.

The candidates of Content Analysis. Content Analysis suggests three to five social clips and, for each, the headline to write on it: the most striking words said in the clip, in quotation marks and capitals, on two lines. Take the candidates lists them on this page. An AI picks a range from transcript lines of about twenty seconds, so their ranges are first moved to whole sentences of the transcript: the start back to the beginning of its sentence (up to four seconds) or on to the next one, the end on to the end of its sentence (up to six seconds) or back to the one before. Tick the ones to make and press Start: they are made one after the other as Clip 1 - <headline>.mp4 and so on, with their own headlines and the kicker, framing and extras set on this page. Fill in puts one candidate in the boxes instead, to change its range or headline and make it alone.

Following the speaker. A vertical frame shows one of two people sitting side by side, and the centre shows half of each. With Follow whoever speaks ticked, the frame cuts to whoever is speaking, as a second camera would: who speaks when is taken from the transcript (word by word from the two microphones, when each has one), and where each of them sits from the picture, since whoever speaks moves more than whoever listens. The cut comes a quarter of a second before the new speaker begins; a shot shorter than a second and a half at the start or end of a clip is not made. When the picture does not tell where they sit, the slider's framing is used and the log says so. It needs the transcript, and is meant for two people filmed together in one wide shot.

10 Publish

Everything YouTube Studio asks for, from the texts of Content Analysis (run it first):

  • The thumbnail (<video>_thumbnail.jpg, 1280x720 and under 2 MB). Davar looks for sharp, still frames around the moments Content Analysis chose for the thumbnail and a little after the start of each chapter and clip, where every face is seen, sharp and with its eyes open, and shows the six best; the best is taken unless you click another. Faces are found with YuNet (OpenCV Zoo, MIT licence), a 230 KB model downloaded once, on first use, and checked against its fingerprint; without it the frames are judged without faces. The text, one of Content Analysis's three suggestions or your own, stands low in the picture, in capitals, on the side where it hides no face (narrower if need be); its last line is on a band of the colour set on the Titles page, and the logo chosen there goes in the top corner.
  • The upload sheet (<video>_publish.txt): the title you choose, the description with its chapters in one block to paste as it is, the tags, and where the subtitle file and the thumbnail are. The subtitles are those of the Rough Cut timeline when the texts follow it. It is checked against YouTube's limits: a title of at most 100 characters, a description of at most 5000 without < or >, tags of at most 500 characters together, at least three chapters with the first at 0:00.

Nothing is uploaded: that would need a key of a Google account. Content Analysis now also asks for the three thumbnail texts; with texts written before, the on-screen titles of the chapters are offered instead.

Full Process

Runs the workflows you tick one after the other, unattended: choose the video, press Start, and come back to the timeline, the YouTube texts, the titles and the clips. Each step uses the settings on its own page, so set them there once; Davar remembers them. By default it runs Transcribe, Rough Cut, Multicam Edit, Content Analysis, Visual Assets, Titles, Social Clips and Publish; Audio and Picture can be ticked too, and the steps after them then work on the video they write.

Nothing is asked while it runs:

  • Rough Cut cuts only the candidates it is sure of, as with Show me the candidates before cutting unticked. The unsure ones stay in; open the Rough Cut page afterwards to go through them.
  • Content Analysis asks Claude Code or Codex when one is installed. Without them the prompt is only copied, so the Titles get no chapters and Social Clips no candidates.
  • Multicam Edit places the other cameras set on its page for this video; without any it is skipped.
  • Visual Assets asks Claude Code or Codex for the suggestions the first time and places the pictures already in their folder; without either it is skipped.
  • Titles makes the names written on its page, takes the chapters Content Analysis has just written as topic titles (when Topic titles is ticked there) and puts the logo in its corner.
  • Social Clips makes every candidate of Content Analysis, with the kicker, framing and extras set on its page.
  • Publish draws the thumbnail on the best frame with the first suggested text and writes the upload sheet with the first suggested title; choose others on its page afterwards and press Start again.

A step that cannot run (no transcript yet, nothing set on its page) is skipped and the others go on. When Audio, Picture or Transcribe fails, the rest stop, as they work on what it makes. Stop after this step ends the process once the step under way is done. Each step's status is shown beside it, the log keeps what each did, and a summary comes at the end.

Limits

  • Only clear hesitations of at least 0.3 seconds are cut by default. Shorter ones are offered as suggestions when the transcript also heard them.
  • Filler-word timing comes from the transcript and is approximate; use "Listen with the cut" before cutting them.
  • On recordings with a noisy background (street, wind, music) silence detection gets weaker. Davar warns when that happens.
  • On recordings with a variable frame rate (some phone and screen recordings) cut points may drift in Resolve. Davar warns when that happens.
  • Telling speakers apart works on voices that differ clearly. Two similar voices, people talking over each other or music under the speech can put a name in the wrong place; the log shows the words at each place so you can check.
  • Cuts are automatic; watching them before you publish is your job.

Development

The computational parts (silence and hesitation detection, candidate selection, subtitles, audio matching, dictionary, transcript editing, lower-third drawing, telling speakers apart, placing names on the timeline) and the completeness of the translations are tested with synthetic data; neither ffmpeg nor a video is needed.

python -m unittest discover tests

Adding a workflow. In davar_gui.pyw write a class derived from Page and add it to the PAGES list; the video and output folder pickers, the Start button, the progress bar and the log come for free. List the names of its settings in general (remembered as last used) or per_video (remembered with the video) and they are kept between sessions; see memory.py.

Adding a language. Source strings are English. Create lang_<code>.py with a TRANSLATIONS dict (see lang_tr.py) and add the language to LANGUAGES in i18n.py. A test fails if a string used in the code has no Turkish translation.

Changes

What changed in each version is listed in CHANGELOG.md.

Contributing

Bug reports and suggestions are welcome as issues. Trials with different speakers, languages and recording conditions are especially valuable.

License

MIT

About

AI-assisted pre-edit helper for DaVinci Resolve (free version): cuts silences, hesitations and throat clearing, steadies phone shots, transcribes, writes subtitles and YouTube texts that match the cut, places lower thirds, makes vertical clips. Runs on your computer.

Topics

Resources

Stars

64 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages