How to fade in/out a video/audio clip with unknown duration?
I'm working on a project where I'm using ffmpeg to batch convert some video files, and adding fade in/out effects at the head and tail of each clip.I've been using this bit of code to add the fade/out effect on clips with known durations:```ffmpeg -i clip.mp4 -filter:v 'fade=in:0:30,fade=out:9650:30' -c:v libx264 -crf 22 -preset veryfast -c:a copy fadeInOut.mp4```My two questions are:1. How can I simultaneously fade the audio in/out?2. Can ffmpeg automatically figure out the duration of the clip and be told just fade out the last 30 frames?Thanks!
I have no ideas what software you are using. If it is a professional software like Premier or Avid. That would b be easy to do.. When I am looking for answers to specific software I go to the best free forum in the industry Creative Cow. Join for free and in the forums you should find your software. Free and easy. good Luck.