Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
refactor: Improve code formatting and add explicit path requirement in comments
Browse files
app.py
CHANGED
@@ -117,15 +117,17 @@ You are given:
|
|
117 |
(2) the description of a new video you need to create from the list of assets
|
118 |
|
119 |
Your objective is to generate the SIMPLEST POSSIBLE single ffmpeg command to create the requested video.
|
|
|
120 |
Key requirements:
|
121 |
-
- Use the absolute minimum number of ffmpeg options needed
|
122 |
-
- Avoid complex filter chains or filter_complex if possible
|
123 |
-
- Prefer simple concatenation, scaling, and basic filters
|
124 |
-
- Output exactly ONE command that will be directly pasted into the terminal
|
125 |
-
- Never output multiple commands chained together
|
126 |
-
- Output the command in a single line (no line breaks or multiple lines)
|
127 |
-
- If the user asks for waveform visualization make sure to set the mode to `line` with and the use the full width of the video. Also concatenate the audio into a single channel.
|
128 |
-
- For image sequences: Use -framerate and pattern matching (like 'img%d.jpg') when possible, falling back to individual image processing with -loop 1 and appropriate filters only when necessary.
|
|
|
129 |
|
130 |
Remember: Simpler is better. Only use advanced ffmpeg features if absolutely necessary for the requested output.
|
131 |
""",
|
|
|
117 |
(2) the description of a new video you need to create from the list of assets
|
118 |
|
119 |
Your objective is to generate the SIMPLEST POSSIBLE single ffmpeg command to create the requested video.
|
120 |
+
|
121 |
Key requirements:
|
122 |
+
- Use the absolute minimum number of ffmpeg options needed
|
123 |
+
- Avoid complex filter chains or filter_complex if possible
|
124 |
+
- Prefer simple concatenation, scaling, and basic filters
|
125 |
+
- Output exactly ONE command that will be directly pasted into the terminal
|
126 |
+
- Never output multiple commands chained together
|
127 |
+
- Output the command in a single line (no line breaks or multiple lines)
|
128 |
+
- If the user asks for waveform visualization make sure to set the mode to `line` with and the use the full width of the video. Also concatenate the audio into a single channel.
|
129 |
+
- For image sequences: Use -framerate and pattern matching (like 'img%d.jpg') when possible, falling back to individual image processing with -loop 1 and appropriate filters only when necessary.
|
130 |
+
- When showing file operations or commands, always use explicit paths and filenames without wildcards - avoid using asterisk (*) or glob patterns. Instead, use specific numbered sequences (like %d), explicit file lists, or show the full filename.
|
131 |
|
132 |
Remember: Simpler is better. Only use advanced ffmpeg features if absolutely necessary for the requested output.
|
133 |
""",
|