A mkv with embedded subtitle plays very well with VLC and the sub is sharp and clear. I am trying to burn the subtitle onto the video using ffmpeg. The command I use is like this:
But playing the output find a lot of small grey or white squares around some characters of the subtitles, like thisCode:ffmpeg -i input.mkv -vf "subtitles=input.mkv" -c:a copy -map :0 -map 0:1 output.mkv
[Attachment 59742 - Click to enlarge]
I did try to add background color to the subtitle in -vf like thisbut has no effect at all. Would somebody please let me know if there is a way to avoid the squares?Code:BackColour=&H80000000
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 9 of 9
Thread
-
-
Thank you for the replies. I've tried clever ffmpeg-gui, but couldn't found any function related to subtitle burn in. I've also tried handbrake which produces good results (no small squares), however it lacks options to choose fonts, font size, border colours which ffmpeg has (though I still not able to fully understand them). I have two questions about handbrake hope others can help:
1. Am I right that handbrake is in fact a ffmpeg gui? If so is there any where I can see the ffmpeg command generated by handbrake?
2. In ffmpeg, I can use like -c:v copy to avoid re-encoding if the process I want does not involve video, but in handbrake there is no such option. Though I can set the output parameters to be exactly the same as the source, I am not sure if handbrake would re-encode it or not. Any idea? -
1. As far as I know, handbrake is based on ffmpeg. It also has one small command line which you can read more about in its documentation https://handbrake.fr/docs/en/1.2.0/cli/command-line-reference.html
Last edited by pm-s; 9th Jul 2021 at 05:41.
-
The blocks are likely source decoding errors. Your command line works fine here.
-
-
see this here - https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
Similar Threads
-
clever FFmpeg-GUI, small FFmpeg UI, fully portable, no installation.
By ProWo in forum Video ConversionReplies: 1196Last Post: 19th Oct 2024, 12:06 -
New small GUI for FFmpeg
By ProWo in forum Video ConversionReplies: 29Last Post: 24th Feb 2024, 02:06 -
ffmpeg returns "Protocol not found"
By ramsh in forum Newbie / General discussionsReplies: 5Last Post: 3rd Jul 2017, 03:10 -
“ No NVENC capable devices found” with ffmpeg for screen capture and RTP
By ThadeuMelo in forum CapturingReplies: 1Last Post: 22nd May 2017, 17:43 -
Found a new way to clean those small mini DV video heads.
By digicube in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 3Last Post: 15th Feb 2017, 21:10