<pre><code>head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- -threshold 50% tmp.select.png
</code></pre>
<p>The &quot;-threshold 50%&quot; option converts all shades of gray to pure black and white, considering any pixel with a brightness level below 50% as black and anything above as white.</p>

CC BY-SA 4.0
2023-11-22T08:23:18.753Z
2023-11-22T08:23:18.753Z
user1855805
<pre><code>spumux tmp.xml &lt; tmp.mpg &gt; output.mpg
INFO: Picture tmp.png had 255 colors
INFO: Picture tmp.select.png had 256 colors
spumux: subgen.c:313: findmasterpal: Assertion `s-&gt;numpal &lt; 16' failed.
.MakeMenus.sh: line 70: 18832 Aborted (core dumped) 
</code></pre>
<p>Picturies created:</p>
<pre><code>head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -fill white -gravity center caption:@- tmp.png
head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- tmp.select.png
</code></pre>
<p>File tmp.xml:</p>
<pre><code>&lt;subpictures format=&quot;PAL&quot;&gt;&lt;stream&gt;
&lt;spu start=&quot;00:00:00.00&quot; force=&quot;yes&quot; autoorder=&quot;rows&quot; autooutline=&quot;infer&quot; outlinewidth=&quot;6&quot; image=&quot;tmp.png&quot; highlight=&quot;tmp.select.png&quot; select=&quot;tmp.png&quot;&gt;
&lt;/spu&gt;
&lt;/stream&gt;&lt;/subpictures&gt;
</code></pre>
<p>COMMENT:
Spumux, the subtitle multiplexing tool in DVD authoring, supports a limited range of colors for subpictures. Here is a list of some commonly used colors in spumux along with their corresponding hexadecimal color codes:</p>
<ol>
<li>White - #FFFFFF</li>
<li>Black - #000000</li>
<li>Red - #FF0000</li>
<li>Green - #00FF00</li>
<li>Blue - #0000FF</li>
<li>Yellow - #FFFF00</li>
<li>Magenta - #FF00FF</li>
<li>Cyan - #00FFFF</li>
<li>Gray - #808080</li>
<li>Light Gray - #C0C0C0</li>
</ol>
<p>Remember, spumux has a limit of 16 colors for the subpicture palette, so you should choose your colors from this limited set.</p>

<ffmpeg><dvd>
dvdauthor spumux aborted: picture had 256 colors
user1855805
# dvdauthor spumux aborted: picture had 256 colors

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

spumux tmp.xml < tmp.mpg > output.mpg
INFO: Picture tmp.png had 255 colors
INFO: Picture tmp.select.png had 256 colors
spumux: subgen.c:313: findmasterpal: Assertion `s->numpal < 16' failed.
.MakeMenus.sh: line 70: 18832 Aborted (core dumped) 

Picturies created:
head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -fill white -gravity center caption:@- tmp.png
head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- tmp.select.png

File tmp.xml:





COMMENT:
Spumux, the subtitle multiplexing tool in DVD authoring, supports a limited range of colors for subpictures. Here is a list of some commonly used colors in spumux along with their corresponding hexadecimal color codes:

White - #FFFFFF
Black - #000000
Red - #FF0000
Green - #00FF00
Blue - #0000FF
Yellow - #FFFF00
Magenta - #FF00FF
Cyan - #00FFFF
Gray - #808080
Light Gray - #C0C0C0

Remember, spumux has a limit of 16 colors for the subpicture palette, so you should choose your colors from this limited set.

**Tags:** ffmpeg, dvd


---

## 1 answers

### Answer by username_0 on 2023-11-22. Score: 0

head -c -1 tmp.txt | convert -background none -size 720x576 -font Courier -pointsize 20 -undercolor black -fill white -gravity center caption:@- -threshold 50% tmp.select.png

The "-threshold 50%" option converts all shades of gray to pure black and white, considering any pixel with a brightness level below 50% as black and anything above as white.


---

