[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-117259":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":16,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":10,"trendingCount":15,"starSnapshotCount":15,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},117259,"davar","ramazansubasi\u002Fdavar","ramazansubasi","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.","",null,"Python",52,9,51,0,1,43.6,"MIT License",false,"main",true,[23,24,25,26,27,28,29,30,31],"davinci-resolve-tools","fcpxml","jump-cuts","resolve","subtitles","video-editing","whisper","yamnet","youtube","2026-11-21 07:30:35","2026-11-22 11:26:45","# Davar\n\nA pre-edit helper for DaVinci Resolve. It takes over the tedious manual work on talking-head videos: syncing audio, cutting silences and \"uh \u002F um\" hesitations, transcribing, making lower thirds and vertical clips.\n\n*Türkçe: [README.tr.md](README.tr.md)*\n\n> **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.\n\nThe name nods to two things: **Da**Vinci **R**esolve, 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.\n\n![The Davar window](docs\u002Fscreenshot.png)\n\n## Workflows\n\nSix of the ten workflows work; four are planned.\n\n| No | Workflow | Status | What it does |\n|---|---|---|---|\n| 01 | Audio | works | Puts separately recorded audio in its place in the video and sets the loudness for YouTube |\n| 02 | Picture | works | Reframes the video to 16:9 and locks a tripod shot so the background stands still |\n| 03 | Transcribe | works | Transcribes the speech once with word-level timing and saves it; writes subtitles (`.srt`) and text (`.txt`) |\n| 04 | Rough Cut | works | Finds silences, \"uh \u002F um\" hesitations and filler words, lets you review the candidates, writes a Resolve timeline (`.fcpxml`) |\n| 05 | Multicam Edit | planned | Picks the camera of whoever is speaking |\n| 06 | Content Analysis | works | Has an AI chat of your choice write the YouTube texts: titles, description with chapters, tags, social clip candidates |\n| 07 | Titles | works | Makes a transparent lower third with a soft entrance and exit for a speaker's name and title, and places it on the timeline where that speaker first speaks |\n| 08 | Visual Assets | planned | Places photos and documents to cut in |\n| 09 | Social Clips | works | Cuts a chosen range into a vertical Reels \u002F Shorts video with headline, subtitles and cover |\n| 10 | Publish | planned | Thumbnail text and picture |\n\nNo 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.\n\nThe interface is available in English and Turkish; pick the language at the top left of the window.\n\n## Installation\n\nYou need:\n\n- **Python 3.10** or newer\n- **ffmpeg** (`ffmpeg` and `ffprobe` on your PATH)\n- **numpy** and **Pillow**\n- **faster-whisper** (for Transcribe and automatic subtitles)\n- **OpenCV** (`opencv-python`, for locking the frame in Picture)\n\n```bash\npip install -r requirements.txt\n```\n\nAn easy way to get ffmpeg on Windows:\n\n```bash\nwinget install Gyan.FFmpeg\n```\n\n## Usage\n\n### With the window\n\nDouble-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.\n\n**Settings are remembered.** Nothing has to be entered twice, and there is nothing to save or open:\n\n- General settings (thresholds, paddings, filler words, ticked options, speaker names) come back as you last left them, for every video.\n- 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.\n- Davar opens with the video and the page you last worked on.\n- A video Davar wrote from another one (`talk_picture.mp4` from `talk.mp4`) starts with the settings of its source.\n- **Back to defaults** on each page puts the general settings back to what Davar ships with.\n\nThey are kept in `.davar\u002Fsettings.json` in your home folder, on this computer only; a video that is renamed or moved starts fresh.\n\nOutside Windows:\n\n```bash\npython davar_gui.pyw\n```\n\n### From the command line\n\nEvery workflow is also a script:\n\n```bash\npython audio.py \"video.mp4\" --audio \"lavalier.wav\"\n```\n\n```bash\npython picture.py \"video.mp4\" --position 100\n```\n\n```bash\npython transcript.py \"video.mp4\" --srt --text\n```\n\n```bash\npython roughcut.py \"video.mp4\" --from 0:07 --to 51:19 --remove \"50:46-51:03\" --fillers \"you know, like\"\n```\n\n```bash\npython titles.py \"Jane Doe\" \"Journalist\" --video \"video.mp4\"\npython content.py \"video.mp4\"                     # writes video_prompt.txt\npython content.py \"video.mp4\" --answer answer.txt # writes video_youtube.txt\n```\n\n```bash\npython clips.py \"video.mp4\" 13:06 13:56 --headline \"TRAFFIC IN TUZLA\" --subtitles --cover\n```\n\nRun any of them with `--help` for all options.\n\n### Importing into Resolve\n\n1. Open a project in Resolve.\n2. **File → Import → Timeline…** and choose the `\u003Cvideo>_cut.fcpxml` written next to the video.\n3. Press **OK** in the dialog. The trimmed timeline opens on the Edit page.\n\n## 01 Audio\n\nPuts 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.\n\n- Each recording's level is matched to the video's own audio, and it replaces the video's audio there.\n- Audio that does not occur in the video is not placed; the report says which file was rejected.\n- The whole track is brought to YouTube loudness (-14 LUFS). Optionally the speakers' levels are balanced and background noise is reduced.\n\nThe picture is not re-encoded; the result is written as `\u003Cvideo>_audio.mp4`. Do the next steps with that new video.\n\n## 02 Picture\n\nFor footage shot on a phone. It does two things, each of which can be switched off.\n\n**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.\n\n**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.\n\n- 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.\n- The blur of the moment the focus slips cannot be repaired; only the movement is.\n- Locking reads every frame twice and writes the video anew. Expect one to two times the length of the video.\n- A variable frame rate comes out constant.\n\nThe audio is copied untouched; the result is written as `\u003Cvideo>_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.\n\n## 03 Transcribe\n\nTranscribes the speech word by word with timing and saves it next to the video as `\u003Cvideo>.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`).\n\nTranscription runs on your computer with the Whisper model; nothing is sent to the internet (the model is downloaded once on first use). It gets names and numbers wrong; check before publishing.\n\n### Editing the text and the personal dictionary\n\nThe **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.\n\nDavar offers to add single-word corrections to your **personal dictionary**, the file `.davar\u002Fdictionary.txt` in your home folder. Each line reads `wrong = right`:\n\n```\ntuzda = Tuzla\nAkbörse = Akköse\ntop sen = TÜPSAN\n```\n\nThe 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`).\n\n## 04 Rough Cut\n\n| What it finds | How |\n|---|---|\n| Silences | From the audio level. The threshold is chosen from the recording's own background noise. Cut directly. |\n| \"Uh \u002F um\" hesitations | From the audio itself (flat pitch, steady sound). Checked against the transcript when there is one. |\n| Filler words | From your list (\"you know, like\"), searched in the transcript. |\n| Coughs and other non-speech sounds | Short bursts standing between silences. With a transcript, a burst no word was written for is non-speech. |\n\n**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.\n\n**Subtitles for the cut.** When the video has a transcript, Rough Cut also writes subtitles that follow the cut timeline (`\u003Cvideo>_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.\n\nHesitations 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.\n\n**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.\n\n### How silences and hesitations are found\n\n**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.\n\n**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:\n\n- standing alone, with silence on both sides,\n- following a silence and running straight into a word (\"uh so…\"),\n- glued to the *end* of a word. These are usually part of a real word, so they are shown but not cut by default.\n\nAn \"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.\n\nNo 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.\n\n### Throat clearing\n\nCoughs 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](https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Fmodels\u002Ftree\u002Fmaster\u002Fresearch\u002Faudioset\u002Fyamnet) 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\u002Fthroat_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.\n\n## 06 Content Analysis\n\nHas 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:\n\n1. **Start** writes a prompt (`\u003Cvideo>_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.\n2. 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.\n3. Copy the whole answer, paste it into box 2 and press **Write the texts**. Davar checks it and writes `\u003Cvideo>_youtube.txt`, ready to copy into YouTube Studio.\n\nBecause 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.\n\n## 07 Titles\n\nMakes 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_\u003Cname>.mov`); in Resolve you drag it onto the track above the video and need no further effect.\n\nThe size and frame rate come from the selected video; the duration, place (left, centre, right) and accent colour can be set.\n\nWrite 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`.\n\n```\nJane Doe | Journalist | left\nJohn Roe | Mayor | right\n```\n\n### Placing the names on the timeline\n\nWith **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:\n\n- 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.\n- The names go into the Rough Cut timeline of the video (`\u003Cvideo>_cut.fcpxml`) when there is one; import it into Resolve again. Without one, a timeline of the whole video is written (`\u003Cvideo>_titles.fcpxml`).\n- 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.\n- 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`.\n- Running Rough Cut again keeps the names where they are.\n\nThe 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.\n\n## 09 Social Clips\n\nCuts 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. Optionally it adds subtitles and a 2.5 second intro cover. Loudness is brought to the social media level (-14 LUFS).\n\nSubtitles 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.\n\n**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.\n\n## Limits\n\n- 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.\n- Filler-word timing comes from the transcript and is approximate; use \"Listen with the cut\" before cutting them.\n- On recordings with a noisy background (street, wind, music) silence detection gets weaker. Davar warns when that happens.\n- On recordings with a variable frame rate (some phone and screen recordings) cut points may drift in Resolve. Davar warns when that happens.\n- 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.\n- Cuts are automatic; watching them before you publish is your job.\n\n## Development\n\nThe 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.\n\n```bash\npython -m unittest discover tests\n```\n\n**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`. Planned workflows live in the same file as stubs derived from `Planned`.\n\n**Adding a language.** Source strings are English. Create `lang_\u003Ccode>.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.\n\n## Changes\n\nWhat changed in each version is listed in [CHANGELOG.md](CHANGELOG.md).\n\n## Contributing\n\nBug reports and suggestions are welcome as issues. Trials with different speakers, languages and recording conditions are especially valuable.\n\n## License\n\n[MIT](LICENSE)\n",2,"2026-11-24 04:55:11","CREATED_QUERY"]