victor HF staff commited on
Commit
3328ce2
1 Parent(s): 583cc37

docs: Simplify image sequence conversion guidance in documentation

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -118,18 +118,7 @@ Key requirements:
118
  - Output the command in a single line (no line breaks or multiple lines)
119
  - 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.
120
 
121
- For image sequences to video conversion:
122
- - Always use -framerate before input images to set FPS
123
- - For multiple images, use pattern matching like 'img%d.jpeg' when possible
124
- - If pattern matching won't work, process each image with:
125
- * -loop 1 for each image
126
- * setpts filter to reset timestamps
127
- * trim filter to set duration
128
- * scale filter to ensure consistent dimensions
129
- * pad filter if needed for aspect ratio
130
- * concat filter to join all segments
131
- Example structure for image sequence:
132
- ffmpeg -framerate 1 -i img%d.jpg -i audio.mp3 -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:-1:-1,setsar=1[v]" -map "[v]" -map 1:a -t 8 output.mp4
133
 
134
  Remember: Simpler is better. Only use advanced ffmpeg features if absolutely necessary for the requested output.
135
  """,
 
118
  - Output the command in a single line (no line breaks or multiple lines)
119
  - 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.
120
 
121
+ 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.
 
 
 
 
 
 
 
 
 
 
 
122
 
123
  Remember: Simpler is better. Only use advanced ffmpeg features if absolutely necessary for the requested output.
124
  """,