mirror of
				https://github.com/amiaopensource/ffmprovisr.git
				synced 2025-11-04 10:49:10 +01:00 
			
		
		
		
	Update: Adding fade/afade to streams
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							1df442f6dd
						
					
				
				
					commit
					020b9fbe73
				
			
							
								
								
									
										21
									
								
								index.html
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								index.html
									
									
									
									
									
								
							@@ -729,11 +729,32 @@
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- ends Modify speed -->
 | 
			
		||||
 | 
			
		||||
    <!-- Fade both video and audio streams -->
 | 
			
		||||
    <label class="recipe" for="fade_streams">Fade both video and audio streams</label>
 | 
			
		||||
    <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 30 video frames and 44100 audio samples on a video</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 30 video frames</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 30 video frames. <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>
 | 
			
		||||
      </dl>
 | 
			
		||||
      <p class="link"></p>
 | 
			
		||||
    </div>
 | 
			
		||||
    <!-- ends Fade both video and audio streams -->
 | 
			
		||||
 | 
			
		||||
    <!-- Synchronize video and audio streams -->
 | 
			
		||||
    <label class="recipe" for="sync_streams">Synchronize video and audio streams</label>
 | 
			
		||||
    <input type="checkbox" id="sync_streams">
 | 
			
		||||
    <div class="hiding">
 | 
			
		||||
      <h5>Synchronize video and audio streams</h5>
 | 
			
		||||
 | 
			
		||||
      <p><code>ffmpeg -i <em>input_file</em> -itsoffset 0.125 -i <em>input_file</em> -map 1:v -map 0:a -c copy <em>output_file</em></code></p>
 | 
			
		||||
      <p>A command to slip the video channel approximate 2 frames (0.125 for a 25fps timeline) to align video and audio drift, if generated during video tape capture for example.</p>
 | 
			
		||||
      <dl>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user