Make videos on the computer you already own. FreeVideo runs MiniMax H3 in as little as 8 GB of VRAM and 16 GB of RAM, and adapts its acceleration path to your hardware.
Tour cards: add sound to a video and generate a picture from sound, with segment buttons that...
Bowen Xued7efa032eaf1
diff --git a/MANIFEST.in b/MANIFEST.inindex f24d339..e6ec583 100644--- a/MANIFEST.in+++ b/MANIFEST.in@@ -82,5 +82,17 @@ include web/assets/tour/cb-music.mp4include web/assets/tour/cb-music.webpinclude web/assets/tour/cb-source.mp4include web/assets/tour/cb-source.webp+include web/assets/tour/ca-music.mp4+include web/assets/tour/ca-music.webp+include web/assets/tour/ca-music-wave.webp+include web/assets/tour/ca-dub.mp4+include web/assets/tour/ca-dub.webp+include web/assets/tour/ca-dub-wave.webp+include web/assets/tour/ca-record.mp4+include web/assets/tour/ca-record.webp+include web/assets/tour/ca-record-wave.webp+include web/assets/tour/cc-speech.mp4+include web/assets/tour/cc-speech.webp+include web/assets/tour/cc-speech-wave.webpinclude web/assets/tour/c10-source.webpinclude web/assets/tour/fox-sheet.webpdiff --git a/freevideo_source_bootstrap.py b/freevideo_source_bootstrap.pyindex 2cfd06a..11d2311 100644--- a/freevideo_source_bootstrap.py+++ b/freevideo_source_bootstrap.py@@ -119,6 +119,18 @@ TOUR_FILES = frozenset(('web/assets/tour/cb-music.webp','web/assets/tour/cb-source.mp4','web/assets/tour/cb-source.webp',+ 'web/assets/tour/ca-music.mp4',+ 'web/assets/tour/ca-music.webp',+ 'web/assets/tour/ca-music-wave.webp',+ 'web/assets/tour/ca-dub.mp4',+ 'web/assets/tour/ca-dub.webp',+ 'web/assets/tour/ca-dub-wave.webp',+ 'web/assets/tour/ca-record.mp4',+ 'web/assets/tour/ca-record.webp',+ 'web/assets/tour/ca-record-wave.webp',+ 'web/assets/tour/cc-speech.mp4',+ 'web/assets/tour/cc-speech.webp',+ 'web/assets/tour/cc-speech-wave.webp','web/assets/tour/c10-source.webp','web/assets/tour/fox-sheet.webp',))diff --git a/web/assets/tour/ca-dub-wave.webp b/web/assets/tour/ca-dub-wave.webpnew file mode 100644index 0000000..addda33Binary files /dev/null and b/web/assets/tour/ca-dub-wave.webp differdiff --git a/web/assets/tour/ca-dub.mp4 b/web/assets/tour/ca-dub.mp4new file mode 100644index 0000000..0ea4314Binary files /dev/null and b/web/assets/tour/ca-dub.mp4 differdiff --git a/web/assets/tour/ca-dub.webp b/web/assets/tour/ca-dub.webpnew file mode 100644index 0000000..1537278Binary files /dev/null and b/web/assets/tour/ca-dub.webp differdiff --git a/web/assets/tour/ca-music-wave.webp b/web/assets/tour/ca-music-wave.webpnew file mode 100644index 0000000..ec163edBinary files /dev/null and b/web/assets/tour/ca-music-wave.webp differdiff --git a/web/assets/tour/ca-music.mp4 b/web/assets/tour/ca-music.mp4new file mode 100644index 0000000..9757128Binary files /dev/null and b/web/assets/tour/ca-music.mp4 differdiff --git a/web/assets/tour/ca-music.webp b/web/assets/tour/ca-music.webpnew file mode 100644index 0000000..47f6551Binary files /dev/null and b/web/assets/tour/ca-music.webp differdiff --git a/web/assets/tour/ca-record-wave.webp b/web/assets/tour/ca-record-wave.webpnew file mode 100644index 0000000..8715eacBinary files /dev/null and b/web/assets/tour/ca-record-wave.webp differdiff --git a/web/assets/tour/ca-record.mp4 b/web/assets/tour/ca-record.mp4new file mode 100644index 0000000..b79d944Binary files /dev/null and b/web/assets/tour/ca-record.mp4 differdiff --git a/web/assets/tour/ca-record.webp b/web/assets/tour/ca-record.webpnew file mode 100644index 0000000..840b260Binary files /dev/null and b/web/assets/tour/ca-record.webp differdiff --git a/web/assets/tour/cc-speech-wave.webp b/web/assets/tour/cc-speech-wave.webpnew file mode 100644index 0000000..feb46b1Binary files /dev/null and b/web/assets/tour/cc-speech-wave.webp differdiff --git a/web/assets/tour/cc-speech.mp4 b/web/assets/tour/cc-speech.mp4new file mode 100644index 0000000..cc0fb03Binary files /dev/null and b/web/assets/tour/cc-speech.mp4 differdiff --git a/web/assets/tour/cc-speech.webp b/web/assets/tour/cc-speech.webpnew file mode 100644index 0000000..f78b0a6Binary files /dev/null and b/web/assets/tour/cc-speech.webp differdiff --git a/web/feature_tour.js b/web/feature_tour.jsindex a2c57a2..4208cbe 100644--- a/web/feature_tour.js+++ b/web/feature_tour.js@@ -135,11 +135,12 @@ export async function openFeatureTour({api = contextFor()?.api, cn = contextFor(}title.textContent = card.title[lang];content.append(el('p', 'fv-tour-line', card.line[lang]));+ let waveImage = null;const pair = el('div', 'fv-tour-pair'), input = el('div', 'fv-tour-input'), output = el('div', 'fv-tour-output');card.input.forEach(item => {if (item.text) input.append(el('p', null, item.text[lang]));else if (item.mp4) input.append(media(videos.at(-1)));- else { const image = el('img'); image.src = asset(item.src); image.alt = ''; input.append(image); }+ else { const image = el('img'); image.src = asset(item.src); image.alt = ''; input.append(image); waveImage = image; }});const arrow = el('span', 'fv-tour-arrow'); arrow.setAttribute('aria-hidden', 'true');// A thin CSS line and two strokes keep this decorative arrow out of the reading order.@@ -154,7 +155,8 @@ export async function openFeatureTour({api = contextFor()?.api, cn = contextFor(picker.setAttribute('role', 'group');const show = (i, chosen) => {stop();- videos.forEach((video, j) => { video.hidden = j !== i; segments[j]?.setAttribute('aria-pressed', String(j === i)); if (j !== i) video.muted = true; });+ if (waveImage && card.sequence[i].wave) waveImage.src = asset(card.sequence[i].wave);+ videos.forEach((video, j) => { video.hidden = j !== i; segments[j]?.setAttribute('aria-pressed', String(j === i && (chosen || videos.length > 1))); if (j !== i) video.muted = true; });const video = videos[i]; video.currentTime = 0; video.muted = !chosen; video.loop = chosen; playing = [video]; play();};videos.forEach((video, i) => {@@ -167,7 +169,7 @@ export async function openFeatureTour({api = contextFor()?.api, cn = contextFor(segment.onclick = () => show(i, true); segments[i] = segment; picker.append(segment);});if (segments.length) output.append(picker);- videos.forEach((video, i) => { video.hidden = i !== 0; segments[i]?.setAttribute('aria-pressed', String(i === 0)); });+ videos.forEach((video, i) => { video.hidden = i !== 0; segments[i]?.setAttribute('aria-pressed', String(i === 0 && videos.length > 1)); });playing = [videos[0]];} else output.append(media(videos[0], card.previewRange));pair.append(input, arrow, output); content.append(pair);diff --git a/web/feature_tour_content.js b/web/feature_tour_content.jsindex 5b45ccf..539611b 100644--- a/web/feature_tour_content.js+++ b/web/feature_tour_content.js@@ -27,6 +27,12 @@ export const FEATURE_TOUR = [card('separate-sound', copy('Separate and replace sound', '分离与替换声音'), copy('Split the sound into dialogue, music and ambience, then replace each one.', '把声音分成人声、音乐和环境声,再分别替换。'),[{src: 'cb-source.webp'}], clip('cb-source'), {status: 'pending-assets', view: 'editor'},{trigger: 'editor', added: '0.5.0', goto: ['audio-track-button'], sequence: [['source', 'Original', '原声'], ['dialogue', 'Dialogue', '人声'], ['music', 'Music', '音乐'], ['ambience', 'Ambience', '环境声']].map(([name, en, zh]) => ({...clip(`cb-${name}`), label: copy(en, zh)}))}),+ card('add-sound', copy('Add sound to a video', '给视频加声音'), copy('Drag a range on the sound track and add music, a voice-over or a recording.', '在声音轨上拖一段,加配乐、配音,或录一段声音。'),+ [{src: 'ca-music-wave.webp'}], clip('ca-music'), {status: 'pending-assets', view: 'editor'},+ {trigger: 'editor', added: '0.5.0', goto: ['audio-a2-track'], sequence: [['music', 'Music', '配乐'], ['dub', 'Voice-over', '配音'], ['record', 'Recording', '录音']].map(([name, en, zh]) => ({...clip(`ca-${name}`), wave: `ca-${name}-wave.webp`, label: copy(en, zh)}))}),+ card('sound-to-picture', copy('Generate a picture from sound', '按声音生成画面'), copy('Drag an empty range on the video track above a sound, and the picture follows it.', '在有声音的区间上方的视频轨拖出一段空白,画面随声音生成。'),+ [{src: 'cc-speech-wave.webp'}], clip('cc-speech'), {status: 'pending-assets', view: 'editor'},+ {trigger: 'editor', added: '0.5.0', goto: ['video-empty-range'], sequence: [{...clip('cc-speech'), label: copy('Play with sound', '播放声音')}]}),card('extend', copy('Extend', '接着生成'), copy('Continue from where the last clip ends.', '从上一段的结尾接着生成下一段。'),[{src: 'c6-s1.webp'}], clip('c6-s1'), {status: 'pending-assets', view: 'editor'}, {trigger: 'editor', previewRange: [2, 8]}),card('two-pass', copy('Two-pass', '二次采样'), copy('The first pass sets the composition; the second adds detail.', '第一遍定构图,第二遍补细节。'),