Spaces:
Running
Running
Download index.html from Ghongha007/video-keyframes: direct link, hf CLI and curl.
- Browser
- Download file 4.97 kB
-
https://huggingface.co/spaces/Ghongha007/video-keyframes/resolve/main/index.html
- Command line
-
hf download hf://spaces/Ghongha007/video-keyframes/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Ghongha007/video-keyframes/resolve/main/index.html
4.97 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>video-keyframes: sharp frames for reverse image search</title> | |
| <meta name="description" content="Pull the sharpest frame from each scene of a video, with timestamps, ready for reverse image search. Runs in your browser; the video is not uploaded."> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <main> | |
| <header> | |
| <p class="eyebrow">OSINT JOURNO · verification tool</p> | |
| <h1>video-keyframes</h1> | |
| <p class="lede">Drop in a video and get the <b>sharpest frame from each scene</b>, with its timestamp, ready for | |
| reverse image search. Earlier copies of a clip often turn up when you search its key frames, which can show that | |
| footage is older than claimed or comes from somewhere else.</p> | |
| <p class="private"><b>Your video stays on your computer.</b> It is read by your browser's own video player in this | |
| tab and not uploaded anywhere. Only if you choose to search a frame does that frame go to the search engine you | |
| pick.</p> | |
| </header> | |
| <section class="grid"> | |
| <div class="panel"> | |
| <label class="drop" id="drop"> | |
| <input type="file" id="file" accept="video/*"> | |
| <span class="drop-title">Choose a video</span> | |
| <span class="drop-sub">or drop it here · any format your browser can play (MP4/H.264 and WebM almost everywhere)</span> | |
| </label> | |
| <p class="note">No video to hand? <button type="button" id="sample">Use the sample</button> (a short slideshow of | |
| OSINT Expo screenshots).</p> | |
| <fieldset> | |
| <legend>Find frames</legend> | |
| <label><input type="radio" name="mode" value="scenes" checked> At scene changes</label> | |
| <label class="range">Sensitivity <input type="range" id="sens" min="1" max="10" value="5"> <output id="sensOut">5</output></label> | |
| <label><input type="radio" name="mode" value="every"> Every <input type="number" id="every" min="0.5" max="600" step="0.5" value="5"> seconds</label> | |
| </fieldset> | |
| <div class="row"> | |
| <button class="primary" type="button" id="go" disabled>Find keyframes</button> | |
| <button type="button" id="stop" hidden>Stop</button> | |
| </div> | |
| <progress id="prog" max="1" value="0" hidden></progress> | |
| <p id="status" class="status" role="status">Choose a video to start.</p> | |
| <p id="info" class="note"></p> | |
| </div> | |
| <div class="panel"> | |
| <video id="video" controls muted playsinline preload="auto"></video> | |
| <p class="note">Tip: pause on any moment and press <b>Grab this frame</b> to add it by hand.</p> | |
| <div class="row"><button type="button" id="grab" disabled>Grab this frame</button></div> | |
| </div> | |
| </section> | |
| <section id="out" hidden> | |
| <div class="row between"> | |
| <h2 id="count">Keyframes</h2> | |
| <div class="row"> | |
| <button type="button" id="zip">Download all (ZIP of PNGs)</button> | |
| <button type="button" id="clear">Clear</button> | |
| </div> | |
| </div> | |
| <p class="note">Click a frame to view it at full size. <b>Copy</b> puts the full-resolution frame on your clipboard, | |
| to paste into a search engine; the search links open the engine's own upload page, and uploading there sends the | |
| frame to that company.</p> | |
| <div id="frames" class="frames"></div> | |
| </section> | |
| <section class="panel about"> | |
| <h2>How it works, and its limits</h2> | |
| <ul> | |
| <li>The tool samples the video every fraction of a second at low resolution and measures how much each sample | |
| differs from the one before. A large jump marks a new scene. From the first few samples of each scene it keeps | |
| the sharpest (the highest variance of the Laplacian, a standard focus measure), avoiding almost black or white | |
| frames where possible, then captures that moment at full resolution. Up to 200 frames are kept at a time.</li> | |
| <li>Timestamps are the time in the file, accurate to the sampling step. Slow fades, camera pans and dark scenes | |
| can be missed or over-counted: adjust the sensitivity, use "every N seconds", or grab frames by hand.</li> | |
| <li>The browser can only open formats it can play. If a file won't load, convert it to MP4 (H.264) first.</li> | |
| <li>A match in a reverse image search is a lead, not proof: check the earliest version and its source. To see | |
| what a video file says about itself, try <a href="https://huggingface.co/spaces/Ghongha007/aitrace">aitrace</a>.</li> | |
| </ul> | |
| </section> | |
| <footer> | |
| Open source: <a href="https://github.com/Ghongha007/video-keyframes">github.com/Ghongha007/video-keyframes</a> (MIT). | |
| Made by <a href="https://huggingface.co/OSINT-JOURNO">OSINT JOURNO</a>. | |
| </footer> | |
| </main> | |
| <dialog id="viewer"><img id="big" alt=""><form method="dialog"><button>Close</button></form></dialog> | |
| <script src="core.js"></script> | |
| <script src="app.js"></script> | |
| </body> | |
| </html> | |