我最近看到一个电影网站使用m3u8,但是视频文件不是.ts而是.png,当我下载文件时,它是图像而不是ffmpeg的视频,我从文件中提取了信息,是什么出来了
视频网址:VIDEO EN PNG
{
"streams": [
{
"index": 0,
"codec_name": "png",
"codec_long_name": "PNG (Portable Network Graphics) image",
"codec_type": "video",
"codec_time_base": "0/1",
"codec_tag_string": "
[0][0][0]",
"codec_tag": "0x0000",
"width": 1,
"height": 1,
"coded_width": 1,
"coded_height": 1,
"has_b_frames": 0,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "1:1",
"pix_fmt": "rgb24",
"level": -99,
"color_range": "pc",
"refs": 1,
"r_frame_rate": "25/1",
"avg_frame_rate": "0/0",
"time_base": "1/25",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
}
}
],
"format": {
"filename": "84a9c6afffed621b4c2e684dcd4cd9b34a.ts_5daadc5f87309.mp4",
"nb_streams": 1,
"nb_programs": 0,
"format_name": "png_pipe",
"format_long_name": "piped png sequence",
"size": "3025296",
"probe_score": 99
}
我正在尝试将视频转换为png并尝试使用ffmpeg进行某种方式,但是由于我对ffmpeg非常陌生,因此我没有设法将m3u8列表中的视频转换为图像格式,而同时它们也是视频格式。
示例下载文件