从视频流中下载 TS 文件 [英] Download TS files from video stream

查看:28
本文介绍了从视频流中下载 TS 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大多数网站上的视频都使用渐进式下载,这意味着视频会下载到我的计算机上,并且易于追踪.有很多扩展可以做到这一点,即使在开发工具中也很容易做到.

Videos on most sites make use of progressive downloading, which means that the video is downloaded to my computer, and easy to trace. There are lots of extensions out there to do this, and even in the dev-tools this is easily done.

在某些网站上流式传输视频.这意味着我们不只是下载一个文件,我们下载了很多小包.在开发工具中可以跟踪这些包.我感兴趣的网站是:http://www.rtlxl.nl/#!/goede-tijden-slechte-tijden-10821/c8e2bff7-5a5c-45cb-be2b-4b3b3e866ffb.

On certain websites videos are streamed. which means that we do no just download 1 file, we download lots of small packages. In the dev-tools these packages can be traced. The website I'm interested in is: http://www.rtlxl.nl/#!/goede-tijden-slechte-tijden-10821/c8e2bff7-5a5c-45cb-be2b-4b3b3e866ffb.

-这些包具有 .TS 扩展名.

-The packages have a .TS extension.

-可以通过复制请求的url来保存包

-Packages can be saved by copying the url of the request

-我无法播放这些文件.

-I can not play these files.

我一定是做错了什么,或者我遗漏了什么.我想知道我做错了什么.我想创建一个供个人使用的 chrome 扩展,它捕获所有包的 url.当我拥有所有 url 时,我想将它们传递给 php 脚本,该脚本下载它们并使用 ffmpeg 将它们粘贴到 mp4 文件中.

I must have done something wrong, or I'm missing something. I want to know what I am doing wrong. I want to create a chrome extension for personal use which captures the urls of all the packages. when I have all the urls I want to pass them on to a php scripts which downloads them and uses ffmpeg to paste them into a mp4 file.

请帮我拿包.

推荐答案

除了 @aalhanane 和 @Micheal Espinola Jr

Addition to @aalhanane and @Micheal Espinola Jr

因为 m3u8x 仅适用于 Windows.一旦您确定了 m3u8 url,您还可以使用 Jdownloader2 或 VLC Media Player 下载并连接流.

As m3u8x is only available for windows. Once you have identified the m3u8 url you can also use Jdownloader2 or VLC Media Player to download and concatenate the stream.

Jdownloader2:只需在 Jdownloader 打开时复制 m3u8 url.它将识别 Linkgrabber 选项卡中的流.

Jdownloader2: Just copy the m3u8 url when it the Jdownloader is open. It will recognize the stream in Linkgrabber tab.

VLC 3:

开放网络->粘贴 m3u8 网址 ->复选标记流输出->选择设置.选择输出文件、容器、视频和音频编码.(例如 output.mp4,容器:mpeg4,视频:h264,音频:mp4a)启动流.它不会播放视频,而是对其进行编码,通过移动视频播放进度条来显示编码进度.

Open Network -> Paste m3u8 url -> Checkmark Streamoutput -> Select Settings. Choose output file, container , video and audio encoding. (e.g output.mp4, container: mpeg4, video: h264, audio: mp4a) Start Stream. It will not play the video, but encode it, showing the encoding progress by moving the video play back progress bar.

警告:以前建议使用 chrome 扩展 StreamVideo Downloader 包含恶意软件.请参阅 reddit 帖子

WARNING: Previously suggesteed chrome extension Stream Video Downloader contains malware. See reddit post

这篇关于从视频流中下载 TS 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆