Body: <p>I want to be able to use a command to &quot;edit&quot; a video to have an image over the entire length of the video. Some videos I download have hardcoded subtitles that I want to remove. But I also have a regular .srt to add subtitles back (which are better). Which means I can't just get out a notepad and cover the subs since that'd also cover the soft subtitles.</p>
  <p>I found an old question that was similar, but their solution didn't seem to work for me. I'm not really sure what I'm doing, but here's what I tried:</p>
  <p><code>ffmpeg -i originalvideo.mp4 -i imagetooverlay.png -filter_complex &quot;[0:v][1:v] overlay=0:0:enable='between(t,0,635)'&quot; -pix_fmt yuv420p -c:a copy output.mp4</code></p>
  <p>Is there a better command that I can use that will overlay the image on the video and rerender it? The image is 1920x1080 and is mostly transparent except for the &quot;bar&quot; that I placed in the correct position. I think that means that it's position doesn't need to be specified, just lined up with the 1920x1080 video.</p>
  <p>Thanks!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-08T03:30:07.420Z
Comments.Text: What happens with the command you've tried?
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-06-08T15:06:55.580Z
Comments.Text: @Gyan It just rerenders the video with no apparent changes. Copying it, essentially.
Comments.UserDisplayName: Mycheze
Tags: <ffmpeg><video><video-editor><subtitles>
Title: Use ffmpeg to "overlay" a png on top of an entire video file
UserDisplayName: Mycheze
ThreadText: # Use ffmpeg to "overlay" a png on top of an entire video file
  
  (Asked by: username_0 on 2023-06-07)
  
  I want to be able to use a command to "edit" a video to have an image over the entire length of the video. Some videos I download have hardcoded subtitles that I want to remove. But I also have a regular .srt to add subtitles back (which are better). Which means I can't just get out a notepad and cover the subs since that'd also cover the soft subtitles.
  
  I found an old question that was similar, but their solution didn't seem to work for me. I'm not really sure what I'm doing, but here's what I tried:
  
  `ffmpeg -i originalvideo.mp4 -i imagetooverlay.png -filter_complex "[0:v][1:v] overlay=0:0:enable='between(t,0,635)'" -pix_fmt yuv420p -c:a copy output.mp4`
  
  Is there a better command that I can use that will overlay the image on the video and rerender it? The image is 1920x1080 and is mostly transparent except for the "bar" that I placed in the correct position. I think that means that it's position doesn't need to be specified, just lined up with the 1920x1080 video.
  
  Thanks!
  
  **Tags:** ffmpeg, video, video-editor, subtitles
  
  > **Comments:**
  > **username_1**: What happens with the command you've tried?  
  > **username_0**: @username_1 It just rerenders the video with no apparent changes. Copying it, essentially.  
  
  ---
  
  ## 0 answers
  
  