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…