m3u8及TS文件下载解密:用FFmpeg解密合并m3u8中ts文件(一)

本文介绍了如何使用FFmpeg解密并合并m3u8中的TS文件,提供了几种基本命令示例,并指出了一种常见错误——全角‘-’导致的选项未识别问题。此外,还提到了TSMaster作为m3u8及TS文件的下载解密工具,提供了下载链接。
摘要由CSDN通过智能技术生成

FFMPEG的基本命令

用FFMPEG来解密合并转化TS文件,网上有好多种写法,比如:

ffmpeg -protocol_whitelist “file,http,crypto,tcp” -i index.m3u8 -c copy out.ts

ffmpeg -allowed_extensions ALL -i index.m3u8 -c copy new.mp4

ffmpeg -allowed_extensions ALL -i index1.m3u8 -c copy -bsf:a aac_adtstoasc index.mp4

等。我直接用的中间这个就可以了。

String m3u8file = textBox5.Text;
var tool = @“ffmepg.exe”;
var command = " -allowed_extensions ALL -i " + m3u8file + " -c copy " + textBox8.Text + “\out.mp4 -y”;
using (var p = new Process())
{
RedirectExcuteProcess(p, tool, command, (s, e) => ShowDecodeInfo(m3u8file, e.Data));
}

遇到过的奇怪问题

在命令行调用FFMPEG时,出现错误
Unrecognized option ‘copy’.
Error splitting the argument list: Option not found

  • 3
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值