Body: <p>Is there any way to remove &amp; replace black frames from a video without losing video quality? There are like just 3-4 frames to be removed.
  <a href="https://video.stackexchange.com/questions/23589/replace-black-frames-with-previous-frames#new-answer">I tried this method, but the result was nt that great and the video was heavily compressed</a>
  This is 2022 and thought may be there any better ways to do it now. :)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-24T04:27:22.357Z
Comments.Text: The filters will remain the same. You have to add some video encoding parameters. Try adding `-c:v libx264 -crf 18`
Comments.UserDisplayName: Gyan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-08-24T08:10:27.390Z
Comments.Text: @Gyan I did try that. I used ffv1 instead. But it didn't fix my black screen issue (but the video quality was fine). Even though it got heavily compressed, the one with no video encoding parameters had better results.
Comments.UserDisplayName: play123videos
Tags: <ffmpeg>
Title: Remove black frames from a videos
UserDisplayName: play123videos
ThreadText: # Remove black frames from a videos
  
  (Asked by: username_0 on 2022-08-23)
  
  Is there any way to remove & replace black frames from a video without losing video quality? There are like just 3-4 frames to be removed.
  [I tried this method, but the result was nt that great and the video was heavily compressed](https://video.stackexchange.com/questions/23589/replace-black-frames-with-previous-frames#new-answer)
  This is 2022 and thought may be there any better ways to do it now. :)
  
  **Tags:** ffmpeg
  
  > **Comments:**
  > **username_1**: The filters will remain the same. You have to add some video encoding parameters. Try adding `-c:v libx264 -crf 18`  
  > **username_0**: @username_1 I did try that. I used ffv1 instead. But it didn't fix my black screen issue (but the video quality was fine). Even though it got heavily compressed, the one with no video encoding parameters had better results.  
  
  ---
  
  ## 0 answers
  
  