<p>I am trying to do black and white video, while leaving just one color / color range.  I was told &quot;ColorHold&quot; filter can do this.  But, when I run it with different encoders; I either get a video that doesn't play.  Or one that nothing has been modified at all it seems.</p>
<p>This is the Command Line statement I'm running.  I know my logging isn't right.  But it still logged.  LOL.  It won't let me post my log.  Thanks.</p>
<pre><code>ffmpeg  -i MVI_7523.MP4 -filter_complex &quot;colorhold=color=0xE60000:similarity=1:blend=0.0&quot;     -r 59.94     -b 60M -crf 0 output-leave-color-005.mp4 &gt; &quot;outputlog.txt&quot;
</code></pre>
<hr />

CC BY-SA 4.0
2023-12-22T12:56:49.727Z
Add `-pix_fmt yuv420p` and check.
Gyan
CC BY-SA 4.0
2023-12-23T04:07:45.900Z
@Gyan I either get a video that won't play.  Plays but is all black.  Or, plays fine but has not been modified.  Using no encoder specified, h264_qsv & h264_nvenc.  Even with pix_fmt, it still gives the "ARGB" Swscaler warnings.  Also this warning...   [mov,mp4,m4a,3gp,3g2,mj2 @ 0000027c7d971340] st: 0 edit list: 1 Missing key frame while searching for timestamp: 1001
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000027c7d971340] st: 0 edit list 1 Cannot find an index entry before timestamp: 1001.
scm360
CC BY-SA 4.0
2023-12-23T04:29:31.663Z
Add `-ignore_editlist true` before `-i`
Gyan
CC BY-SA 4.0
2023-12-23T21:05:45.073Z
@Gyan It turns out the warning isn't the problem.  There is little info on ColorHold filter.  And the settings are extremely sensitive.  We simply were plugging in values that cause it to ignore everything.  LOL.    This works with these super low values.  ffmpeg -hwaccel cuda -i MVI_3318_FINAL.mp4 -filter_complex "colorhold=color=red:similarity=0.332:blend=0.01" -vcodec h264_qsv -r 59.94 -b:v 60M -crf 0 output-leave-color-0020.mp4.  See here.  Pretty dope!  https://youtu.be/J6J2_4Bf9q4?si=sBfQv_M5-4ditHN5
scm360
CC BY-SA 4.0
2023-12-23T21:08:19.863Z
@Gyan What does " -ignore_editlist true" do?  I am in learning mode, because its required to advance my business.  Thanks again.
scm360
<ffmpeg><video>
FFMPEG COLORHOLD FILTER NOT WORKING. VIDEOS WON'T PLAY
scm360
# FFMPEG COLORHOLD FILTER NOT WORKING. VIDEOS WON'T PLAY

(Asked by: username_0 on 2023-12-21)

I am trying to do black and white video, while leaving just one color / color range.  I was told "ColorHold" filter can do this.  But, when I run it with different encoders; I either get a video that doesn't play.  Or one that nothing has been modified at all it seems.
This is the Command Line statement I'm running.  I know my logging isn't right.  But it still logged.  LOL.  It won't let me post my log.  Thanks.
ffmpeg  -i MVI_7523.MP4 -filter_complex "colorhold=color=0xE60000:similarity=1:blend=0.0"     -r 59.94     -b 60M -crf 0 output-leave-color-005.mp4 > "outputlog.txt"

**Tags:** ffmpeg, video

> **Comments:**
> **username_1**: Add `-pix_fmt yuv420p` and check.  
> **username_0**: @username_1 I either get a video that won't play.  Plays but is all black.  Or, plays fine but has not been modified.  Using no encoder specified, h264_qsv & h264_nvenc.  Even with pix_fmt, it still gives the "ARGB" Swscaler warnings.  Also this warning...   [mov,mp4,m4a,3gp,3g2,mj2 @ 0000027c7d971340] st: 0 edit list: 1 Missing key frame while searching for timestamp: 1001 [mov,mp4,m4a,3gp,3g2,mj2 @ 0000027c7d971340] st: 0 edit list 1 Cannot find an index entry before timestamp: 1001.  
> **username_1**: Add `-ignore_editlist true` before `-i`  
> **username_0**: @username_1 It turns out the warning isn't the problem.  There is little info on ColorHold filter.  And the settings are extremely sensitive.  We simply were plugging in values that cause it to ignore everything.  LOL.    This works with these super low values.  ffmpeg -hwaccel cuda -i MVI_3318_FINAL.mp4 -filter_complex "colorhold=color=red:similarity=0.332:blend=0.01" -vcodec h264_qsv -r 59.94 -b:v 60M -crf 0 output-leave-color-0020.mp4.  See here.  Pretty dope!  https://youtu.be/J6J2_4Bf9q4?si=sBfQv_M5-4ditHN5  
> **username_0**: @username_1 What does " -ignore_editlist true" do?  I am in learning mode, because its required to advance my business.  Thanks again.  

---

## 0 answers

