<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>

CC BY-SA 4.0
2022-08-24T04:27:22.357Z
The filters will remain the same. You have to add some video encoding parameters. Try adding `-c:v libx264 -crf 18`
Gyan
CC BY-SA 4.0
2022-08-24T08:10:27.390Z
@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.
play123videos
<ffmpeg>
Remove black frames from a videos
play123videos
# 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

