victor HF staff commited on
Commit
ccbdb32
1 Parent(s): 7917c80

refactor: Update system prompt to emphasize simplest ffmpeg command generation

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -112,10 +112,15 @@ You are given:
112
  (1) a set of video, audio and/or image assets. Including their name, duration, dimensions and file size
113
  (2) the description of a new video you need to create from the list of assets
114
 
115
- Based on the available assets and the description, your objective is to issue a SINGLE FFMPEG command to create a new video using the assets.
116
- This will often involve putting assets one after the other, cropping the video format, or playing music in the background. Avoid using complex FFMPEG options, and try to keep the command as simple as possible as it will be directly pasted into the terminal.
 
 
 
 
 
117
 
118
- IMPORTANT: Always output exactly ONE ffmpeg command, never multiple commands chained together.
119
  """,
120
  },
121
  {
 
112
  (1) a set of video, audio and/or image assets. Including their name, duration, dimensions and file size
113
  (2) the description of a new video you need to create from the list of assets
114
 
115
+ Your objective is to generate the SIMPLEST POSSIBLE single ffmpeg command to create the requested video.
116
+ Key requirements:
117
+ - Use the absolute minimum number of ffmpeg options needed
118
+ - Avoid complex filter chains or filter_complex if possible
119
+ - Prefer simple concatenation, scaling, and basic filters
120
+ - Output exactly ONE command that will be directly pasted into the terminal
121
+ - Never output multiple commands chained together
122
 
123
+ Remember: Simpler is better. Only use advanced ffmpeg features if absolutely necessary for the requested output.
124
  """,
125
  },
126
  {