[FFmpeg-user] combine dvd files with all info into single file

Moritz Barsnick barsnick at gmx.net
Sun Oct 9 22:53:02 EEST 2016


Hi,

On Wed, Oct 05, 2016 at 17:19:32 -0700, mymlact at gmx.com wrote:
> I originally wanted to create one single large VOB file, but read that
> technically VOBs should not be over 1Gb.  Additionally I'm not sure if
> VOB supports menus and subtitles, so converting to another format that
> my TV supports is acceptable.

Well, a DVD successfully stores menus ad subtitles in VOB files, so it
should be possible. I do not know though whether ffmpeg is capable of
correctly writing e.g. menus back to VOB files.

I also don't know whether a newer version of ffmpeg would help, it's
always worth a try.

What I do know though:

> b.  ffmpeg -y -i
> concat:VTS_01_0.IFO\|VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB
> -analyzeduration 999M  -map 0 -loglevel repeat+40 -dn  movie.vob
[...]

> Stream mapping:
>   Stream #0:1 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
>   Stream #0:2 -> #0:1 (ac3 (native) -> mp2 (native))
>   Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?))
>   Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?))
>   Stream #0:5 -> #0:4 (ac3 (native) -> mp2 (native))
> Encoder (codec none) not found for output stream #0:2

You should specify "-c copy".

>  c. ffmpeg -y -i
> concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB
> -analyzeduration 999M  -map 0 -loglevel repeat+40 -dn  movie.vob
[...]
> [mpeg @ 0xd7782cac800] Could not find codec parameters for stream 5
> (Audio: ac3, 0 channels): unspecified sample format

Oops?

>  d. ffmpeg -y -i
> concat:VTS_01_0.VOB\|VTS_01_1.VOB\|VTS_01_2.VOB\|VTS_01_3.VOB\|VTS_01_4.VOB\|VTS_01_5.VOB\|VTS_01_6.VOB
> -analyzeduration 999M  -map 0 -loglevel repeat+40 -dn -c:v copy  -c:a
> copy movie.mp4
[...]
> Stream mapping:
>   Stream #0:1 -> #0:0 (copy)
>   Stream #0:2 -> #0:1 (copy)
>   Stream #0:3 -> #0:2 (dvd_subtitle (dvdsub) -> ? (?))
>   Stream #0:4 -> #0:3 (dvd_subtitle (dvdsub) -> ? (?))
>   Stream #0:5 -> #0:4 (copy)
> Encoder (codec none) not found for output stream #0:2

Here you did specify to copy, but only for video and audio. But the
subtitle and data (menu?) streams are those which ffmpeg doesn't know
how to convert. So either add "-c:s copy -c:d copy", or just use "-c
copy".

And you probably won't get menu streams (and certainly not dvd_subtitle
tracks) into mp4 files. VOB seems sanest to try.

Moritz


More information about the ffmpeg-user mailing list