- Download FFmpeg
- Extract it and save it to C drive ( choose any location - it's optional )
- Set environment variable - copy the location of bin folder which is inside the extracted file and set the location on system path variable.
- Done!
Let's say you have a english video file name demo.mkv and it has horrible subtitile problem like
chines or a language that you can't understand , than you can simply remove subtitle usign ffmpeg
framework.
We are talking about built-in subtitiles not .srt
file. To do so , follow the following steps :
- Install FFmepg on your pc and set path variable if needed.
- Go to your file location and open command prompt or terminal there.
- After that run the following command -
ffmpeg -i video.mkv -vcodec copy -acodec copy -sn video-no-subs.mkv
Now if any case you want to integrate a srt
file on a video player. Then follow below step -
- Download desire subtitle (language) from online
- let's assume
demo.mkv
and downloaded file namedsub.srt
- put both file in one location and open terminal from that location and run following command
- First convert the subtitles to
.ass
format:ffmpeg -i sub.srt subs.ass
- To mux subtitles into a video file run -
ffmpeg -i demo.mkv -i sub.ass -codec copy -map 0 -map 1 output.mkv
Now in these case , a video file with an embeded subtitile and you want to make it srt file or other work a soft subtitile file. We cas do it by following command
ffmpeg -i demo.mkv -map 0:s:0 sub.srt
That's it.
Hard sub is the subtitle which is burnt to the video permanently. That means you can’t separate them from the video and whenever you want to watch the video you will see the subtitles as well. They are part of the video so you cannot show/hide them in a player.
What you're doing here is removing/adding Soft sub from File sub
https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo this show you how to hardcode subtitles