当我打开此页面时,我可以在 Firefox Web Developer Tools/“网络”选项卡中看到该页面加载了带有.mpd
扩展名的文件。然后每隔几秒钟它就会加载一个文件/流,其.m4s
扩展名为
000000.m4s
000001.m4s
Run Code Online (Sandbox Code Playgroud)
如何下载整个流媒体视频?
我想我需要下载所有 .m4s 段,但不知道 Linux 命令或 Windows 软件来完成它。然后我需要将这些文件合并为一个 .mp4
我已经尝试过InviDownloader,但它有很多问题。
在 Linux 上,我尝试使用硬件加速将文件编码为 H\xe2\x82\xacVC。成功的尝试是:
\nffmpeg -v verbose -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i \'/path/file.mkv\' -vcodec libx265 -crf 28 \'/path/file.mp4\'\n
Run Code Online (Sandbox Code Playgroud)\n但速度很慢,如 30fps,“ ffmpeg -codecs|grep 265
”显示:\n(编码器: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv hevc_v4l2m2m hevc_vaapi )
所以我尝试了hevc_vaapi:
\nffmpeg -v verbose -hwaccel vaapi -vaapi_device /dev/dri/renderD128 -i \'/path/file.mkv\' -vcodec hevc_vaapi -crf 28 \'/path/file.mp4\'\n
Run Code Online (Sandbox Code Playgroud)\n但它失败了:
\nImpossible to convert between the formats supported by the filter \'Parsed_null_0\' and the filter \'auto_scaler_0\'\nError reinitializing filters!\nFailed to inject frame into filter network: Function not implemented\nError …
Run Code Online (Sandbox Code Playgroud)