|I want to change the palette color of all subtitles (idx/sub format) in a folder. As you may know "idx" is in text format, what I need is changing the line start with "palette" from|
palette: 000060, 2c2c2c, 2c2c2c, 535353, 8f8f8f, 414141, b0b0b0, c9c9c9, 7b7b7b, ebebeb, 626262, dbdbdb, 353535, 9c9c9c, dfdfdf, d7d7d7
palette: 000060, 000000, 2c2c2c, 535353, 8f8f8f, 414141, b0b0b0, c9c9c9, 7b7b7b, ebebeb, 626262, dbdbdb, 353535, ffff00, dfdfdf, d7d7d7
That means, replace the 2nd hex code 2c2c2c with 000000 and the 14th hex code 9c9c9c with ffff00. This will change the subtitle color from grey to yellow.
The orignal hex code may vary from different idx files, but the replacement is fixed.
Can anybody give me some hints of how to write the batch?
Thanks in advance!