Advertisement
Guest User

ffmpeg_multi_input_audio_track_2_pass_multi_output_mpd

a guest
Mar 13th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 24.24 KB | None | 0 0
  1. # Pass 1
  2. ffmpeg -y \
  3. -i ../bunny.mp4 \
  4. -i ../track1.m4a \
  5. -i ../track2.m4a \
  6. -map 0:a \
  7. -metadata:s:a:0 language=en \
  8. -metadata:s:a:0 title=track_one \
  9. -map 1:a \
  10. -metadata:s:a:1 language=ch \
  11. -metadata:s:a:1 title=track_two \
  12. -map 2:a \
  13. -metadata:s:a:2 language=es \
  14. -metadata:s:a:2 title=track_three \
  15. -f dash \
  16. -map 0:v \
  17. -map 0:v:0 \
  18. -map 0:v:0 \
  19. -map 0:v:0 \
  20. -map 0:v:0 \
  21. -b:v:0 1460k \
  22. -b:v:1 683k \
  23. -b:v:2 462k \
  24. -b:v:3 332k \
  25. -b:v:4 203k \
  26. -s:v:0 1920x1080 \
  27. -s:v:1 1280x720 \
  28. -s:v:2 854x480 \
  29. -s:v:3 640x360 \
  30. -s:v:4 400x224 \
  31. -passlogfile:0 1080p \
  32. -passlogfile:1 720p \
  33. -passlogfile:2 640p \
  34. -passlogfile:3 360p \
  35. -passlogfile:4 240p \
  36. -c:v libx264 \
  37. -profile:v baseline \
  38. -movflags faststart \
  39. -r 30 \
  40. -seg_duration 4 \
  41. -single_file 1 \
  42. -hls_playlist 1 \
  43. -streaming 1 \
  44. -dash_segment_type mp4 \
  45. -pass 1 \
  46. -an \
  47. -f mp4 /dev/null \
  48. -vcodec libx264 \
  49. -profile:v baseline \
  50. -preset fast \
  51. -movflags faststart \
  52. -r 30 \
  53. -b:v 500k \
  54. -vf scale=-2:720 \
  55. -threads 0 \
  56. -passlogfile 720pflat \
  57. -pass 1 \
  58. -an \
  59. -f mp4 /dev/null;
  60.  
  61. #output pass 1
  62.  
  63. ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  64.   built with gcc 9.2.1 (Arch Linux 9.2.1+20200130-2) 20200130
  65.   configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  66.   libavutil      56. 31.100 / 56. 31.100
  67.   libavcodec     58. 54.100 / 58. 54.100
  68.   libavformat    58. 29.100 / 58. 29.100
  69.   libavdevice    58.  8.100 / 58.  8.100
  70.   libavfilter     7. 57.100 /  7. 57.100
  71.   libswscale      5.  5.100 /  5.  5.100
  72.   libswresample   3.  5.100 /  3.  5.100
  73.   libpostproc    55.  5.100 / 55.  5.100
  74. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../test.mp4':
  75.   Metadata:
  76.     major_brand     : mp42
  77.     minor_version   : 1
  78.     compatible_brands: mp41mp42isom
  79.     creation_time   : 2019-04-16T22:57:49.000000Z
  80.   Duration: 00:00:57.87, start: 0.000000, bitrate: 20213 kb/s
  81.     Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 124 kb/s (default)
  82.     Metadata:
  83.       creation_time   : 2019-04-16T22:57:49.000000Z
  84.       handler_name    : Core Media Audio
  85.     Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20038 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
  86.     Metadata:
  87.       creation_time   : 2019-04-16T22:57:49.000000Z
  88.       handler_name    : Core Media Video
  89. Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '../axelf.m4a':
  90.   Metadata:
  91.     major_brand     : M4A
  92.     minor_version   : 512
  93.     compatible_brands: isomiso2
  94.     title           : AxelF
  95.     encoder         : Lavf58.29.100
  96.     comment         : by www.OnlineMusicRecorder.com
  97.     genre           : Blues
  98.   Duration: 00:03:27.82, start: 0.000000, bitrate: 131 kb/s
  99.     Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 130 kb/s (default)
  100.     Metadata:
  101.       handler_name    : SoundHandler
  102. Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '../ocean.m4a':
  103.   Metadata:
  104.     major_brand     : M4A
  105.     minor_version   : 512
  106.     compatible_brands: isomiso2
  107.     encoder         : Lavf58.29.100
  108.     title           : oceans eleven
  109.   Duration: 00:01:00.05, start: 0.000000, bitrate: 130 kb/s
  110.     Stream #2:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
  111.     Metadata:
  112.       handler_name    : SoundHandler
  113. Stream mapping:
  114.   Stream #0:1 -> #0:0 (h264 (native) -> h264 (libx264))
  115.   Stream #0:1 -> #0:1 (h264 (native) -> h264 (libx264))
  116.   Stream #0:1 -> #0:2 (h264 (native) -> h264 (libx264))
  117.   Stream #0:1 -> #0:3 (h264 (native) -> h264 (libx264))
  118.   Stream #0:1 -> #0:4 (h264 (native) -> h264 (libx264))
  119.   Stream #0:1 -> #1:0 (h264 (native) -> h264 (libx264))
  120. Press [q] to stop, [?] for help
  121. [libx264 @ 0x556bb1991d00] using SAR=1/1
  122. [libx264 @ 0x556bb1991d00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  123. [libx264 @ 0x556bb1991d00] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
  124. [libx264 @ 0x556bb1991d00] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=1460 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  125. [libx264 @ 0x556bb19fb2c0] using SAR=1/1
  126. [libx264 @ 0x556bb19fb2c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  127. [libx264 @ 0x556bb19fb2c0] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
  128. [libx264 @ 0x556bb19fb2c0] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=683 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  129. [libx264 @ 0x556bb19fd340] using SAR=1280/1281
  130. [libx264 @ 0x556bb19fd340] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  131. [libx264 @ 0x556bb19fd340] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
  132. [libx264 @ 0x556bb19fd340] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=462 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  133. [libx264 @ 0x556bb19932c0] using SAR=1/1
  134. [libx264 @ 0x556bb19932c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  135. [libx264 @ 0x556bb19932c0] profile Constrained Baseline, level 3.0, 4:2:0, 8-bit
  136. [libx264 @ 0x556bb19932c0] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=332 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  137. [libx264 @ 0x556bb19aae80] using SAR=224/225
  138. [libx264 @ 0x556bb19aae80] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  139. [libx264 @ 0x556bb19aae80] profile Constrained Baseline, level 1.3, 4:2:0, 8-bit
  140. [libx264 @ 0x556bb19aae80] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=7 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=203 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  141. Output #0, mp4, to '/dev/null':
  142.   Metadata:
  143.     major_brand     : mp42
  144.     minor_version   : 1
  145.     compatible_brands: mp41mp42isom
  146.     encoder         : Lavf58.29.100
  147.     Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1460 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  148.     Metadata:
  149.       creation_time   : 2019-04-16T22:57:49.000000Z
  150.       handler_name    : Core Media Video
  151.       encoder         : Lavc58.54.100 libx264
  152.     Side data:
  153.       cpb: bitrate max/min/avg: 0/0/1460000 buffer size: 0 vbv_delay: -1
  154.     Stream #0:1(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 683 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  155.     Metadata:
  156.       creation_time   : 2019-04-16T22:57:49.000000Z
  157.       handler_name    : Core Media Video
  158.       encoder         : Lavc58.54.100 libx264
  159.     Side data:
  160.       cpb: bitrate max/min/avg: 0/0/683000 buffer size: 0 vbv_delay: -1
  161.     Stream #0:2(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 854x480 [SAR 1280:1281 DAR 16:9], q=-1--1, 462 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  162.     Metadata:
  163.       creation_time   : 2019-04-16T22:57:49.000000Z
  164.       handler_name    : Core Media Video
  165.       encoder         : Lavc58.54.100 libx264
  166.     Side data:
  167.       cpb: bitrate max/min/avg: 0/0/462000 buffer size: 0 vbv_delay: -1
  168.     Stream #0:3(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 640x360 [SAR 1:1 DAR 16:9], q=-1--1, 332 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  169.     Metadata:
  170.       creation_time   : 2019-04-16T22:57:49.000000Z
  171.       handler_name    : Core Media Video
  172.       encoder         : Lavc58.54.100 libx264
  173.     Side data:
  174.       cpb: bitrate max/min/avg: 0/0/332000 buffer size: 0 vbv_delay: -1
  175.     Stream #0:4(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 400x224 [SAR 224:225 DAR 16:9], q=-1--1, 203 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  176.     Metadata:
  177.       creation_time   : 2019-04-16T22:57:49.000000Z
  178.       handler_name    : Core Media Video
  179.       encoder         : Lavc58.54.100 libx264
  180.     Side data:
  181.       cpb: bitrate max/min/avg: 0/0/203000 buffer size: 0 vbv_delay: -1
  182. [libx264 @ 0x556bb19af140] using SAR=1/1
  183. [libx264 @ 0x556bb19af140] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  184. [libx264 @ 0x556bb19af140] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
  185. [libx264 @ 0x556bb19af140] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
  186. Output #1, mp4, to '/dev/null':
  187.   Metadata:
  188.     major_brand     : mp42
  189.     minor_version   : 1
  190.     compatible_brands: mp41mp42isom
  191.     encoder         : Lavf58.29.100
  192.     Stream #1:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 500 kb/s, 30 fps, 15360 tbn, 30 tbc (default)
  193.     Metadata:
  194.       creation_time   : 2019-04-16T22:57:49.000000Z
  195.       handler_name    : Core Media Video
  196.       encoder         : Lavc58.54.100 libx264
  197.     Side data:
  198.       cpb: bitrate max/min/avg: 0/0/500000 buffer size: 0 vbv_delay: -1
  199. [mp4 @ 0x556bb198aec0] Starting second pass: moving the moov atom to the beginning of the file bitrate=3188.9kbits/s dup=0 drop=10284 speed=1.24x
  200. [mp4 @ 0x556bb19ab8c0] Starting second pass: moving the moov atom to the beginning of the file
  201. frame= 1738 fps= 38 q=-1.0 Lq=-1.0 q=-1.0 q=-1.0 q=-1.0 q=-1.0 size=   23425kB time=00:00:57.90 bitrate=3314.3kbits/s dup=0 drop=10386 speed=1.26x
  202. video:27196kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  203. [libx264 @ 0x556bb1991d00] frame I:9     Avg QP:21.51  size: 62103
  204. [libx264 @ 0x556bb1991d00] frame P:1729  Avg QP:24.43  size:  6094
  205. [libx264 @ 0x556bb1991d00] mb I  I16..4: 80.7%  0.0% 19.3%
  206. [libx264 @ 0x556bb1991d00] mb P  I16..4:  8.9%  0.0%  0.0%  P16..4: 15.0%  0.0%  0.0%  0.0%  0.0%    skip:76.1%
  207. [libx264 @ 0x556bb1991d00] final ratefactor: 25.89
  208. [libx264 @ 0x556bb1991d00] coded y,uvDC,uvAC intra: 8.3% 35.4% 2.3% inter: 2.0% 6.2% 0.1%
  209. [libx264 @ 0x556bb1991d00] i16 v,h,dc,p: 55% 25% 16%  5%
  210. [libx264 @ 0x556bb1991d00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 26% 21%  5%  5%  4%  6%  4%  5%
  211. [libx264 @ 0x556bb1991d00] i8c dc,h,v,p: 57% 21% 21%  1%
  212. [libx264 @ 0x556bb1991d00] kb/s:1532.14
  213. [libx264 @ 0x556bb19fb2c0] frame I:9     Avg QP:21.54  size: 32965
  214. [libx264 @ 0x556bb19fb2c0] frame P:1729  Avg QP:24.47  size:  2865
  215. [libx264 @ 0x556bb19fb2c0] mb I  I16..4: 75.6%  0.0% 24.4%
  216. [libx264 @ 0x556bb19fb2c0] mb P  I16..4:  5.5%  0.0%  0.0%  P16..4: 16.9%  0.0%  0.0%  0.0%  0.0%    skip:77.6%
  217. [libx264 @ 0x556bb19fb2c0] final ratefactor: 24.71
  218. [libx264 @ 0x556bb19fb2c0] coded y,uvDC,uvAC intra: 10.1% 28.5% 3.6% inter: 3.2% 5.5% 0.3%
  219. [libx264 @ 0x556bb19fb2c0] i16 v,h,dc,p: 50% 27% 17%  7%
  220. [libx264 @ 0x556bb19fb2c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 29% 19%  5%  5%  4%  6%  4%  5%
  221. [libx264 @ 0x556bb19fb2c0] i8c dc,h,v,p: 64% 17% 18%  1%
  222. [libx264 @ 0x556bb19fb2c0] kb/s:724.93
  223. [libx264 @ 0x556bb19fd340] frame I:8     Avg QP:20.89  size: 24254
  224. [libx264 @ 0x556bb19fd340] frame P:1730  Avg QP:23.10  size:  1939
  225. [libx264 @ 0x556bb19fd340] mb I  I16..4: 62.2%  0.0% 37.8%
  226. [libx264 @ 0x556bb19fd340] mb P  I16..4:  4.5%  0.0%  0.0%  P16..4: 22.7%  0.0%  0.0%  0.0%  0.0%    skip:72.8%
  227. [libx264 @ 0x556bb19fd340] final ratefactor: 23.08
  228. [libx264 @ 0x556bb19fd340] coded y,uvDC,uvAC intra: 15.5% 30.5% 5.6% inter: 5.6% 7.6% 0.7%
  229. [libx264 @ 0x556bb19fd340] i16 v,h,dc,p: 47% 27% 18%  7%
  230. [libx264 @ 0x556bb19fd340] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 30% 16%  5%  5%  4%  6%  4%  5%
  231. [libx264 @ 0x556bb19fd340] i8c dc,h,v,p: 64% 17% 18%  1%
  232. [libx264 @ 0x556bb19fd340] kb/s:489.98
  233. [libx264 @ 0x556bb19932c0] frame I:8     Avg QP:20.86  size: 17321
  234. [libx264 @ 0x556bb19932c0] frame P:1730  Avg QP:22.60  size:  1391
  235. [libx264 @ 0x556bb19932c0] mb I  I16..4: 54.2%  0.0% 45.8%
  236. [libx264 @ 0x556bb19932c0] mb P  I16..4:  3.9%  0.0%  0.0%  P16..4: 25.8%  0.0%  0.0%  0.0%  0.0%    skip:70.3%
  237. [libx264 @ 0x556bb19932c0] final ratefactor: 22.49
  238. [libx264 @ 0x556bb19932c0] coded y,uvDC,uvAC intra: 23.5% 30.4% 6.4% inter: 7.3% 8.2% 1.1%
  239. [libx264 @ 0x556bb19932c0] i16 v,h,dc,p: 47% 25% 21%  7%
  240. [libx264 @ 0x556bb19932c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 29% 14%  5%  5%  4%  6%  4%  5%
  241. [libx264 @ 0x556bb19932c0] i8c dc,h,v,p: 64% 16% 18%  1%
  242. [libx264 @ 0x556bb19932c0] kb/s:351.42
  243. [libx264 @ 0x556bb19aae80] frame I:8     Avg QP:19.46  size: 10450
  244. [libx264 @ 0x556bb19aae80] frame P:1730  Avg QP:20.77  size:   845
  245. [libx264 @ 0x556bb19aae80] mb I  I16..4: 40.6%  0.0% 59.4%
  246. [libx264 @ 0x556bb19aae80] mb P  I16..4:  2.1%  0.0%  0.0%  P16..4: 32.5%  0.0%  0.0%  0.0%  0.0%    skip:65.4%
  247. [libx264 @ 0x556bb19aae80] final ratefactor: 20.75
  248. [libx264 @ 0x556bb19aae80] coded y,uvDC,uvAC intra: 32.3% 35.7% 11.9% inter: 11.6% 10.1% 2.4%
  249. [libx264 @ 0x556bb19aae80] i16 v,h,dc,p: 47% 23% 21%  9%
  250. [libx264 @ 0x556bb19aae80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 29% 13%  5%  6%  5%  7%  4%  5%
  251. [libx264 @ 0x556bb19aae80] i8c dc,h,v,p: 63% 16% 19%  2%
  252. [libx264 @ 0x556bb19aae80] kb/s:213.53
  253. [libx264 @ 0x556bb19af140] frame I:8     Avg QP:23.77  size: 30206
  254. [libx264 @ 0x556bb19af140] frame P:1730  Avg QP:26.46  size:  2092
  255. [libx264 @ 0x556bb19af140] mb I  I16..4: 76.1%  0.0% 23.9%
  256. [libx264 @ 0x556bb19af140] mb P  I16..4:  4.4%  0.0%  0.0%  P16..4: 12.8%  0.0%  0.0%  0.0%  0.0%    skip:82.8%
  257. [libx264 @ 0x556bb19af140] final ratefactor: 26.51
  258. [libx264 @ 0x556bb19af140] coded y,uvDC,uvAC intra: 9.9% 23.3% 3.7% inter: 2.3% 3.2% 0.1%
  259. [libx264 @ 0x556bb19af140] i16 v,h,dc,p: 49% 28% 17%  7%
  260. [libx264 @ 0x556bb19af140] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 29% 19%  5%  5%  4%  6%  4%  5%
  261. [libx264 @ 0x556bb19af140] i8c dc,h,v,p: 66% 16% 16%  1%
  262. [libx264 @ 0x556bb19af140] kb/s:533.08
  263.  
  264. # Pass 2
  265.  
  266. ffmpeg \
  267. -y \
  268. -i ../bunny.mp4 \
  269. -i ../track1.m4a \
  270. -i ../track2.m4a \
  271. -map 0:a \
  272. -metadata:s:a:0 language=en \
  273. -metadata:s:a:0 title=track_one \
  274. -map 1:a \
  275. -metadata:s:a:1 language=ch \
  276. -metadata:s:a:1 title=track_two \
  277. -map 2:a \
  278. -metadata:s:a:2 language=es \
  279. -metadata:s:a:2 title=track_three \
  280. -f dash \
  281. -map 0:v \
  282. -map 0:v:0 \
  283. -map 0:v:0 \
  284. -map 0:v:0 \
  285. -map 0:v:0 \
  286. -b:v:0 1460k \
  287. -b:v:1 683k \
  288. -b:v:2 462k \
  289. -b:v:3 332k \
  290. -b:v:4 203k \
  291. -s:v:0 1920x1080 \
  292. -s:v:1 1280x720 \
  293. -s:v:2 854x480 \
  294. -s:v:3 640x360 \
  295. -s:v:4 400x224 \
  296. -passlogfile:0 1080p \
  297. -passlogfile:1 720p \
  298. -passlogfile:2 640p \
  299. -passlogfile:3 360p \
  300. -passlogfile:4 240p \
  301. -c:v libx264 \
  302. -profile:v baseline \
  303. -movflags faststart \
  304. -r 30 \
  305. -seg_duration 4 \
  306. -single_file 1 \
  307. -hls_playlist 1 \
  308. -streaming 1 \
  309. -dash_segment_type mp4 \
  310. -pass 2 ../out/out.mpd \
  311. -vcodec libx264 \
  312. -profile:v baseline \
  313. -preset fast \
  314. -movflags faststart \
  315. -r 30 \
  316. -b:v 500k \
  317. -vf scale=-2:720 \
  318. -threads 0 \
  319. -passlogfile 720pflat \
  320. -pass 2 ../out/out-720.mp4  ../out/out.mp3;
  321.  
  322. #Pass 2 Output
  323.  
  324. ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
  325.   built with gcc 9.2.1 (Arch Linux 9.2.1+20200130-2) 20200130
  326.   configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  327.   libavutil      56. 31.100 / 56. 31.100
  328.   libavcodec     58. 54.100 / 58. 54.100
  329.   libavformat    58. 29.100 / 58. 29.100
  330.   libavdevice    58.  8.100 / 58.  8.100
  331.   libavfilter     7. 57.100 /  7. 57.100
  332.   libswscale      5.  5.100 /  5.  5.100
  333.   libswresample   3.  5.100 /  3.  5.100
  334.   libpostproc    55.  5.100 / 55.  5.100
  335. Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../test.mp4':
  336.   Metadata:
  337.     major_brand     : mp42
  338.     minor_version   : 1
  339.     compatible_brands: mp41mp42isom
  340.     creation_time   : 2019-04-16T22:57:49.000000Z
  341.   Duration: 00:00:57.87, start: 0.000000, bitrate: 20213 kb/s
  342.     Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 124 kb/s (default)
  343.     Metadata:
  344.       creation_time   : 2019-04-16T22:57:49.000000Z
  345.       handler_name    : Core Media Audio
  346.     Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 20038 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
  347.     Metadata:
  348.       creation_time   : 2019-04-16T22:57:49.000000Z
  349.       handler_name    : Core Media Video
  350. Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '../axelf.m4a':
  351.   Metadata:
  352.     major_brand     : M4A
  353.     minor_version   : 512
  354.     compatible_brands: isomiso2
  355.     title           : AxelF
  356.     encoder         : Lavf58.29.100
  357.     comment         : by www.OnlineMusicRecorder.com
  358.     genre           : Blues
  359.   Duration: 00:03:27.82, start: 0.000000, bitrate: 131 kb/s
  360.     Stream #1:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 130 kb/s (default)
  361.     Metadata:
  362.       handler_name    : SoundHandler
  363. Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '../ocean.m4a':
  364.   Metadata:
  365.     major_brand     : M4A
  366.     minor_version   : 512
  367.     compatible_brands: isomiso2
  368.     encoder         : Lavf58.29.100
  369.     title           : oceans eleven
  370.   Duration: 00:01:00.05, start: 0.000000, bitrate: 130 kb/s
  371.     Stream #2:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
  372.     Metadata:
  373.       handler_name    : SoundHandler
  374. Stream mapping:
  375.   Stream #0:0 -> #0:0 (copy)
  376.   Stream #1:0 -> #0:1 (copy)
  377.   Stream #2:0 -> #0:2 (copy)
  378.   Stream #0:1 -> #0:3 (h264 (native) -> h264 (libx264))
  379.   Stream #0:1 -> #0:4 (h264 (native) -> h264 (libx264))
  380.   Stream #0:1 -> #0:5 (h264 (native) -> h264 (libx264))
  381.   Stream #0:1 -> #0:6 (h264 (native) -> h264 (libx264))
  382.   Stream #0:1 -> #0:7 (h264 (native) -> h264 (libx264))
  383.   Stream #0:1 -> #1:0 (h264 (native) -> h264 (libx264))
  384.   Stream #0:0 -> #1:1 (aac (native) -> aac (native))
  385.   Stream #0:0 -> #2:0 (aac (native) -> mp3 (libmp3lame))
  386. Press [q] to stop, [?] for help
  387. Output #2, mp3, to '../out2/out.mp3':
  388.   Metadata:
  389.     major_brand     : mp42
  390.     minor_version   : 1
  391.     compatible_brands: mp41mp42isom
  392.     TSSE            : Lavf58.29.100
  393.     Stream #2:0(eng): Audio: mp3 (libmp3lame), 48000 Hz, stereo, fltp (default)
  394.     Metadata:
  395.       creation_time   : 2019-04-16T22:57:49.000000Z
  396.       handler_name    : Core Media Audio
  397.       encoder         : Lavc58.54.100 libmp3lame
  398. [libx264 @ 0x55783aa2d680] using SAR=1/1
  399. [libx264 @ 0x55783aa2d680] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  400. [libx264 @ 0x55783aa2d680] profile Constrained Baseline, level 4.0, 4:2:0, 8-bit
  401. [libx264 @ 0x55783aa2d680] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=1460 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
  402. [libx264 @ 0x55783aa2ec40] using SAR=1/1
  403. [libx264 @ 0x55783aa2ec40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  404. [libx264 @ 0x55783aa2ec40] profile Constrained Baseline, level 3.1, 4:2:0, 8-bit
  405. [libx264 @ 0x55783aa2ec40] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=683 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
  406. [libx264 @ 0x55783aa264c0] using SAR=1280/1281
  407. [libx264 @ 0x55783aa264c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
  408. [libx264 @ 0x55783aa264c0] ratecontrol_init: can't open stats file
  409. Error initializing output stream 0:5 -- Error while opening encoder for output stream #0:5 - maybe incorrect parameters such as bit_rate, rate, width or height
  410. [aac @ 0x55783aab3e00] Qavg: 25799.109
  411. [aac @ 0x55783aab3e00] 2 frames left in the queue on closing
  412. [libmp3lame @ 0x55783aab6dc0] 4 frames left in the queue on closing
  413. Conversion failed!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement