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.
Agent: multi-shot films write no per-shot music by default
Bowen Xue08835534b316
diff --git a/freevideo_engine/agent/drama.py b/freevideo_engine/agent/drama.pyindex e47f12b..a34f83e 100644--- a/freevideo_engine/agent/drama.py+++ b/freevideo_engine/agent/drama.py@@ -45,7 +45,6 @@ EXAMPLE = {'lines': [{'who': 'lin', 'line': '再见了。', 'how': 'says softly'}],'sound': 'The hum of the subway, rain tapping on glass.'},],- 'music': 'A sparse, slow piano figure over soft sustained strings.','review': {'min_score': 7, 'retakes': 1, 'frames': 6},'transition': 'crossfade', 'transition_seconds': .4,}@@ -258,7 +257,8 @@ def prompt(play, shot):scene = ' '.join(shot.get(k) or '' for k in ('framing', 'action', 'camera')) + ' ' + (play.get('style') or '')parts.append('No subtitles or captions.' if SHOWN_TEXT.search(scene) else 'No subtitles, no on-screen text.')sound = shot.get('sound') or 'Natural ambience of the scene.'- music = shot.get('music') or play.get('music') or 'N/A'+ # Only a shot's own music is written; a score for the whole film is imported and laid on the sound track.+ music = shot.get('music') or 'N/A'return ('integrated_multimodal_description: ' + ' '.join(p for p in parts if p) +'\n\noverall_soundscape: ' + sound + '\n\nnon_diegetic_music: ' + music)diff --git a/freevideo_engine/agent/guide.py b/freevideo_engine/agent/guide.pyindex d38780f..1ac71bd 100644--- a/freevideo_engine/agent/guide.py+++ b/freevideo_engine/agent/guide.py@@ -52,7 +52,21 @@ GUIDE = {],'sound': ['overall_soundscape: 1-4 sentences of ambience, action sounds and breaths; N/A only for silence.',- 'non_diegetic_music: 1-3 sentences of instruments, tempo and dynamics, or N/A.',+ 'non_diegetic_music: 1-3 sentences of instruments, tempo and dynamics, or N/A. By default a long video or a '+ 'film of several shots has no music: write N/A in every shot, so each has only ambience, action sounds and '+ 'dialogue, and do not add music on your own. Whatever the case, never write a different non_diegetic_music '+ 'for each shot: the shots are generated separately, so the music would not be continuous and would jump at '+ 'every cut. Write music in a shot only when the user asks for it there.',+ 'When the user wants music over the film, keep every shot at N/A and lay one score on one sound track after '+ 'the cut is joined. If the user gives a music file, import it. If there is none, compose it yourself: write '+ 'a program that synthesizes one audio file (WAV, using the standard wave module and numpy or whatever is '+ 'already installed, nothing to install) as long as the finished cut, with its sections, changes and ending '+ 'on the cut points. Import it with POST /imports (MCP freevideo_import_media, CLI imports add), wait until it '+ 'is ready, and insert import:<id> at frame 0 of the project. There is no volume or fade operation, so build '+ 'them into the file: keep the music clearly quieter than the dialogue and ambience, lower it further while '+ 'someone speaks (take the line times from your own screenplay and shot lengths, or run a listen job in align '+ 'mode to time them), and fade it in at the start and out at the end. The audio goes onto a free sound track by '+ 'itself; read the project afterwards and check that one clip covers the whole film.',],'references': ['Tags are numbered per kind in reference order: <Picture 1>, <Picture 2>, <Video 1>, <Audio 1>. 'diff --git a/freevideo_engine/agent/production.py b/freevideo_engine/agent/production.pyindex 37b8b20..ca20154 100644--- a/freevideo_engine/agent/production.py+++ b/freevideo_engine/agent/production.py@@ -151,8 +151,12 @@ def plan(request, *, fields=True):preview.append(dict(id=shot['id'], continues=shot.get('continue', False),takes=shot.get('takes', count), prompt=text))_invalid(problems)+ notice = {}+ if play_ok and play.get('music'):+ notice['notice'] = ('screenplay.music is not written into the shots. Music for the whole film is composed or '+ 'provided as an audio file, imported, and laid on one sound track after the cut is joined.')return dict(request=dict(screenplay=play, takes_per_shot=count, director=director),- preview=dict(shots=preview, total=total))+ preview=dict(shots=preview, total=total, **notice))def corrected_prompt(play, shot, note=None):diff --git a/freevideo_engine/agent/schema.py b/freevideo_engine/agent/schema.pyindex 050a13c..eb07103 100644--- a/freevideo_engine/agent/schema.py+++ b/freevideo_engine/agent/schema.py@@ -504,9 +504,9 @@ DRAMA_OPERATIONS = {# The fields are checked when planning; the shape is told here so an agent does not guess it.SCREENPLAY = {'type': 'object', 'description': ('characters: {key: {card: cast card ID, or name, look, voice, language}}; '- 'shots: [{id, seconds, action or prompt, camera, framing, sound, takes, seed, '+ 'shots: [{id, seconds, action or prompt, camera, framing, sound, music (N/A unless the user asks for music in this shot), takes, seed, ''cast: [character keys], lines: [{who: character key, line, how}], '- 'continue: true to carry on from the previous shot}]; also title, style, aspect, quality, music.')}+ 'continue: true to carry on from the previous shot}]; also title, style, aspect, quality; a whole-film score is not written here but imported onto a sound track.')}def drama_schema(name):