下载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的合并任务. 合并后的文件可以完整播放,但是视频时间只有前十来秒,进度无法拖动. 二.将合并好的 ...
随机推荐
- JS_高程6.面向对象的程序设计(1)理解对象
js的数据属性:P139(1)[[Configurable]](2)[[Enumerable]](3)[[Writable]](4)[[Value]] 使用Object.definerPropert( ...
- Vue(十四)过渡(动画)
过渡(动画) 1. 简介 Vue 在插入.更新或者移除 DOM 时,提供多种不同方式的应用过渡效果 本质上还是使用CSS3动画:transition.animation 2. 基本用法 使用trans ...
- 问题8:手机端实现点击按钮时更换颜色(解决IOS不显示背景)
CSS: .sval:active, .sval:focus{ background: #999;color:#fff;opacity:50; } 在触屏上,:hover和:active也不是直接就起 ...
- Deepin 15.4 破解安装 SecureFX-7.3 失败
参考先前的文章(Ubuntu 14 安装并破解SSH工具 SecureCRT),破解安装 SecureCRT-7.3 成功,但是破解安装 SecureFX-7.3 时就一直报错: Insuffici ...
- 说说GIL
上一篇:线程深入篇引入 Code:https://github.com/lotapp/BaseCode/tree/master/python/5.concurrent/Thread/3.GIL 说说G ...
- D3
D3.js是一个JavaScript库,它可以通过数据来操作文档.D3可以通过使用HTML.SVG和CSS把数据鲜活形象地展现出来.D3严格遵循Web标准,因而可以让你的程序轻松兼容现代主流浏览器并避 ...
- linux下的EDA——VCS使用
原帖地址:https://blog.csdn.net/moon9999/article/details/75283926 在Linux下对verilogHDL进行功能仿真时非常必要的,下面提供两种常见 ...
- Execution failed for task ':compileDebugAidl'.
昨天终于升级了下Ubuntu系统到16.04LTS,之前是12.04LTS(导致内网一些同事开发的网址无法打开,以及其他工具软件无法安装). 安装完android开发工具,运行之前的project,出 ...
- ionic 锁定方向 禁止横屏 orientation
安装插件 cordova-plugin-screen-orientation ionic cordova plugin add cordova-plugin-screen-orientation 添加 ...
- TensorFlow迭代速度变慢的问题
最近用TensorFlow实现遗传算法(Genetic Algorithms),发现迭代速度越来越慢,用time.time()观察以后,发现每次迭代都要比上一次慢0.5秒左右,但是每次迭代的计算量是差 ...