[FFmpeg-user] How to copy all of 5 audio streams to mp4 file
Ulf Zibis
Ulf.Zibis at gmx.de
Mon Feb 18 22:13:29 EET 2019
Thanks Ted.
Am 18.02.19 um 19:59 schrieb Ted Park:
>> I got the same results with that. Does it matter at which position I put
>> these arguments and does it last to use only one of the two?
> I’m pretty sure probe size and analyze duration are per file, put it before the input. And they are both limits, so I think you need to use both (if you don’t, the default value for the unspecified one will be limiting).
You are right. My 1st attempt was only with "-probesize
9223372036854775807" before the "-i input", which resulted as same as
both after "-i input". Now I get a different result (the process used
over 6 GB memory, so my machine heavily swapped, but was successful in
the end), but with an error. So what to do with this error?
$ ffmpeg -probesize 9223372036854775807 -analyzeduration 7000000000 -i
"concat:002-C001/VLuN-001.vob|002-C002/VLuN-001.vob|002-C003/VLuN-001.vob|002-C004/VLuN-001.vob|002-C005/VLuN-001.vob|002-C006/VLuN-001.vob|002-C007/VLuN-001.vob|002-C008/VLuN-001.vob|002-C009/VLuN-001.vob|002-C010/VLuN-001.vob|002-C011/VLuN-001.vob|002-C012/VLuN-001.vob|002-C013/VLuN-001.vob|002-C014/VLuN-001.vob|002-C015/VLuN-001.vob|002-C016/VLuN-001.vob"
-map 0 -vf crop=720:552 -c:v libx264 -c:a copy -t 06:00 -movflags
+faststart /media/Sicherung/Filme/VLuN/ffmpeg/002/VLuN_6m.mp4
ffmpeg version 4.1-static https://johnvansickle.com/ffmpeg/ Copyright
(c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
[.....]
Input #0, mpeg, from
'concat:002-C001/VLuN-001.vob|002-C002/VLuN-001.vob|002-C003/VLuN-001.vob|002-C004/VLuN-001.vob|002-C005/VLuN-001.vob|002-C006/VLuN-001.vob|002-C007/VLuN-001.vob|002-C008/VLuN-001.vob|002-C009/VLuN-001.vob|002-C010/VLuN-001.vob|002-C011/VLuN-001.vob|002-C012/VLuN-001.vob|002-C013/VLuN-001.vob|002-C014/VLuN-001.vob|002-C015/VLuN-001.vob|002-C016/VLuN-001.vob':
Duration: 01:46:25.22, start: 0.280000, bitrate: 7663 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top
first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:2[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:3[0x82]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:4[0x83]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
Stream #0:5[0x84]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
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
>> When I look at dvd::rip, which I used to rip the DVD, it seems that
>> there are used images for the subtitles and when I invoke "create
>> vobsub" I get a bunch of files, where I don't know how to process with
>> ffmpeg. Can you give me another hint?
> Use the index file as the input, you might have gotten one file for each track/language? Also you should keep in mind that you can copy bitmap subtitles into mp4 but how to handle them isn’t universally defined like say, ttml tracks.
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
2
00:01:36,359 --> 00:01:38,310
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0002.pgm.txt
3
00:01:44,680 --> 00:01:48,030
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0003.pgm.txt
4
00:01:48,239 --> 00:01:50,189
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0004.pgm.txt
5
00:01:50,400 --> 00:01:52,349
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0005.pgm.txt
6
00:01:52,560 --> 00:01:55,829
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0006.pgm.txt
[.....]
54
00:05:09,759 --> 00:05:12,470
/media/Sicherung/Filme/VLuN/dvdrip/tmp/subtitles/002-C001/00/pic0054.pgm.txt
-Ulf
More information about the ffmpeg-user
mailing list