mirror of
				https://github.com/amiaopensource/ffmprovisr.git
				synced 2025-10-31 08:58:11 +01:00 
			
		
		
		
	added speed modification
This commit is contained in:
		| @@ -571,8 +571,7 @@ path_name_and_extension_to_the_last_file</i></pre></dd> | ||||
|         <dl> | ||||
|           <dt>ffmpeg</dt><dd>starts the command</dd> | ||||
|           <dt>-i <i>input_file</i></dt><dd>path, name and extension of the input file</dd> | ||||
|           <dt>-filter_complex "[0:v]setpts=<i>input_fps</i>/<i>output_fps</i>*PTS[v]; [0:a]atempo=<i>output_fps</i>/<i>input_fps</i>[a]"</dt><dd>A complex filter is needed: the <code>setpts</code> video filter modifies the PTS (presentation time stamp) of the video stream, and the <code>atempo</code> audio filter modifies the speed of the audio stream while keeping the same sound pitch.<br/> | ||||
|           A complex filter is needed here, in order to handle video stream and the audio stream separately. Note that the parameter’s order for the image and for the sound are inverted. | ||||
|           <dt>-filter_complex "[0:v]setpts=<i>input_fps</i>/<i>output_fps</i>*PTS[v]; [0:a]atempo=<i>output_fps</i>/<i>input_fps</i>[a]"</dt><dd>A complex filter is needed here, in order to handle video stream and the audio stream separately. The <code>setpts</code> video filter modifies the PTS (presentation time stamp) of the video stream, and the <code>atempo</code> audio filter modifies the speed of the audio stream while keeping the same sound pitch. Note that the parameter’s order for the image and for the sound are inverted: | ||||
|           <ul> | ||||
|             <li>In the video filter <code>setpts</code> the numerator <code>input_fps</code> sets the input speed and the denominator <code>output_fps</code> sets the output speed; both values are given in frames per second.</li> | ||||
|             <li>In the sound filter <code>atempo</code> the numerator <code>output_fps</code> sets the output speed and the denominator <code>input_fps</code> sets the input speed; both values are given in frames per second.</li> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user