Answers.Body: <p>Have you tried using the ffmpeg playlist feature dubbed <a href="https://trac.ffmpeg.org/wiki/Concatenate" rel="nofollow noreferrer">concatenate</a>? The fade to black with ffmpeg has been described <a href="https://superuser.com/questions/386065/is-there-a-way-to-add-a-fade-to-black-effect-to-a-video-from-the-command-line">here</a>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-27T23:38:55.157Z
Answers.Text: Despite being really vague, it put me on the right trail so kudos. Here's my final workflow - I generated 12 hours of "black" video in Vegas and just let it run for a couple of hours and complete. I made my short intro fading video in Vegas. I made my audio in Cubase. Next I merged the 2 videos using the suggested concatenate by creating a list.txt file and using "ffmpeg -f concat -safe 0 -i list.txt -c copy combined.mp4." I added the audio with "c:ffmpeg -i combined.mp4 -i myaudio.mp3 -c:v copy -c:a copy -map 0:v:0 -map 1:a:0  -shortest final.mp4"  These 2 render uber quick since no recode.
Answers.UserDisplayName: Frustrated Coder
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-27T23:48:45.703Z
Answers.Text: I have the black video now so any future render times are < 2 minutes. Yay!
Answers.UserDisplayName: Frustrated Coder
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-12-27T16:26:59.107Z
Answers.LastActivityDate: 2020-12-27T16:26:59.107Z
Answers.UserDisplayName: Skinkie
Body: <p>I have a need to repeatedly create videos that have a short 15 second intro that fades to black and have really long audio tracks like 8 hours. I generate the video in Vegas and the audio in Cubase. The desired result is to have the video and audio start together and the video's last frame (completely black) be repeated to match the audio length. I can do this easily in Magix Vegas 16 Pro but the performance is awful. It takes 2+ hours to say render 15 seconds of actual changing video and then another 8 hours of black frames. This is on a 10850K with an RTX 2070 rendering using the GPU as it is faster in Vegas than using the Intel CPU renderer. I thought it was somehow choking on the audio so I eliminated it and just the video rendering of all of the black frames is still 2 hours. Any thoughts on how to speed this up in Vegas would be greatly appreciated. I feel like FFMPEG could be a viable alternative. I had some promising results with render time using <strong>ffmpeg -i Input_Video.mp4 -i Input_audio.mp3 -c:v libx265 -c:a copy -map 0:v:0 -map 1:a:0 Combined_Output.mp4</strong> .  This completes the task in under a minute BUT the resulting video is not as it seems. I can play the video from beginning to end in a media player and it looks fine. However, if I watch for a second and fast forward beyond those first 15 seconds, I don't see the black screen. It still shows whatever frame I went from. I examined the video and it sort of appears like the final video result it just the frames of the input video for 15 seconds with no encoded video after that. I need to have just black video after the first 15 seconds playing along with the audio. The black frames need to be encoded as video all the way until the audio ends. Any thoughts on this?</p>
  
Tags: <video><ffmpeg><audio><performance>
Title: Combining a short video and long audio file efficiently using Vegas or FFMPEG
UserDisplayName: Frustrated Coder
ThreadText: # Combining a short video and long audio file efficiently using Vegas or FFMPEG
  
  (Asked by: username_0 on 2020-12-27)
  
  I have a need to repeatedly create videos that have a short 15 second intro that fades to black and have really long audio tracks like 8 hours. I generate the video in Vegas and the audio in Cubase. The desired result is to have the video and audio start together and the video's last frame (completely black) be repeated to match the audio length. I can do this easily in Magix Vegas 16 Pro but the performance is awful. It takes 2+ hours to say render 15 seconds of actual changing video and then another 8 hours of black frames. This is on a 10850K with an RTX 2070 rendering using the GPU as it is faster in Vegas than using the Intel CPU renderer. I thought it was somehow choking on the audio so I eliminated it and just the video rendering of all of the black frames is still 2 hours. Any thoughts on how to speed this up in Vegas would be greatly appreciated. I feel like FFMPEG could be a viable alternative. I had some promising results with render time using **ffmpeg -i Input\_Video.mp4 -i Input\_audio.mp3 -c:v libx265 -c:a copy -map 0:v:0 -map 1:a:0 Combined\_Output.mp4** . This completes the task in under a minute BUT the resulting video is not as it seems. I can play the video from beginning to end in a media player and it looks fine. However, if I watch for a second and fast forward beyond those first 15 seconds, I don't see the black screen. It still shows whatever frame I went from. I examined the video and it sort of appears like the final video result it just the frames of the input video for 15 seconds with no encoded video after that. I need to have just black video after the first 15 seconds playing along with the audio. The black frames need to be encoded as video all the way until the audio ends. Any thoughts on this?
  
  **Tags:** video, ffmpeg, audio, performance
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-12-27. Score: 1
  
  Have you tried using the ffmpeg playlist feature dubbed [concatenate](https://trac.ffmpeg.org/wiki/Concatenate)? The fade to black with ffmpeg has been described [here](https://superuser.com/questions/386065/is-there-a-way-to-add-a-fade-to-black-effect-to-a-video-from-the-command-line).
  
  > **Comments:**
  > **username_0**: Despite being really vague, it put me on the right trail so kudos. Here's my final workflow - I generated 12 hours of "black" video in Vegas and just let it run for a couple of hours and complete. I made my short intro fading video in Vegas. I made my audio in Cubase. Next I merged the 2 videos using the suggested concatenate by creating a list.txt file and using "ffmpeg -f concat -safe 0 -i list.txt -c copy combined.mp4." I added the audio with "c:ffmpeg -i combined.mp4 -i myaudio.mp3 -c:v copy -c:a copy -map 0:v:0 -map 1:a:0  -shortest final.mp4"  These 2 render uber quick since no recode.  
  > **username_0**: I have the black video now so any future render times are < 2 minutes. Yay!  
  
  ---
  
  