[FFmpeg-user] How to copy all of 5 audio streams to mp4 file

Moritz Barsnick barsnick at gmx.net
Mon Feb 18 23:02:22 EET 2019


On Mon, Feb 18, 2019 at 21:13:29 +0100, Ulf Zibis wrote:
> over 6 GB memory, so my machine heavily swapped

Probably okay if you reduce the -probesize and -analyzeduration to fit
your file. Sorry, it's a bit hit and miss.

>     Stream #0:6[0x26]: Subtitle: dvd_subtitle
>     Stream #0:7[0x20]: Subtitle: dvd_subtitle
>     Stream #0:8[0x21]: Subtitle: dvd_subtitle
>     Stream #0:9[0x22]: Subtitle: dvd_subtitle
>     Stream #0:10[0x24]: Subtitle: dvd_subtitle
>     Stream #0:11[0x25]: Subtitle: dvd_subtitle
>     Stream #0:12[0x27]: Subtitle: dvd_subtitle
>     Stream #0:13[0x28]: Subtitle: dvd_subtitle
>     Stream #0:14[0x29]: Subtitle: dvd_subtitle
>     Stream #0:15[0x2a]: Subtitle: dvd_subtitle
>     Stream #0:16[0x2b]: Subtitle: dvd_subtitle
>     Stream #0:17[0x2c]: Subtitle: dvd_subtitle
>     Stream #0:18[0x23]: Subtitle: dvd_subtitle
> Automatic encoder selection failed for output stream #0:6. Default
> encoder for format mp4 (codec none) is probably disabled. Please choose
> an encoder manually.
> Error selecting an encoder for stream 0:6

Exactly as Ted said (and I had forgotten). There are basically two
classes of subtitle streams: text and bitmap. ffmpeg cannot
convert/encode the latter to the former. The format mp4 does not
support any type of bitmap subtitles (to my knowledge), so you either
need a different tool to convert them to text (which is tedious), or
select a different output container. Matroska should be able to carry
them.

> I guess you mean the files named "pic.srtx". But what should I do with
> them? The content looks like:
> 1
> 00:00:31,160 --> 00:00:34,429
> /media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0001.pgm.txt

What's in these files? Are they really text? (I hadn't heard of srtx so
far.)

Moritz


More information about the ffmpeg-user mailing list