Following is a snippet we used to remove a few seconds from a video using ffmpeg ffmpeg -i 'input.mkv' -filter_complex \ "[0:v]trim=end=553,setpts=N/FRAME_RATE/TB[v0]; \ [0:a]atrim=end=553,asetpts=N/SR/TB[a0]; \ [0:v]trim=start=559,setpts=N/FRAME_RATE/TB[v1]; \ [0:a]atrim=start=559,asetpts=N/SR/TB[a1]; \ [v0][a0][v1][a1]concat=n=2:v=1:a=1[v][a]" \ -map "[v]" -map "[a]" 'output.mkv' Specifically, we removed the seconds 09:13 (second 553) to 09:19 (second 559).
Recently, we had this audio file ( mp3) that we wanted to upload to youtube.com. As it is known, youtube does not allow uploading audio files. Taking that into consideration we had to create a video with a static image just to upload the audio file to youtube. To do…
If you are processing multiple streams, we would advise you not to make an overly complex command that does everything in one go. To boost the audio, it is better to use one of the two commands listed above (depending on which version of FFmpeg you are using) and then proceed with the mix.
Suppose you are doing a lot of audio processing. In that case, you could extract the audio from the video files (https://bytefreaks.net/gnulinux/bash/ffmpeg-extract-audio-from-mkv-to-mp3) before processing to make individual steps faster.
How do you do it whilst using filter_complex to boost the volume of a mix?
If you are processing multiple streams, we would advise you not to make an overly complex command that does everything in one go. To boost the audio, it is better to use one of the two commands listed above (depending on which version of FFmpeg you are using) and then proceed with the mix.
Suppose you are doing a lot of audio processing. In that case, you could extract the audio from the video files (https://bytefreaks.net/gnulinux/bash/ffmpeg-extract-audio-from-mkv-to-mp3) before processing to make individual steps faster.