简体   繁体   English

将 DVD VIDEO_TS 目录转换为单个 mp4 或 mkv 文件?

[英]Convert a DVD VIDEO_TS dir to a single mp4 or mkv file?

I've got a file-to-file copy from a DVD, consisting of a Video_TS directory with a bunch of BUP, IFO and VOB files.我从 DVD 获得了文件到文件的副本,其中包含一个 Video_TS 目录和一堆 BUP、IFO 和 VOB 文件。 I can open some (not all) of these files in a player like VLC, and it seems to contain fragments of the movie but it appears like garbage.我可以在像 VLC 这样的播放器中打开这些文件中的一些(不是全部),它似乎包含电影的片段,但看起来像垃圾。 As if the encoding or file structure is corrupted.好像编码或文件结构已损坏。

However, if I open the entire Video_TS dir with VLC, it plays fine.但是,如果我用 VLC 打开整个 Video_TS 目录,它可以正常播放。

Is there a way to convert this Video_TS dir to one single video file, such as an MP4 or MKV?有没有办法将此 Video_TS 目录转换为单个视频文件,例如 MP4 或 MKV?

I've read about the possibility of binary concatenating the VOB files, and I tried that, but to no avail.我已经阅读了二进制连接VOB文件的可能性,我尝试过,但无济于事。 Also I wouldn't know how to the determine the exact order of the VOB files, and more importantly that information must be within the files itself somehow (considering that video players can play it automatically).此外,我不知道如何确定 VOB 文件的确切顺序,更重要的是,信息必须以某种方式包含在文件本身中(考虑到视频播放器可以自动播放)。

(edit) Someone edited the question and removed the ffmpeg part. (编辑)有人编辑了问题并删除了 ffmpeg 部分。 Sorry if I didn't clarify this further: I'm actually explicitly looking for a way to do this with ffmpeg (from shell, on macOS).抱歉,如果我没有进一步澄清这一点:我实际上是在明确地寻找一种使用 ffmpeg (来自 shell,在 macOS 上)执行此操作的方法。

While this answer is quite late, I just ran into this the other day.虽然这个答案已经很晚了,但我前几天刚遇到这个。 Often, with FFmpeg you can try doing cat *.VOB >out.vob or similar, but that didn't work for me.通常,使用FFmpeg您可以尝试执行cat *.VOB >out.vob或类似操作,但这对我不起作用。 However, with HandBrakeCLI (the command line version) I was able to get it working by using the --main-feature option.但是,使用 HandBrakeCLI(命令行版本),我可以使用--main-feature选项使其工作。

HandBrakeCLI -i VIDEO_TS --main-feature -o mynewvid.mkv

This worked perfectly.这工作得很好。 When I didn't use the --main-feature option, it didn't work.当我没有使用--main-feature选项时,它不起作用。

I was surprised that VLC can actually do it :) Go to Media -> Convert/Save我很惊讶 VLC 居然可以做到 :) 转到媒体 -> 转换/保存

在此处输入图片说明

It will convert files one by one, however, so you'll need to concatenate them afterwards但是,它将一个一个地转换文件,因此您需要在之后将它们连接起来

The VLC option is even easier than shown: after Media -> Convert, select the Disc tab instead of the File one, select the DVD option and then choose the folder containing your whole DVD file structure (the one full of VOBs). VLC 选项比显示的更容易:在 Media -> Convert 之后,选择 Disc 选项卡而不是 File 一,选择 DVD 选项,然后选择包含整个 DVD 文件结构的文件夹(一个充满 VOB 的文件夹)。 Convert to a destination format of your choice (eg x265/mp4) and the whole DVD will be converted in one go.转换为您选择的目标格式(例如 x265/mp4),整个 DVD 将一次性转换。 No need to concatenate files afterwards.之后无需连接文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM