I have a video file without sound and a stereo audio file. Video is several times longer than audio. I'd like to create a background sound which starts from 2 second silence, then trim silence of the audio at both ends and duplicate trimmed audio several times to the end of the video.
I found how to trim audio:
And how to create silence:Code:ffmpeg -y -i audio.wav -af silenceremove=start_periods=1:start_threshold=-75dB,areverse,silenceremove=start_periods=1:start_threshold=-75dB,areverse trimmed_audio.wav
How can I duplicate the audio, combine it with the video (c:v copy) and add an audio fade-out at the end?Code:ffmpeg -y -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=48000:duration=2 silence.wav
		
			+ Reply to Thread
			
		
		
		
			
	
	
				Results 1 to 4 of 4
			
		- 
	Last edited by qo4on; 24th Nov 2020 at 13:25. 
- 
	If you are not careful to include fade-ins and fade-outs, your aggregate file will have "clicks" at every edit/loop point. 
 
 
 Scott
- 
	Every edit/loop point will start at less than -75db RMS. You won't hear anything. 
 But it's a good idea to add an audio fade-out at the end.Last edited by qo4on; 24th Nov 2020 at 13:24. 
Similar Threads
- 
  ffmpeg - create video from scrolling imageBy M00nsp3ll in forum Newbie / General discussionsReplies: 0Last Post: 7th Apr 2020, 16:27
- 
  Create a Few Seconds Video preview Using FfmpegBy dexterfox44 in forum Newbie / General discussionsReplies: 1Last Post: 28th Feb 2020, 07:49
- 
  How do I use ffmpeg to create the highest quality animated gifs from videoBy Bruce Banner in forum EditingReplies: 13Last Post: 11th May 2019, 01:26
- 
  FFMPEG: create a transparent background with lavfi?By Taapo in forum Video ConversionReplies: 1Last Post: 20th Sep 2017, 10:07
- 
  how to create 3s picture pause at 30s intervals of a video with ffmpegBy rey1 in forum EditingReplies: 2Last Post: 20th May 2016, 10:10


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			

 Quote
 Quote