朋友發過來一個視頻希望錄製和下載下載,找了下工具藉助此工具成功下載和合成;
去緩衝拿到對應的流媒體的url地址,可以下載下來也可以通過url的方式進行合成;
推薦下載指定碼率的 流媒體檔案再進行合成,緩衝中直接拿到的可能碼率不同,合成的檔案無法播放等,謹記.
項目地址:https://github.com/K-S-V/Scripts
本地下載:AdobeHDS.php And Scripts-master
Usage:
php AdobeHDS.php --manifest "your_manifest_url" --delete
MyVideo-Seg1-Frag1.f4f, MyVideo-Seg1-Frag2.f4f………MyVideo-Seg1-Frag99.f4f
php AdobeHDS.php MyVideo-Seg1-Frag
You can use script with following switches:
--help displays this help
--debug show debug output
--delete delete fragments after processing
--fproxy force proxy for downloading of fragments
--play dump stream to stdout for piping to media player
--rename rename fragments sequentially before processing
--update update the script to current git version
--auth [param] authentication string for fragment requests
--duration [param] stop recording after specified number of seconds
--filesize [param] split output file in chunks of specified size (MB)
--fragments [param] base filename for fragments
--manifest [param] manifest file for downloading of fragments
--outdir [param] destination folder for output file
--outfile [param] filename to use for output file
--parallel [param] number of fragments to download simultaneously
--proxy [param] proxy for downloading of manifest
--quality [param] selected quality level (low|medium|high) or exact bitrate
--referrer [param] Referer to use for emulation of browser requests
--start [param] start from specified fragment
--useragent [param] User-Agent to use for emulation of browser requests