下载m3u8视频
分两种情况
同时支持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视频的更多相关文章
- 爬虫 | Python下载m3u8视频
目录 从 m3u8 文件中解析出 ts 信息 按时间截取视频 抓取 ts 文件 单文件测试 批量下载 合并 ts 文件 将合并的ts文件转化为视频文件 参考资料: m3u8格式介绍 ts文件格式介绍 ...
- python代码下载m3u8视频
代码如下: # -*- coding: utf-8 -*- import requests import re import os import base64 from Crypto.Cipher i ...
- (Python基础教程之二十二)爬虫下载网页视频(video blob)
Python基础教程 在SublimeEditor中配置Python环境 Python代码中添加注释 Python中的变量的使用 Python中的数据类型 Python中的关键字 Python字符串操 ...
- Python 爬虫实例(13) 下载 m3u8 格式视频
Python requests 下载 m3u8 格式 视频 最近爬取一个视频网站,遇到 m3u8 格式的视频需要下载. 抓包分析,视频文件是多个 ts 文件,什么是 ts文件,请去百度 ...
- 如何下载HLS视频到本地(m3u8)
如何下载HLS视频到本地(m3u8)? CreateTime--2018年3月21日16:07:00 Author:Marydon 一.需求 很多连载的动漫需要VIP会员才能观看,而且有的由于版权 ...
- m3u8视频下载方法
部分网站的视频内容,采用了m3u8的格式.正常打开网页可以,但是如果想下载到本地,就存在一定问题了.这里可以再获取到m3u8地址之后,利用vlc软件,来下载m3u8的视频. 工具:Firefox浏览器 ...
- 打造m3u8视频(流视频)下载解密合并器(kotlin)
本文是对我原创工具m3u8视频下载合并器关键代码解析及软件实现的思路的讲解,想要工具的请跳转链接 1.思路说明 思路挺简单,具体步骤如下: 下载m3u8文件 解析m3u8文件获得ts文件列表 根据文件 ...
- stars-one原创工具——m3u8视频下载合并器(kotlin)
一款可以下载m3u8.解密ts文件及合并ts文件的视频下载工具 蓝奏云下载地址 github地址 软件对你有帮助的话,不妨赞赏一波!感谢! 程序说明 采用多线程下载,可有效的提高下载速度 内置解密程序 ...
- 手机上的m3u8视频(缓存)怎么转成MP4?
一.下载M3u8合并APK,自定义扫描手机中的m3u8文件目录.选择导出的目录,可以多个同时进行m3u8的合并任务. 合并后的文件可以完整播放,但是视频时间只有前十来秒,进度无法拖动. 二.将合并好的 ...
随机推荐
- Vue(八)发送跨域请求
使用vue-resource发送跨域请求 axios不支持跨域 1 安装vue-resource并引入 cnpm install vue-resource -S 2 基本用法 使用this.$http ...
- Gson 2.8.jar基础
1.下载包 json { xxx:xxx,xx:xxx,...... } 对象符号 都可以下载 Gson 开源项目 Jackson 杰克逊 Fastjson ...
- python 杂项
Python/JS/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
- RMQ(Range MinimumQuery)问题之ST算法
ST算法------是用来求解给定区间RMQ的最值,本文以最小值为例 ST算法分为两部分 离线预处理(nlogn):运用DP思想,用于求解区间最值,并保存到一个二维数组中. 在线查询 (O(1)):对 ...
- Fiddler Composer 模拟post请求
在模拟post请求的时候,发现服务器端无法接收post参数 发现原来的请求表头的设置问题加上表头 Content-Type: application/x-www-form-urlencoded 后正常
- 阿里云 CentOS7 安装 Nginx 后,无法访问的问题
在阿里云实例中,选择 网络与安全中的安全组.修改安全组规则. 例如: 但是还是不行 需要这样排查 netstat -anp | grep 80 iptables -L -n firewall- ...
- 【20180409】IT管理之IT十二条令
团队越来越大,靠人管几乎有力无心,只能靠制度管理了. 前段时间对部门颁布了12条令,效果明显. 特此Mark. 汇报: 三条总结:汇报讲究精简,一个事情最多一句话概括. 一页报告:内容精简,报告一页w ...
- [MySQL TroubleShooting] 服务启动报错
有个朋友发了一段启动错误的stack,当启动Skip_Grant_Table就不报错: 群里的大神找出来了因为udf_initv这个自定义函数报错. 但是一直想不通为啥服务启动要去运行自定义函数呢? ...
- mysql知识汇总
一.数据类型介绍 数据类型 字节长度 范围或用法 bigint 8 无符号[0,2^64-1],有符号[-2^63 ,2^63 -1] binary(M) M 类似Char的二进制存储,只包含byte ...
- eclipse is missing required source folder src/test/java
原因:maven的bug,不兼容eclipse 解决方法:右击工程,选择run-->maven-->build重新构建工程,就解决了.