[FFmpeg-user] How to copy all of 5 audio streams to mp4 file
Ulf Zibis
Ulf.Zibis at gmx.de
Mon Feb 18 17:29:01 EET 2019
Am 18.02.19 um 14:56 schrieb Moritz Barsnick:
> You can use "-map 0" to get *all* streams from the input. This is at
> the risk of also mapping e.g. data streams, which the output format may
> not support.
Great, this works fine now.
>> Also there should be 13 subtitle streams in this video, but I don't find
>> them here.
> In VOBs, subtitles tend to appear later in the files. Use large values
> for "-probesize" and "-analyzeduration" for seeing them (not only when
> probing, but also when converting).
>
> OTOH, your ffmpeg output doesn't report them appearing later, which it
> should, if it were to find them. So I'm not sure they're there.
They are detected now, but I don't have them in the output. Is that,
because I only have transcoded 6 min. this time?
$ ffmpeg -t 06:00 -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 -c:v libx264 -c:a copy -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
configuration: --enable-gpl --enable-version3 --enable-static
--disable-debug --disable-ffplay --disable-indev=sndio
--disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-gray --enable-libaom --enable-libfribidi
--enable-libass --enable-libvmaf --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband
--enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus
--enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
--enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265
--enable-libxml2 --enable-libxvid --enable-libzimg
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
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 mapping:
Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)
Stream #0:2 -> #0:2 (copy)
Stream #0:3 -> #0:3 (copy)
Stream #0:4 -> #0:4 (copy)
Stream #0:5 -> #0:5 (copy)
Press [q] to stop, [?] for help
[libx264 @ 0x6de0240] using SAR=64/45
[libx264 @ 0x6de0240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1
Cache64
[libx264 @ 0x6de0240] profile High, level 3.0, 4:2:0, 8-bit
[libx264 @ 0x6de0240] 264 - core 157 r2935 545de2f - H.264/MPEG-4 AVC
codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html -
options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7
psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
[mp4 @ 0x6ddd7c0] track 1: codec frame size is not set
[mp4 @ 0x6ddd7c0] track 2: codec frame size is not set
[mp4 @ 0x6ddd7c0] track 3: codec frame size is not set
[mp4 @ 0x6ddd7c0] track 4: codec frame size is not set
[mp4 @ 0x6ddd7c0] track 5: codec frame size is not set
Output #0, mp4, to '/media/Sicherung/Filme/VLuN/ffmpeg/002/VLuN_6m.mp4':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
720x576 [SAR 64:45 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.35.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
Stream #0:2: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
Stream #0:3: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
Stream #0:4: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
Stream #0:5: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp,
192 kb/s
frame= 70 fps=0.0 q=28.0 size= 0kB time=00:00:02.62 bitrate=
0.1kbits/frame= 118 fps=117 q=28.0 size= 256kB time=00:00:04.48
bitrate= 468.2kbits/frame= 142 fps= 92 q=28.0 size= 512kB
time=00:00:05.50 bitrate= 762.1kbits/frame= 166 fps= 81 q=28.0
size= 512kB time=00:00:06.43 bitrate= 652.2kbits/frame= 191 fps= 74
q=28.0 size= 768kB time=00:00:07.42 bitrate= 847.5kbits/frame= 218
fps= 70 q=28.0 size= 1024kB time=00:00:08.64 bitrate=
970.9kbits/frame= 245 fps= 67 q=28.0 size= 1280kB time=00:00:09.63
bitrate=1088.7kbits/frame= 273 fps= 66 q=28.0 size= 1280kB
time=00:00:10.68 bitrate= 981.1kbits/frame= 305 fps= 66 q=28.0 size=
1536kB time=00:00:12.03 bitrate=1045.8kbits/frame= 326 fps= 63 q=28.0
size= 1792kB time=00:00:12.92 bitrate=1135.6kbits/frame= 347 fps= 61
q=28.0 size= 1792kB time=00:00:13.76 bitrate=1066.9kbits/frame= 368
fps= 59 q=28.0 size= 2048kB time=00:00:14.49
bitrate=1157.4kbits/frame= 387 fps= 57 q=28.0 size= 2048kB
time=00:00:15.36 bitrate=1092.3kbits/frame= 406 fps= 56 q=28.0 size=
2304kB time=00:00:16.03 bitrate=1177.3kbits/frame= 427 fps= 55 q=28.0
size= 2304kB time=00:00:16.92 bitrate=1115.0kbits/frame= 443 fps= 53
q=28.0 size= 2560kB time=00:00:17.63 bitrate=1189.4kbits/frame= 460
fps= 52 q=28.0 size= 2560kB time=00:00:18.27
bitrate=1147.8kbits/frame= 478 fps= 51 q=28.0 size= 2560kB
time=00:00:18.88 bitrate=1110.8kbits/frame= 496 fps= 51 q=28.0 size=
2816kB time=00:00:19.68 bitrate=1172.2kbits/frame= 513 fps= 50 q=28.0
size= 2816kB time=00:00:20.28 bitrate=1137.1kbits/frame= 530 fps= 49
q=28.0 size= 3072kB time=00:00:21.05 bitrate=1195.2kbits/frame= 550
fps= 48 q=28.0 size= 3072kB time=00:00:21.79
bitrate=1154.8kbits/frame= 566 fps= 48 q=28.0 size= 3328kB
time=00:00:22.49 bitrate=1211.9kbits/frame= 586 fps= 47 q=28.0 size=
3328kB time=00:00:23.16 bitrate=1176.8kbits/frame= 607 fps= 47 q=25.0
size= 3584kB time=00:00:23.96 bitrate=1225.0kbits/frame= 694 fps= 52
q=28.0 size= 4096kB time=00:00:27.52 bitrate=1219.3kbits/[mpeg @
0x6d89bc0] New subtitle stream 0:6 at pos:26595342 and DTS:31.08s
[mpeg @ 0x6d89bc0] New subtitle stream 0:7 at pos:26603534 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:8 at pos:26607630 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:9 at pos:26611726 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:10 at pos:26615822 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:11 at pos:26619918 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:12 at pos:26624014 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:13 at pos:26669070 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:14 at pos:26673166 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:15 at pos:26677262 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:16 at pos:26685454 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:17 at pos:26695694 and DTS:31.16s
[mpeg @ 0x6d89bc0] New subtitle stream 0:18 at pos:26746894 and DTS:31.2s
frame= 790 fps= 57 q=28.0 size= 4352kB time=00:00:31.29
bitrate=1139.2kbits/frame= 871 fps= 60 q=28.0 size= 4864kB
time=00:00:34.65 bitrate=1149.8kbits/frame= 941 fps= 63 q=28.0 size=
5120kB time=00:00:37.40 bitrate=1121.2kbits/
[.....]
frame= 8992 fps= 28 q=28.0 size= 98304kB time=00:05:59.48
bitrate=2240.1kbits/[mp4 @ 0x6ddd7c0] Starting second pass: moving the
moov atom to the beginning of the file
frame= 9000 fps= 28 q=-1.0 Lsize= 99606kB time=00:06:00.25
bitrate=2265.0kbits/s speed= 1.1x
video:57030kB audio:42221kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.357521%
[libx264 @ 0x6de0240] frame I:82 Avg QP:19.95 size: 43523
[libx264 @ 0x6de0240] frame P:2769 Avg QP:22.80 size: 13011
[libx264 @ 0x6de0240] frame B:6149 Avg QP:26.18 size: 3058
[libx264 @ 0x6de0240] consecutive B-frames: 2.6% 7.0% 35.8% 54.7%
[libx264 @ 0x6de0240] mb I I16..4: 14.5% 73.2% 12.3%
[libx264 @ 0x6de0240] mb P I16..4: 1.0% 7.8% 1.3% P16..4: 33.8%
18.1% 12.0% 0.0% 0.0% skip:26.0%
[libx264 @ 0x6de0240] mb B I16..4: 0.2% 0.9% 0.1% B16..8: 38.8%
5.6% 1.2% direct: 2.1% skip:51.1% L0:39.6% L1:44.7% BI:15.8%
[libx264 @ 0x6de0240] 8x8 transform intra:76.6% inter:75.5%
[libx264 @ 0x6de0240] coded y,uvDC,uvAC intra: 74.9% 68.4% 22.9% inter:
20.1% 13.6% 0.3%
[libx264 @ 0x6de0240] i16 v,h,dc,p: 52% 22% 4% 21%
[libx264 @ 0x6de0240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 10% 20% 6% 7%
11% 6% 11% 7%
[libx264 @ 0x6de0240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 13% 6% 8%
11% 6% 9% 4%
[libx264 @ 0x6de0240] i8c dc,h,v,p: 52% 17% 24% 7%
[libx264 @ 0x6de0240] Weighted P-Frames: Y:16.0% UV:3.4%
[libx264 @ 0x6de0240] ref P L0: 57.9% 19.7% 15.9% 5.9% 0.6%
[libx264 @ 0x6de0240] ref B L0: 88.0% 10.1% 1.9%
[libx264 @ 0x6de0240] ref B L1: 97.7% 2.3%
[libx264 @ 0x6de0240] kb/s:1297.73
-Ulf
More information about the ffmpeg-user
mailing list