LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-26-2011, 05:18 AM   #1
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Rep: Reputation: Disabled
Question Can't merge a subtitle with video with handbrake.


Hi !

I'm using Handbrake 0.9.5 for encoding and I'd like to add a "hard-subtitle" to a video : the subtitle has to be a part of the video.

I've seen on makeuseof.com that we could hard-sub a video thanks to the "Forced only" option.
On Ubuntu 10.04 amd64, I don't have any checkbox for this option while importing SRT file. I've got the checkbox for "subtitles" I add by clicking on the "+ Subtitle" button, but it seems to be useless (I had a video_name.srt next to my video_name.m4v video file to re-encode).

Is Handbrake now supporting only soft subbing ? Or is this the Ubuntu interface that's bugging ?

Thanks !

Pit.
 
Old 07-26-2011, 06:26 AM   #2
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
OK, I think I 've understood something : when using the "+ Subtitle" button, HandBrake will search on Source the subtitles corresponding to the language selected. In my case, the source has no subtitle so it won't have anything to merge with the video.

I tried with Avidemux, it work well, but it also adds a shadow to the subtitles... and it make it bad, so the subtitles looks very bad. Can we tell Avidemux to DO NOT add shadow to the subtitles ?

Thanks !
 
Old 07-26-2011, 06:51 AM   #3
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
I'm stupid or is HandBrake doesn't support Hard-subbing anymore ?
I've done a MKV from my video and added the subtitles to the MKV. Then, I selected the newly created MKV in HandBrake, it recognize my subtitle but I don't have the checkboxes for "Burned in" and "Forced Only". WTF ?!
 
Old 07-26-2011, 08:08 AM   #4
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
I just have tried on HandBrake 0.9.5 on Mac OS X and there is the same problem, so HandBrake is not supported Hard-subbing anymore. Yeay ! -_-

Does anyone knows an app that allows to merge the subtitles with the video, with options on the subtitles if possible (like font-color, font-style, background color, etc...) ?
As I said before, I already have tried AviDemux.

Thanks !

Pit
 
Old 07-26-2011, 08:27 AM   #5
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
Handbrake should still support hard subbing. Forced Only means that it only shows a subtitle when necessary, like if its a scene in an English movie where some French people are talking, it would show subs only for the French.

To do a hard sub, choose the Burned In option.
 
Old 07-26-2011, 08:30 AM   #6
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thank you Cultist for your response, I'm feeling less alone ! ^^
The "Burned In" option isn't choosable : there's no checkbox displayed... -_-'
 
Old 07-26-2011, 08:33 AM   #7
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
wait, I misunderstood. You're trying to add in an external subtitle file? Or rip a dvd with subs on it?

Last edited by Cultist; 07-26-2011 at 08:35 AM.
 
Old 07-26-2011, 08:39 AM   #8
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
I'm doing a screencast with subs in it, as annotations.
The best would be to select my video (the screen capture), then add a subtitle as a SRT file.
But I can add my video and my subtitle in a MKV and then select the MKV file as Source on HandBrake, if needed.
 
Old 07-26-2011, 08:41 AM   #9
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
Okay, thats something that handbrake doesn't really support. It can do hardsubs only if its being ripped from a dvd along with the video stream.

What you need is the mkvmerge tool, which is part of the mkvtoolnix package. If its not in the ubuntu repository, you can get it here. The manpage for mkvmerge is on that site as well so you can see how to use it. Its pretty simple. This will allow you to take an mkv video file and merge the srt as a hard sub (or soft sub if you prefer)

Last edited by Cultist; 07-26-2011 at 08:42 AM.
 
Old 07-26-2011, 08:48 AM   #10
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
Thank you !

I already have mkvmerge GUI v3.0.0 so I think I could make it with it.
Is the mkvmerge tool supports the export as an AVI file ? I'd like to make the video be readable by almost anyone, which is not the case for MKV by now.
 
Old 07-26-2011, 08:51 AM   #11
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
It doesn't support file format conversions, but ffmpeg will do that for you.
 
Old 07-26-2011, 08:58 AM   #12
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
That's too bad, I'll have to make 3 encoding for all...
1 for the screen video captured by RecordItNow
1 by mkvmerge in order to merge the subtitles and the video
1 by HandBrake to have a video file playable by anyone

I could save 1 encoding by using Avidemux, but there is a crapy shadow on subtitles with this tool. Maybe you know how I could tell Avidemux to do not add its shadow ?

Thank you for all anyway.
 
Old 07-29-2011, 08:35 AM   #13
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
mkvmerge do not support burning subtitles on the video, as far as I see.

I'm still trying to make it work with Avidemux, but it's all buggy when I build it from source. I'll let you know if I find a solution to my problem.
That's really anoying to see that there's no good app to do this on Linux...
 
Old 07-29-2011, 09:21 AM   #14
pmorin
Member
 
Registered: Jun 2011
Posts: 40

Original Poster
Rep: Reputation: Disabled
OK, it seems that the font used is very important.
I used Arial Bold Italic to have a quite good result. It's not as good as what we can see on this article, though.
 
Old 07-29-2011, 10:39 AM   #15
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 105Reputation: 105
I did a test and was in fact able to easily merge an avi file and an srt file into one mkv file. The subs are soft instead of hard, but most people prefer that anyway.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
playing video files with gmplayer by default & guessing subtitle file sumeet inani Linux - Newbie 1 05-22-2011 03:43 AM
howto extract individual audio/video/subtitle streams from dvd? Meson Linux - Software 10 02-01-2010 03:43 PM
Video player with built-in subtitle search H4velock Linux - Newbie 3 10-26-2009 03:36 PM
merge avi with subtitle file ? norah_cobain Linux - Software 28 05-25-2006 06:42 PM
Subtitle maker and video converter bsdpowa Linux - Software 2 07-21-2005 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration