折腾:
【已解决】爬取nickjr.com中的动画片相关视频字幕等数据
期间,需要想办法去下载m3u8为单独的,比如mp4的视频文件
所以再去搜:
m3u8如何下载
有各种下载器
后者用ffmpeg
论如何下载一个在线的m3u8文件到本地成为一个mp4! – 51CTO.COM
“什么是 m3u8
说到 m3u8 就要先说说 HLS(HTTP Live Streaming)。HLS 是 Apple 公司针对 iPhone、iPod、iTouch 等移动设备,而研发的基于 HTTP 协议的流媒体解决方案。在 HLS 技术中,Web 服务器可以向客户端提供接近实时的音视频流,但是它又是使用的标准的 HTTP 协议。所以基本上,比较大型的点播直播类服务,都是基于 HLS 的。
而该技术的原理,就是将视频文件或者视频流,进行切片(ts文件),并建立索引文件(m3u8),它支持的视频流编码为 H.264,音频流编码为 AAC。
简单来说,基于 HLS 的视频流,会将完整的视频,切割成一个个比较小的视频片段(ts 文件),然后根据协议组合成一个 m3u8 文件。这些比较小的 ts 文件,是可以单独播放的。而视频播放器,拿到 m3u8 文件之后,根据对其内 ts 片段的索引,连续播放不同的视频片段,来达到流畅的播放效果。”
mac中去安装ffmpeg
<code>➜ youtubeSubtitle git:(master) ✗ brew install ffmpeg ==> Installing dependencies for ffmpeg: lame, x264, xvid ==> Installing ffmpeg dependency: lame ==> Downloading https://homebrew.bintray.com/bottles/lame-3.99.5.high_sierra.bottle.1.tar.gz ######################################################################## 100.0% ==> Pouring lame-3.99.5.high_sierra.bottle.1.tar.gz 🍺 /usr/local/Cellar/lame/3.99.5: 27 files, 2MB ==> Installing ffmpeg dependency: x264 ==> Downloading https://homebrew.bintray.com/bottles/x264-r2795.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring x264-r2795.high_sierra.bottle.tar.gz 🍺 /usr/local/Cellar/x264/r2795: 11 files, 3.2MB ==> Installing ffmpeg dependency: xvid ==> Downloading https://homebrew.bintray.com/bottles/xvid-1.3.4.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring xvid-1.3.4.high_sierra.bottle.tar.gz 🍺 /usr/local/Cellar/xvid/1.3.4: 10 files, 1.2MB ==> Installing ffmpeg ==> Downloading https://homebrew.bintray.com/bottles/ffmpeg-3.3.4.high_sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring ffmpeg-3.3.4.high_sierra.bottle.tar.gz 🍺 /usr/local/Cellar/ffmpeg/3.3.4: 243 files, 50.6MB </code>
然后去试试:
<code>ffmpeg -i https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/master.m3u8\?hdnea\=st%3D1521162845%7Eexp%3D1521177245%7Eacl%3D%2Fi%2Fmtvnorigin%2Fgsp.alias%2Fmediabus%2Fkids.com%2F2016%2F05%2F27%2F05%2F15%2F05%2Fdcbc371f6e59467097ec6bd3a162ba90%2F1194502%2FvqIve0Tr0p_HDSHS201A2_1194502_6386982_%2C384x216_278%2C512x288_498%2C640x360_1028%2C768x432_1528%2C960x540_2128%2C1280x720_3128%2C1920x1080_5128%2C.mp4.csmil%2F\*%7Ehmac%3Dd383f1d909eabecd89f13d275dca13c0bd733cc0189f62f10f4ae5a6a96149ca\&__a__\=off\&__b__\=450\&__viacc__\=NONE "Shimmer and Shine S2 Welcome to Zahramay Falls Ep201 Full Episode.mp4" </code>
输出很多:
<code>➜ youtubeSubtitle git:(master) ✗ ffmpeg -i https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/master.m3u8\?hdnea\=st%3D1521162845%7Eexp%3D1521177245%7Eacl%3D%2Fi%2Fmtvnorigin%2Fgsp.alias%2Fmediabus%2Fkids.com%2F2016%2F05%2F27%2F05%2F15%2F05%2Fdcbc371f6e59467097ec6bd3a162ba90%2F1194502%2FvqIve0Tr0p_HDSHS201A2_1194502_6386982_%2C384x216_278%2C512x288_498%2C640x360_1028%2C768x432_1528%2C960x540_2128%2C1280x720_3128%2C1920x1080_5128%2C.mp4.csmil%2F\*%7Ehmac%3Dd383f1d909eabecd89f13d275dca13c0bd733cc0189f62f10f4ae5a6a96149ca\&__a__\=off\&__b__\=450\&__viacc__\=NONE "Shimmer and Shine S2 Welcome to Zahramay Falls Ep201 Full Episode.mp4" ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers built with Apple LLVM version 9.0.0 (clang-900.0.37) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-vda libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 [hls,applehttp @ 0x7fb4b0800000] Opening 'https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_1_av.m3u8?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2016%2f05%2f27%2f05%2f15%2f05%2fdcbc371f6e59467097ec6bd3a162ba90%2f1194502%2fvqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading [hls,applehttp @ 0x7fb4b0800000] Opening 'https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_0_av.m3u8?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2016%2f05%2f27%2f05%2f15%2f05%2fdcbc371f6e59467097ec6bd3a162ba90%2f1194502%2fvqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading 。。。 [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment1_6_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading Input #0, hls,applehttp, from 'https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/master.m3u8?hdnea=st%3D1521162845%7Eexp%3D1521177245%7Eacl%3D%2Fi%2Fmtvnorigin%2Fgsp.alias%2Fmediabus%2Fkids.com%2F2016%2F05%2F27%2F05%2F15%2F05%2Fdcbc371f6e59467097ec6bd3a162ba90%2F1194502%2FvqIve0Tr0p_HDSHS201A2_1194502_6386982_%2C384x216_278%2C512x288_498%2C640x360_1028%2C768x432_1528%2C960x540_2128%2C1280x720_3128%2C1920x1080_5128%2C.mp4.csmil%2F*%7Ehmac%3Dd383f1d909eabecd89f13d275dca13c0bd733cc0189f62f10f4ae5a6a96149ca&__a__=off&__b__=450&__viacc__=NONE': Duration: 00:05:25.99, start: 0.100667, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 492000 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 512x288 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 492000 Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 492000 Program 1 Metadata: variant_bitrate : 278000 Stream #0:2: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 384x216 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 278000 Stream #0:3: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 278000 Program 2 Metadata: variant_bitrate : 937000 Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 937000 Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 937000 Program 3 Metadata: variant_bitrate : 1263000 Stream #0:6: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 768x432 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 1263000 Stream #0:7: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 1263000 Program 4 Metadata: variant_bitrate : 1822000 Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 1822000 Stream #0:9: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 1822000 Program 5 Metadata: variant_bitrate : 2655000 Stream #0:10: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 2655000 Stream #0:11: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 2655000 Program 6 Metadata: variant_bitrate : 4527000 Stream #0:12: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc Metadata: variant_bitrate : 4527000 Stream #0:13: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 4527000 Stream mapping: Stream #0:12 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:1 -> #0:1 (aac (native) -> aac (native)) Press [q] to stop, [?] for help [libx264 @ 0x7fb4af8b4c00] using SAR=1/1 [libx264 @ 0x7fb4af8b4c00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2 [libx264 @ 0x7fb4af8b4c00] profile High, level 4.0 [libx264 @ 0x7fb4af8b4c00] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=6 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=23 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 Output #0, mp4, to 'Shimmer and Shine S2 Welcome to Zahramay Falls Ep201 Full Episode.mp4': Metadata: encoder : Lavf57.71.100 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc Metadata: variant_bitrate : 4527000 encoder : Lavc57.89.100 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp, 128 kb/s Metadata: variant_bitrate : 492000 encoder : Lavc57.89.100 aac [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment2_1_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading [hls,applehttp @ 0x7fb4b0800000] No longer receiving playlist 1rate=2220.9kbits/s dup=1 drop=0 speed=0.655x [hls,applehttp @ 0x7fb4b0800000] No longer receiving playlist 2 [hls,applehttp @ 0x7fb4b0800000] No longer receiving playlist 3 [hls,applehttp @ 0x7fb4b0800000] No longer receiving playlist 4 [hls,applehttp @ 0x7fb4b0800000] No longer receiving playlist 5 [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment2_6_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment3_1_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment3_6_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading 。。。 [hls,applehttp @ 0x7fb4b0800000] Opening 'crypto+http://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/segment55_6_av.ts?null=0&id=AgBwBECN33f4DTguq1qjcuW+Wjbc%2fNWvRfSiV7PMZWi7Ilp0E7guCWiITntKm7o8HCDlimXWxioCeg%3d%3d&hdntl=exp=1521254328~acl=/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/*~data=hdntl~hmac=408010f8e4e4a9d6dd3666d5ce77fff2e0ce54ed62641fbc5e5ac3fe027bdccd' for reading frame= 7816 fps=7.7 q=-1.0 Lsize= 112294kB time=00:05:25.99 bitrate=2821.9kbits/s dup=1 drop=0 speed=0.32x video:106845kB audio:5230kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.195337% [libx264 @ 0x7fb4af8b4c00] frame I:57 Avg QP:17.03 size:220337 [libx264 @ 0x7fb4af8b4c00] frame P:2318 Avg QP:20.72 size: 26585 [libx264 @ 0x7fb4af8b4c00] frame B:5441 Avg QP:27.20 size: 6474 [libx264 @ 0x7fb4af8b4c00] consecutive B-frames: 4.1% 6.7% 7.3% 81.9% [libx264 @ 0x7fb4af8b4c00] mb I I16..4: 5.9% 78.3% 15.9% [libx264 @ 0x7fb4af8b4c00] mb P I16..4: 1.2% 6.8% 0.9% P16..4: 21.7% 6.8% 4.0% 0.0% 0.0% skip:58.6% [libx264 @ 0x7fb4af8b4c00] mb B I16..4: 0.2% 0.8% 0.1% B16..8: 14.7% 2.2% 0.5% direct: 1.0% skip:80.5% L0:39.8% L1:53.9% BI: 6.3% [libx264 @ 0x7fb4af8b4c00] 8x8 transform intra:76.2% inter:76.5% [libx264 @ 0x7fb4af8b4c00] coded y,uvDC,uvAC intra: 68.2% 86.7% 54.7% inter: 5.7% 9.3% 1.7% [libx264 @ 0x7fb4af8b4c00] i16 v,h,dc,p: 23% 24% 4% 49% [libx264 @ 0x7fb4af8b4c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 17% 12% 7% 9% 10% 9% 9% 9% [libx264 @ 0x7fb4af8b4c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 20% 11% 7% 11% 9% 9% 7% 6% [libx264 @ 0x7fb4af8b4c00] i8c dc,h,v,p: 41% 23% 22% 14% [libx264 @ 0x7fb4af8b4c00] Weighted P-Frames: Y:2.6% UV:2.2% [libx264 @ 0x7fb4af8b4c00] ref P L0: 67.9% 13.3% 13.2% 5.5% 0.1% [libx264 @ 0x7fb4af8b4c00] ref B L0: 89.9% 7.9% 2.2% [libx264 @ 0x7fb4af8b4c00] ref B L1: 96.3% 3.7% [libx264 @ 0x7fb4af8b4c00] kb/s:2684.94 [aac @ 0x7fb4af8b6400] Qavg: 645.356 </code>
下载期间,速度很慢啊:
下载了好多分钟,才下载了4多分钟的视频:
最后终于下载完毕了。。。
结果是115MB的视频
的确够大。
【后记 2018-03-23】
后来遇到:
希望在输出的文件名中包含子文件夹,或者是完整路径。不知道具体写法。
猜测是直接放在双引号中即可。
但是还是去搜搜:
ffmpeg 指定输出路径
“路径中出现空格或其他空白符时,则需要用双引号把路径包括起来。
比如 “d:\path\my file.mp4””
的确是这个做法。
所以意思就是:
<code>ffmpeg -i url "full_path" </code>
举例:
<code>ffmpeg -i https://cp450888-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2016/05/27/05/15/05/dcbc371f6e59467097ec6bd3a162ba90/1194502/vqIve0Tr0p_HDSHS201A2_1194502_6386982_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/master.m3u8\?hdnea\=st%3D1521162845%7Eexp%3D1521177245%7Eacl%3D%2Fi%2Fmtvnorigin%2Fgsp.alias%2Fmediabus%2Fkids.com%2F2016%2F05%2F27%2F05%2F15%2F05%2Fdcbc371f6e59467097ec6bd3a162ba90%2F1194502%2FvqIve0Tr0p_HDSHS201A2_1194502_6386982_%2C384x216_278%2C512x288_498%2C640x360_1028%2C768x432_1528%2C960x540_2128%2C1280x720_3128%2C1920x1080_5128%2C.mp4.csmil%2F\*%7Ehmac%3Dd383f1d909eabecd89f13d275dca13c0bd733cc0189f62f10f4ae5a6a96149ca\&__a__\=off\&__b__\=450\&__viacc__\=NONE "/Users/crifan/Downloads/nickjr.com/Shimmer and Shine S2 Welcome to Zahramay Falls Ep201 Full Episode.mp4" </code>
转载请注明:在路上 » 【已解决】Mac中如何下载m3u8为单独的视频文件