最近,我从网上(Internet)下载了一个印地语(Hindi)视频,我需要在视频中添加英文字幕,以便与一些朋友分享。我检查了Windows Movie Maker,它能够在视频上叠加文本,但功能集(feature set)非常差,几乎不可能控制字幕出现的位置、显示时间和格式。
Windows Movie Maker的另一个问题是您无法创建在DVD播放器中显示为选项的字幕。它要么总是存在,要么不存在。在做了一些研究之后,我发现半专业地为视频添加字幕的最佳方法是使用组合程序,一个专门创建与您的视频完全匹配的高质量字幕,另一个程序将字幕和用视频对它们进行编码。
所以这里有一个指南,将教你如何免费为视频添加字幕,希望不会让你完全沮丧!要开始使用,您首先需要下载并安装两个应用程序。我将首先编写如何使用Handbrake,因为它是一个更简单的程序,但如果由于某种原因不能正常工作,您可以尝试(t work)使用 TEncoder(TEncoder)作为备份。
下载解压字幕工坊(Download and unzip Subtitle Workshop)(Download and unzip Subtitle Workshop)
下载并安装手刹(Download and install Handbrake)(Download and install Handbrake)
下载并安装 TEncoder(Download and install TEncoder) – 可选(Download and install TEncoder – Optional)
创建字幕文件 (SRT)
字幕工坊(Subtitle Workshop)只需要解压即可运行,无需安装。只需(Just)双击SubtiteWorkshop4 图标(SubtiteWorkshop4 icon)。这是我们将要开始的第一个应用程序。字幕工作室(Subtitle Workshop)将允许我们在视频中添加任意数量的字幕,并将该文件另存为单独的文件(此时我们的视频将保持不变)。
打开字幕工作室(Subtitle Workshop)后,单击文件(File)并选择新字幕(New Subtitle)。
然后转到Video菜单选项并选择Open。选择您的视频并单击确定(video and click Ok),您的视频将出现在顶部并开始播放。继续并将滑动条(slide bar)移动到您希望第一个字幕出现的位置,然后单击主列表框中(list box)的第一行,显示No. 1、Show、Hide等。
要添加字幕,请开始在底部的文本框中(text box)输入文本。您应该会在键入时看到它出现在视频中。现在,当您添加字幕时,您会看到上面的屏幕截图中有一个显示和隐藏部分。(Show and Hide section visible)您必须输入您希望字幕出现的确切时间,因为它不只是从您在视频中的位置选择值。
为了在播放视频时获取您所在的当前帧,请查看视频下方屏幕的右侧。您会看到这些数字,就像它们在“Show/Hide框中一样。只需(Just)从顶部取值并将其添加到Show 框中(Show box)。例如,我希望我的第一个字幕出现在视频中 5 秒并持续 5 秒。
因此,我可以在“显示”框中输入 00:00:05:000,也可以通过(Show box)将滑动条(slide bar)移动到确切位置(或在确切时间暂停)然后复制值来进入一个非常特定的帧显示在我的盒子的右上角。然后只需将持续时间值(Duration value)调整为您希望字幕保留在屏幕上的时间!它默认为 1,因此只需根据需要更改它。
要添加另一个字幕,您需要单击添加字幕按钮(Add Subtitle button),我在上面用红线指出了这一点。您也可以单击Edit菜单并选择Insert Subtitle。在修改字幕的外观方面,没有太多的选择。基本上,您可以使用粗体、斜体、下划线和更改颜色。将字幕插入视频的实际编码程序(encoding program)将控制外观的其他设置
放入所有字幕后,继续点击File然后点击Save。在另存为类型(Save as type)框中,向下滚动到SubRip (.srt)并将文件保存在与(SubRip (.srt))视频文件(video file)相同的文件夹中,并将其命名为与视频完全相同的名称。
使用 HandBrake 对字幕进行编码
打开 HandBrake 后,单击源(Source)按钮并选择您的视频文件(video file)。继续为您的输出文件(output file)选择一个目标,并保持其他所有内容不变。确保(Make)在最右侧的预设(Presets)菜单中选择了正常。(Normal)
现在单击底部的(bottom and click)字幕选项卡(Subtitles tab),然后单击导入 SRT( Import SRT)按钮。选择SRT 文件(SRT file),它将显示在下面的列表框中(list box)。
如果需要,您可以添加多个字幕文件(subtitle file),即用于多种语言。HandBrake就是这样!这是一个非常简单的过程并且效果很好。
使用 TEncoder 编码字幕
现在关闭字幕工作室(Subtitle Workshop)并打开TEncoder。首先(First),我们必须添加要添加字幕的视频文件。(video file)继续并单击Add (+)按钮并选择您的视频文件。
请注意,TEncoder也是一个video/audio converter,因此您还可以根据需要更改视频文件(video file)的格式。默认情况下,它将使用Xvid 视频编解码器和 MP3(Xvid video codec and MP3)音频编解码器创建一个AVI 文件。(AVI file)如果您希望所有内容都与原始文件相同,请从视频编解码器(Video Codec)下拉框中选择直接复制。( Direct Copy)
现在确保选中右下角的启用字幕框。(Enable Subtitles)您需要确保字幕文件与(subtitle file)视频文件(video file)位于同一文件夹中,并且它也具有相同的名称。
如果您想要更高质量的文件(quality file),请继续并选中执行两遍编码(Do two pass encoding)框。您还可以单击字幕选项(Subtitle Options)来配置更多选项来配置字幕的外观(look and feel)。
请注意,当您单击列表中的视频文件(video file)的名称时,您应该会看到字幕文件(subtitle file)的路径自动填充在上面的文本框中。此时,您可以确定字幕文件(subtitle file)已正确定位。继续并单击“编码(Encode)”按钮开始。
如果您选中与源相同(Same as Source)框,则新创建的输出文件(output file)将位于与原始视频文件(video file)相同的位置。您现在应该可以在媒体播放器中播放它并打开(player and turn)字幕以查看它们的实际效果。
还值得注意的是,许多视频播放器要么会自动找到字幕,要么会让你手动选择一个。如果您不打算(t plan)分发视频,而只是想在观看电影等时查看视频的字幕,这将很有用。在我的示例中,我将向您展示如何使用VLC 媒体播放器(VLC Media Player)完成此操作.
首先,打开您的视频文件(video file),然后右键单击视频上的任意位置,单击字幕(Subtitle),然后单击添加字幕文件(Add Subtitle File)。如果您将其命名为与视频文件(video file)相同的名称,该程序足够聪明,可以为您找到它,在这种情况下,您会看到Sub Track没有变灰,您应该能够选择字幕轨道。
这个过程有几个步骤,有时可能会有点复杂和混乱,所以如果您有任何问题或遇到困难,请随时发表评论,我们会尽力提供帮助。享受!
How to Add Your Own Subtitles to a Video
Recently, I downloaded a video off the Intеrnet that was іn Hindi and І needed to add English sυbtitles to the video so that I could shаre it with some friends. І checked out Windows Movie Maker, which has the ability to overlay text on video, but the feature set was very poor and it was nearly impossible to control where the subtіtles showed up, for how long, and in what kind of format.
Another problem with Windows Movie Maker is that you can’t create subtitles that show up as an option in DVD players; it’s either always there or not. After doing some research, I found that the best way to add subtitles to a video semi-professionally is to use a combination of programs, one that specializes in creating high-quality subtitles that match your video exactly and another program that takes the subtitles and encodes them with the video.
So here’s a guide that will teach you how to add subtitles to videos for free and hopefully not make you completely frustrated! To get started, you first need to download and install two applications. I’m going to write how to use Handbrake first because it’s the easier program, but if that doesn’t work for some reason, you can try TEncoder as a backup.
Download and unzip Subtitle Workshop
Download and install Handbrake
Download and install TEncoder – Optional
Create Subtitles File (SRT)
Subtitle Workshop only needs to be unzipped to run, there is no install. Just double click on the SubtiteWorkshop4 icon. This is the first application we will start with. Subtitle Workshop will allow us to add as many subtitles as we want into our video and save that file out as a separate file (our video will remain unaltered at this point).
After you open Subtitle Workshop, click on File and choose New Subtitle.
Then go to the Video menu option and choose Open. Choose your video and click Ok and you video will appear in the top section and start playing. Go ahead and move the slide bar to the location where you want your first subtitle to appear and then click on the first row in the main list box that says No. 1, Show, Hide, etc.
To add your subtitle, begin typing your text into the text box at the bottom. You should see it appear on the video as you type. Now when you add subtitles, you’ll see that there is a Show and Hide section visible in the above screenshot. You have to type in the exact times that you want the subtitles to appear since it does not just pick the value from the location that you are in the video.
In order to get the current frame that you are in while playing the video, look at the right side of the screen below the video. You’ll see those numbers just like they are in the Show/Hide boxes. Just take the value from the top one and add that into the Show box. For example, I want my first subtitle to come up 5 seconds into the video and last 5 seconds.
So I can either type in 00:00:05:000 into the Show box or I can get down to a very specific frame by typing moving the slide bar to the exact location (or pausing at the exact time) and then copying the value shown at the top right into my box. Then simply adjust the Duration value to however long you want the subtitles to remain on the screen! It is defaulted to one, so just change it whatever you desire.
To add another subtitle, you need to click the Add Subtitle button, which I have pointed out above with the red line. You can also click on the Edit menu and choose Insert Subtitle. In terms of modifying the look of the subtitle, there are not a whole lot of options. Basically, you can use bold, italic, underline and change the color. The actual encoding program that will insert the subtitles into the video will control the other settings for the look and feel
Once you have put all of your subtitles in, go ahead and click on File and then Save. In the Save as type box, scroll down to SubRip (.srt) and save the file in the same folder as the video file and give it the exact same name as the video also.
Use HandBrake to Encode Subtitles
Once you open HandBrake, click the Source button and choose your video file. Go ahead and choose a destination for your output file and leave everything else as is. Make sure Normal is chosen in the Presets menu on the far right.
Now click on the Subtitles tab at the bottom and click on the Import SRT button. Pick the SRT file and it will show up in the list box below.
You can add more than one subtitle file if you need, i.e. for multiple languages. That’s about it for HandBrake! It’s a very simple process and works well.
Use TEncoder to Encode Subtitles
Now close out Subtitle Workshop and open up TEncoder. First, we have to add the video file that we want to add the subtitles to. Go ahead and click on the Add (+) button and choose your video file.
Note that TEncoder is also a video/audio converter, so you can also change the format of the video file if you like. By default, it will create an AVI file using the Xvid video codec and MP3 audio codec. If you want everything to be the same as the original file, choose Direct Copy from the Video Codec dropdown box.
Now make sure to check the Enable Subtitles box at the bottom right. You need to make sure that the subtitle file is in the same folder as the video file and that it has the same name also.
If you want a higher quality file, go ahead and check the Do two pass encoding box. You can also click on Subtitle Options to configure a few more options for configuring the look and feel of the subtitles.
Note that when you click on the name of the video file in the list, you should see the path to the subtitle file automatically populate in the text boxes above. At this point, you can be sure the subtitle file has been located properly. Go ahead and click the Encode button to start.
If you check the Same as Source box, the newly created output file will be located in the same location as your original video file. You should now be able to play it in your media player and turn on subtitles to see them in action.
It’s also worth noting that a lot of video players will either automatically find a subtitle or will let you choose one manually. This can be useful if you don’t plan on distributing the video, but just want to see the subtitles for a video while you watch a movie, etc. In my example, I’ll show you how this is done using VLC Media Player.
First, open your video file and then right-click anywhere on the video, click on Subtitle and then click on Add Subtitle File. The program is smart enough to find it for you if you gave it the same name as the video file, in which case you’ll see that Sub Track is not greyed out and you should be able to pick a subtitle track.
There are a few steps in the process and it can be a bit complicated and confusing at times, so if you have any questions or have gotten stuck, feel free to post a comment and we’ll try to help. Enjoy!