使用 Handbrake 转换视频
转换 视频

> 
> 这个开源工具可以很简单地将老视频转换为新格式。
> 
> 
> 


![](/data/attachment/album/201808/02/000319jfhhqvf0v5czvcxw.png)


最近，当我的儿子让我数字化他的高中篮球比赛的一些旧 DVD 时，我马上就想到了 [Handbrake](https://handbrake.fr/)。它是一个开源软件包，可轻松将视频转换为可在 MacOS、Windows、Linux、iOS、Android 和其他平台上播放的格式所需的所有工具。


Handbrake 是开源的，并在 [GPLv2 许可证](https://github.com/HandBrake/HandBrake/blob/master/LICENSE)下分发。它很容易在 MacOS、Windows 和 Linux 包括 [Fedora](https://fedora.pkgs.org/28/rpmfusion-free-x86_64/HandBrake-1.1.0-1.fc28.x86_64.rpm.html) 和 [Ubuntu](https://launchpad.net/%7Estebbins/+archive/ubuntu/handbrake-releases) 上安装。在 Linux 中，安装后就可以从命令行使用 `$ handbrake` 或从图形用户界面中选择它。（我的情况是 GNOME 3）


![](/data/attachment/album/201808/02/000042xjtyjjjacpjsajdn.png)


Handbrake 的菜单系统易于使用。单击 “Open Source” 选择要转换的视频源。对于我儿子的篮球视频，它是我的 Linux 笔记本中的 DVD 驱动器。将 DVD 插入驱动器后，软件会识别磁盘的内容。


![](/data/attachment/album/201808/02/000127t8a0mmmacaq5c8qh.png)


正如你在上面截图中的 “Source” 旁边看到的那样，Handbrake 将其识别为 720x480 的 DVD，宽高比为 4:3，以每秒 29.97 帧的速度录制，有一个音轨。该软件还能预览视频。


如果默认转换设置可以接受，只需按下 “Start Encoding” 按钮（一段时间后，根据处理器的速度），DVD 的内容将被转换并以默认格式 [M4V](https://en.wikipedia.org/wiki/M4V) 保存（可以改变）。


如果你不喜欢文件名，很容易改变它。


![](/data/attachment/album/201808/02/000325mk6ttntuotyoomzo.png)


Handbrake 有各种格式、大小和配置的输出选项。例如，它可以生成针对 YouTube、Vimeo 和其他网站以及 iPod、iPad、Apple TV、Amazon Fire TV、Roku、PlayStation 等设备优化的视频。


![](/data/attachment/album/201808/02/000202ac2vlw2j2kcvemc0.png)


你可以在 “Dimensions” 选项卡中更改视频输出大小。其他选项卡允许你应用过滤器、更改视频质量和编码、添加或修改音轨，包括字幕和修改章节。“Tags” 选项卡可让你识别输出视频文件中的作者、演员、导演、发布日期等。


![](/data/attachment/album/201808/02/000342r222c27joy5zai2h.png)


如果使用 Handbrake 为特定平台输出，可以使用包含的预设。


![](/data/attachment/album/201808/02/000220ai2xizdidq9432b5.png)


你还可以使用菜单选项创建自己的格式，具体取决于你需要的功能。


Handbrake 是一款非常强大的软件，但它并不是唯一的开源视频转换工具。你有其他喜欢的吗？如果有，请分享评论。




---


via: <https://opensource.com/article/18/7/handbrake>


作者：[Don Watkins](https://opensource.com/users/don-watkins) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
Recently, when my son asked me to digitally convert some old DVDs of his high school basketball games, I immediately knew I would use [Handbrake](https://handbrake.fr/). It is an open source package that has all the tools necessary to easily convert video into formats that can be played on MacOS, Windows, Linux, iOS, Android, and other platforms.

Handbrake is open source and distributable under the [GPLv2 license](https://github.com/HandBrake/HandBrake/blob/master/LICENSE). It's easy to install on MacOS, Windows, and Linux, including both [Fedora](https://fedora.pkgs.org/28/rpmfusion-free-x86_64/HandBrake-1.1.0-1.fc28.x86_64.rpm.html) and [Ubuntu](https://launchpad.net/~stebbins/+archive/ubuntu/handbrake-releases). In Linux, once it's installed, it can be launched from the command line with `$ handbrake`

or selected from the graphical user interface. (In my case, that is GNOME 3.)

![Handbrake file menu Handbrake file menu](https://opensource.com/sites/default/files/uploads/handbrake_1.png)

Handbrake's menu system is easy to use. Click on **Open Source** to select the video source you want to convert. For my son's basketball videos, that is the DVD drive in my Linux laptop. After inserting the DVD into the drive, the software identifies the contents of the disk.

![Handbrake source menu Handbrake source menu](https://opensource.com/sites/default/files/uploads/handbrake_2.png)

As you can see next to Source in the screenshot above, Handbrake recognizes it as a DVD with a 720x480 video in 4:3 aspect ratio, recorded at 29.97 frames per second, with one audio track. The software also previews the video.

If the default conversion settings are acceptable, just press the **Start Encoding** button and (after a period of time, depending on the speed of your processor) the DVD's contents will be converted and saved in the default format, [M4V](https://en.wikipedia.org/wiki/M4V) (which can be changed).

If you don't like the filename, it's easy to change it.

![Handbrake Save As option Handbrake Save As option](https://opensource.com/sites/default/files/uploads/handbrake_3.png)

Handbrake has a variety of output options for format, size, and disposition. For example, it can produce video optimized for YouTube, Vimeo, and other websites, as well as for devices including iPod, iPad, Apple TV, Amazon Fire TV, Roku, PlayStation, and more.

![Handbrake Preset options Handbrake Preset options](https://opensource.com/sites/default/files/uploads/handbrake_4.png)

You can change the video output size in the Dimensions menu tab. Other tabs allow you to apply filters, change video quality and encoding, add or modify an audio track, include subtitles, and modify chapters. The Tags menu tab lets you identify the author, actors, director, release date, and more on the output video file.

![Handbrake Dimensions menu Handbrake Dimensions menu](https://opensource.com/sites/default/files/uploads/handbrake_5.png)

If you want to set Handbrake to produce output for a specific platform, you can use the included presets.

![Handbrake preset list Handbrake preset list](https://opensource.com/sites/default/files/uploads/handbrake_6.png)

You can also use the menu options to create your own format, depending on the functionality you want.

Handbrake is an incredibly powerful piece of software, but it's not the only open source video conversion tool out there. Do you have another favorite? If so, please share in the comments.

## Comments are closed.