分两种情况

同时支持m3u8和mp4文件

某些视频同时支持m3u8和mp4视频文件,将m3u8改成mp4后直接:

wget -c http://www.xxx.com/xxxx.mp4

只有m3u8视频列表

可以用ffmpeg下载合并成mp4文件

ffmpeg -i "m3u8列表url" -c copy "存储视频名字.mp4"

其中-i表示输入,-c copy表示和源视频采用相同的音视频编码

样例:

➜  ~ ffmpeg -i "http://vod.mudu.tv/media-join-slice/9592hz24y6zqcqm54qncz3osv.m3u8" -c copy "深度学习服务器配置.mp4"
ffmpeg version 3.3.4-2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.2.0-8ubuntu2)
configuration: --prefix=/usr --extra-version=2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
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 @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/162.ts' for reading
Input #0, hls,applehttp, from 'http://vod.mudu.tv/media-join-slice/9592hz24y6zqcqm54qncz3osv.m3u8':
Duration: 01:13:36.83, start: 1972.540522, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 852x480, 30 tbr, 90k tbn, 60 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Output #0, mp4, to '深度学习服务器配置.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p, 852x480, q=2-31, 30 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/163.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/164.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/165.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/166.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/167.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/168.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/169.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/170.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/171.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/172.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/173.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/174.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/175.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/176.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/177.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/178.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/179.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/180.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/181.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/182.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/183.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/184.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/185.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/186.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/187.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/188.ts' for reading
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/189.ts' for reading
......
[hls,applehttp @ 0x5594afe3b880] Opening 'http://vod.mudu.tv/watch/2018-07-25/g3ov35/429.ts' for reading
frame=132505 fps=669 q=-1.0 Lsize= 1434228kB time=01:13:36.82 bitrate=2660.1kbits/s speed=22.3x
video:1348706kB audio:80736kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.334827%

下载m3u8视频的更多相关文章

  1. 爬虫 | Python下载m3u8视频

    目录 从 m3u8 文件中解析出 ts 信息 按时间截取视频 抓取 ts 文件 单文件测试 批量下载 合并 ts 文件 将合并的ts文件转化为视频文件 参考资料: m3u8格式介绍 ts文件格式介绍 ...

  2. python代码下载m3u8视频

    代码如下: # -*- coding: utf-8 -*- import requests import re import os import base64 from Crypto.Cipher i ...

  3. (Python基础教程之二十二)爬虫下载网页视频(video blob)

    Python基础教程 在SublimeEditor中配置Python环境 Python代码中添加注释 Python中的变量的使用 Python中的数据类型 Python中的关键字 Python字符串操 ...

  4. Python 爬虫实例(13) 下载 m3u8 格式视频

    Python  requests  下载  m3u8 格式    视频 最近爬取一个视频网站,遇到  m3u8 格式的视频需要下载. 抓包分析,视频文件是多个  ts 文件,什么是 ts文件,请去百度 ...

  5. 如何下载HLS视频到本地(m3u8)

      如何下载HLS视频到本地(m3u8)? CreateTime--2018年3月21日16:07:00 Author:Marydon 一.需求 很多连载的动漫需要VIP会员才能观看,而且有的由于版权 ...

  6. m3u8视频下载方法

    部分网站的视频内容,采用了m3u8的格式.正常打开网页可以,但是如果想下载到本地,就存在一定问题了.这里可以再获取到m3u8地址之后,利用vlc软件,来下载m3u8的视频. 工具:Firefox浏览器 ...

  7. 打造m3u8视频(流视频)下载解密合并器(kotlin)

    本文是对我原创工具m3u8视频下载合并器关键代码解析及软件实现的思路的讲解,想要工具的请跳转链接 1.思路说明 思路挺简单,具体步骤如下: 下载m3u8文件 解析m3u8文件获得ts文件列表 根据文件 ...

  8. stars-one原创工具——m3u8视频下载合并器(kotlin)

    一款可以下载m3u8.解密ts文件及合并ts文件的视频下载工具 蓝奏云下载地址 github地址 软件对你有帮助的话,不妨赞赏一波!感谢! 程序说明 采用多线程下载,可有效的提高下载速度 内置解密程序 ...

  9. 手机上的m3u8视频(缓存)怎么转成MP4?

    一.下载M3u8合并APK,自定义扫描手机中的m3u8文件目录.选择导出的目录,可以多个同时进行m3u8的合并任务. 合并后的文件可以完整播放,但是视频时间只有前十来秒,进度无法拖动. 二.将合并好的 ...

随机推荐

  1. SQL学习1:基础

    SQL 是用于访问和处理数据库的标准的计算机语言. SQL,指结构化查询语言,全称是 Structured Query Language. SQL 能做什么? SQL 面向数据库执行查询 SQL 可从 ...

  2. [Asp.net core]使用ssh命令发布asp.net core项目

    命令 # 移除之前发布的包 rm -rf ./.Publish rm -rf ./Wolfy.Blog.tar.gz # 编译并发布 将发布包打包在.Publish目录下 -o "../.P ...

  3. Intel处理器技术文档

    1.intel程序员手册(1986).pdf 下载地址 2.Intel® 64 and IA-32 Architectures Software Developer Manuals   下载链接 3. ...

  4. java 使用CXF将wsdl文件生成客户端代码命令java调用第三方的webservice应用实例

    1.先下载cxf包https://download.csdn.net/download/suizhikuo/108112362.解压缩包,通过cmd命令进入到bin目录下(cd cxf\bin的路径) ...

  5. MYSQL常用的性能指标总结和归纳

    (1) QPS(每秒Query量)QPS = Questions(or Queries) / uptimemysql> show global status like 'Question%';m ...

  6. Javascript Module pattern template. Shows a class with a constructor and public/private methods/properties. Also shows compatibility with CommonJS(eg Node.JS) and AMD (eg requireJS) as well as in a br

    /** * Created with JetBrains PhpStorm. * User: scotty * Date: 28/08/2013 * Time: 19:39 */ ;(function ...

  7. 对Faster R-CNN的理解(3)

    2.2 边框回归 边框回归使用下面的几个公式: xywh是预测值,带a的是anchor的xywh,带*的是GT Box的xywh,可以看作是anchor经过一定的变换回归到附近的GT Box.

  8. iOS scrollsToTop属性失效

    点击状态栏返回顶部失效,是因为scrollView的scrollsToTop属性失效 (继承于scrollView的tableView collectionView也算). 这个属性默认是开启的,然而 ...

  9. 每天一个linux命令(9):touch

    1.命令简介 touch命令将每个文件的访问时间和修改时间改为当前时间. 2.用法 touch [选项]... 文件... 3.选项 -a 只更改访问时间 -c, --no-create 不创建任何文 ...

  10. 洛谷 P1162 填涂颜色

    题目链接:https://www.luogu.org/problemnew/show/P1162 题目描述由数字0组成的方阵中,有一任意形状闭合圈,闭合圈由数字1构成,围圈时只走上下左右4个方向.现要 ...