VideoHelp Forum
+ Reply to Thread
Results 1 to 30 of 30
Thread
  1. Hello! What is the best way to burn / hardcode subtitles to a .mkv file ?

    Thanks
    Quote Quote  
  2. Originally Posted by videobruger View Post
    I would use FFmpeg.
    Yes, but how ? What strings you use ?

    Thanks.
    Quote Quote  
  3. In the simplest form it would be (provided FFmpeg is installed in your PATH) and the format of your subtitles is .srt

    Code:
    FFmpeg -i in.mkv -vf subtitles=subs.srt HCout.mkv
    Quote Quote  
  4. Or you could use Subtitle Edit.

    Drop your subtitle on it. If the video has the same name it loads automatically. Else use "Video -> Open video file"

    Then use "Video -> Generate video with burned-in subs" and you can give some settings.

    Image
    [Attachment 65447 - Click to enlarge]


    As far as I remember SE will download FFmpeg if it's not installed
    Quote Quote  
  5. Originally Posted by ProWo View Post
    You can also use clever Ffmpeg-GUI
    I downloaded but i dont see how can i do it! Any help please?

    Originally Posted by videobruger View Post
    Or you could use Subtitle Edit.

    Drop your subtitle on it. If the video has the same name it loads automatically. Else use "Video -> Open video file"

    Then use "Video -> Generate video with burned-in subs" and you can give some settings.

    Image
    [Attachment 65447 - Click to enlarge]


    As far as I remember SE will download FFmpeg if it's not installed
    Great idea! I make it and work fine but the problem is for example if my video are 1.40GB the new video file is 900MB! How can i get the same size ?

    Originally Posted by dfisher052 View Post
    VidCoder.
    VidCoder re-endocde the video so its not good for me!
    Quote Quote  
  6. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    You have to re-encode if want the subtitles burned in
    Quote Quote  
  7. Member netmask56's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Search Comp PM
    Originally Posted by Mohamet View Post
    Hello! What is the best way to burn / hardcode subtitles to a .mkv file ?

    Thanks
    Do you actually need them to be burned in or how about switchable and making the subtitles both "the default and forced" assuming your media player recognises those flags? If you really need to burn in the subs into the video then that always involves re-encoding the video with some loss of quality.
    SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851
    Quote Quote  
  8. Great idea! I make it and work fine but the problem is for example if my video are 1.40GB the new video file is 900MB! How can i get the same size ?
    By ticking the "File size"checkbox and use 2-pass encoding,

    As already said hardcoding requires re-encoding.
    Last edited by videobruger; 21st Jun 2022 at 05:26. Reason: Spelling
    Quote Quote  
  9. Originally Posted by Mohamet View Post
    Originally Posted by ProWo View Post
    You can also use clever Ffmpeg-GUI
    I downloaded but i dont see how can i do it! Any help please?
    Here your go:

    Image
    [Attachment 65528 - Click to enlarge]
    Quote Quote  
  10. Originally Posted by videobruger View Post
    Great idea! I make it and work fine but the problem is for example if my video are 1.40GB the new video file is 900MB! How can i get the same size ?
    By ticking the "File size"checkbox and use 2-pass encoding,

    As already said hardcoding requires re-encoding.
    I try it, but again have less size and not the same! From 1.44GB i get 900MB.

    Originally Posted by ProWo View Post
    Originally Posted by Mohamet View Post
    Originally Posted by ProWo View Post
    You can also use clever Ffmpeg-GUI
    I downloaded but i dont see how can i do it! Any help please?
    Here your go:

    Image
    [Attachment 65528 - Click to enlarge]

    Again i dont see this screen to my app!

    Originally Posted by netmask56 View Post
    Originally Posted by Mohamet View Post
    Hello! What is the best way to burn / hardcode subtitles to a .mkv file ?

    Thanks
    Do you actually need them to be burned in or how about switchable and making the subtitles both "the default and forced" assuming your media player recognises those flags? If you really need to burn in the subs into the video then that always involves re-encoding the video with some loss of quality.
    Yes, i need thems hardcoded and not as a second part to my video file
    Quote Quote  
  11. Originally Posted by Mohamet View Post
    Again i dont see this screen to my app!
    Load your file, wait until analysis is done, click main, click convert Videostream, click keep size and voilà, you are there.
    Quote Quote  
  12. Originally Posted by ProWo View Post
    Originally Posted by Mohamet View Post
    Again i dont see this screen to my app!
    Load your file, wait until analysis is done, click main, click convert Videostream, click keep size and voilà, you are there.
    I do it but the size again are smaller! I get 700MB from 1.44GB!
    Quote Quote  
  13. Originally Posted by ProWo View Post
    Use crf 18
    Where ?
    Quote Quote  
  14. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Mohamet View Post
    Originally Posted by ProWo View Post
    Use crf 18
    Where ?
    Right here
    Image Attached Thumbnails Click image for larger version

Name:	pw.png
Views:	53
Size:	205.6 KB
ID:	65544  

    Quote Quote  
  15. Originally Posted by davexnet View Post
    Originally Posted by Mohamet View Post
    Originally Posted by ProWo View Post
    Use crf 18
    Where ?
    Right here

    I do it but again get 800MB! I dont wanna change my size!

    I need something like the AVIRecomp but for MKV files!
    Quote Quote  
  16. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Mohamet View Post
    Originally Posted by davexnet View Post
    Originally Posted by Mohamet View Post
    Originally Posted by ProWo View Post
    Use crf 18
    Where ?
    Right here

    I do it but again get 800MB! I dont wanna change my size!

    I need something like the AVIRecomp but for MKV files!
    I don't know Prowo's software that well, but to achieve video of a certain size, you need to do a 2-pass encode.
    I have not see anywhere in Clever ffmpeg GUI that 2-pass is implemented.

    Try Vidcoder. On the video encoding tab select target size, 2-pass and select "burn in" for the subtitle (main screen)
    Quote Quote  
  17. You can also use Handbrake. But Vidcoder is a good alternative.
    Quote Quote  
  18. Originally Posted by davexnet View Post
    I have not see anywhere in Clever ffmpeg GUI that 2-pass is implemented.
    2 pass encoding is not implemented because the contant rate factor (CRF) encoding provides the best quality and an exact file size is uninteresting for most users.
    Quote Quote  
  19. I try it, but again have less size and not the same! From 1.44GB i get 900MB.
    I don't know your settings.

    But using this:

    Image
    [Attachment 65550 - Click to enlarge]


    The result is:

    Image
    [Attachment 65551 - Click to enlarge]


    The subtitles are .srt and embedded in the file Video.mkv.
    Quote Quote  
  20. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by ProWo View Post
    Originally Posted by davexnet View Post
    I have not see anywhere in Clever ffmpeg GUI that 2-pass is implemented.
    2 pass encoding is not implemented because the contant rate factor (CRF) encoding provides the best quality and an exact file size is uninteresting for most users.
    That's cool; I'm not judging it, but the person I was trying to help specifically asked for a file of a certain size ...
    Quote Quote  
  21. Originally Posted by videobruger View Post
    I try it, but again have less size and not the same! From 1.44GB i get 900MB.
    I don't know your settings.

    But using this:

    Image
    [Attachment 65550 - Click to enlarge]


    The result is:

    Image
    [Attachment 65551 - Click to enlarge]


    The subtitles are .srt and embedded in the file Video.mkv.
    Awesome! Work perfect with this way!

    Big thank to everyone to to try help me
    Quote Quote  
  22. Hello again guys! This time, i wanna hardcode subtitles to a mkv but get again a mkv file without add or less the size (not much at least).
    Quote Quote  
  23. If you want the same size use the same bitrate. But the same size doesn't mean you'll get the same quality.
    Quote Quote  
  24. Originally Posted by jagabo View Post
    If you want the same size use the same bitrate. But the same size doesn't mean you'll get the same quality.
    Thank you but you dont provide me any suggestion about the application ?
    Quote Quote  
  25. Learn by yourself.
    Read:
    https://trac.ffmpeg.org/wiki/Encode/H.264
    (two pass section).
    Quote Quote  
  26. Originally Posted by Mohamet View Post
    Originally Posted by jagabo View Post
    If you want the same size use the same bitrate. But the same size doesn't mean you'll get the same quality.
    Thank you but you dont provide me any suggestion about the application ?
    It doesn't matter what application is used. The definition of bitrate is:

    Code:
    bitrate = stream size / running time
    hence, via simple algebraic manipulation:

    Code:
    stream size = bitrate * running time
    So, no matter what application you use, what codec you use, or the properties of the video, the bitrate determines the size.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!