[FFmpeg-user] Can I change overlay color of subtitle?

James Darnley james.darnley at gmail.com
Sun Oct 12 15:47:16 CEST 2014


On 2014-10-12 14:17, Kimio Miyamura wrote:
> Hello, 
> 
> I am trying to hardcode dvd subtitle into video referring the link below 
> 
> https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
> 
> 
> The command line I tried is the following.
> 
> $ ffmpeg -analyzeduration 60M -probesize 60M \
> -i /Volumes/DVD_VIDEO/VIDEO_TS/VTS_01_1.VOB \
> -filter_complex "[0:v][0:s]overlay[v]" \
> -map [v] -map 0:a -t 00:05:00 test.mp4
> 
> The command line works fine and I can get a mp4 movie with subtitle.  But I got yellow colored subtitle.  I'd like to change subtitle color into yellow to white if I can.
> 
> Is there any way to change overlay color of subtitle?

Only of text subtitles.  DVDs have vobsub subtitles which are bitmaps.
This means it can't be as easy as setting "color=white".  There might be
some complicated way of altering the colours of the bitmaps by
saturation, brightness, or just a lut.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: OpenPGP digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-user/attachments/20141012/7fc8192e/attachment.asc>


More information about the ffmpeg-user mailing list