Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-11-22T08:23:18.753Z
Answers.LastActivityDate: 2023-11-22T08:23:18.753Z
Answers.UserDisplayName: user1855805
Body: <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>
  
Tags: <ffmpeg><dvd>
Title: dvdauthor spumux aborted: picture had 256 colors
UserDisplayName: user1855805
ThreadText: # 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:
  
  ```
  <subpictures format="PAL"><stream>
  <spu start="00:00:00.00" force="yes" autoorder="rows" autooutline="infer" outlinewidth="6" image="tmp.png" highlight="tmp.select.png" select="tmp.png">
  </spu>
  </stream></subpictures>
  
  ```
  
  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:
  
  1. White - #FFFFFF
  2. Black - #000000
  3. Red - #FF0000
  4. Green - #00FF00
  5. Blue - #0000FF
  6. Yellow - #FFFF00
  7. Magenta - #FF00FF
  8. Cyan - #00FFFF
  9. Gray - #808080
  10. 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.
  
  
  ---
  
  