mirror of
				https://github.com/amiaopensource/ffmprovisr.git
				synced 2025-10-31 17:08:12 +01:00 
			
		
		
		
	More generic instructions for Fade in/out
Took out the audio example. Took out mini example. Took out hardcoded attributes. Added IN_POINT, OUT_POINT, DURATION to the time in seconds (expressed as integers) per kfrn suggestion
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							ee6136a020
						
					
				
				
					commit
					77c7cc337a
				
			| @@ -733,13 +733,13 @@ | ||||
|     <input type="checkbox" id="fade_streams"> | ||||
|     <div class="hiding"> | ||||
|       <h5>Fade both video and audio streams</h5> | ||||
|       <p><code>ffmpeg -i <em>input_file</em> -filter:v "fade=in:st=0:d=1, fade=out:st=59:d=1" -filter:a "afade=in:st=0:d=1, afade=out:st=59:d=1" -c:v libx264 -c:a aac <em>output_file</em></code></p> | ||||
|       <p>This command fades in and out the first and last second (and 44100 audio samples) on a video.</p> | ||||
|       <p><code>ffmpeg -i <em>input_file</em> -filter:v "fade=in:st=IN_POINT:d=DURATION, fade=out:st=OUT_POINT:d=DURATION" -filter:a "afade=in:st=OUT_POINT:d=DURATION, afade=out:st=IN_POINT:d=DURATION" -c:v libx264 -c:a aac <em>output_file</em></code></p> | ||||
|       <p>This command fades in and out the first and last second on a video. Change IN_POINT, OUT_POINT, DURATION to the time in seconds (expressed as integers) you want.</p> | ||||
|       <dl> | ||||
|           <dt>ffmpeg</dt><dd>starts the command</dd> | ||||
|           <dt>-i <em>input_file</em></dt><dd>path, name and extension of the input file</dd> | ||||
|           <dt>-filter:v "fade=in:st=0:d=1, fade=out:st=59:d=1"</dt><dd>applies a video filter that fades in the first and last second of the video. (For example, it fades in and out on the first and last second of a 60s clip). <code>st</code> sets the start and <code>d</code> sets the duration.</dd> | ||||
|           <dt>-filter:a "afade=in:st=0:d=1, afade=out:st=59:d=1"</dt><dd>applies an audio filter that fades in the first and last second of the video. (For example, it fades in and out on the first and last second of a 60s clip). <code>st</code> sets the start and <code>d</code> sets the duration.</dd> | ||||
|           <dt>-filter:v "fade=in:st=IN_POINT:d=DURATION, fade=out:st=OUT_POINT:d=DURATION"</dt><dd>applies a video filter that fades in the first and last second of the video. <code>st</code> sets the start and <code>d</code> sets the duration.</dd> | ||||
|           <dt>-filter:a "afade=in:st=IN_POINT:d=DURATION, afade=out:st=OUT_POINT:d=DURATION"</dt><dd>applies an audio filter that fades in the first and last second of the video. <code>st</code> sets the start and <code>d</code> sets the duration.</dd> | ||||
|           <dt>-c:v <em>video_codec</em></dt><dd>as a video filter is used, it is not possible to use <code>-c copy</code>. The video must be re-encoded with whatever video codec is chosen, e.g. <code>ffv1</code>, <code>v210</code> or <code>prores</code>.</dd> | ||||
|           <dt>-c:a <em>audio_codec</em></dt><dd>as an audio filter is used, it is not possible to use <code>-c copy</code>. The audio must be re-encoded with whatever audio codec is chosen, e.g. <code>aac</code>.</dd> | ||||
|           <dt><em>output_file</em></dt><dd>path, name and extension of the output_file</dd> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user