通过 mplayer 播放具有加密 m4s 内容的 m3u8 文件

通过 mplayer 播放具有加密 m4s 内容的 m3u8 文件

我有 init.mp4、playlist.m3u8 和多个加密的 .m4s 文件。当我尝试通过 MPlayer playlist.m3u8 播放视频时,它出现如下错误:

MPlayer 1.3.0 (Debian), built with gcc-7 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing playlist.m3u8.
libavformat version 57.83.100 (external)
libavformat file format detected.
[hls,applehttp @ 0x7fa4c021c2a0]Opening 'init.mp4' for reading
Could not read complete segment.
[hls,applehttp @ 0x7fa4c021c2a0]Opening 'http://107.108.87.159/openssl+ffmpeg/enc.key' for reading
[hls,applehttp @ 0x7fa4c021c2a0]Opening 'crypto:playlist0.m4s' for reading
[hls,applehttp @ 0x7fa4c021c2a0]No longer receiving playlist 0
[hls,applehttp @ 0x7fa4c021c2a0]Now receiving playlist 0, segment 0
[hls,applehttp @ 0x7fa4c021c2a0]Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 320x240): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[lavf] stream 0: video (h264), -vid 0
LAVF: Program 0
VIDEO:  [H264]  320x240  24bpp  12800.000 fps    0.0 kbps ( 0.0 kbyte/s)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.107.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Load subtitles in ./
Audio: no sound
Starting playback...
V:   0.0   0/  0 ??% ??% ??,?% 0 0

Exiting... (End of file)

我有两个主要疑问:

  1. mplayer 能自行解密加密内容吗?

  2. 或者我首先需要通过 OpenSSL 独立解密它,然后尝试用 MPlayer 播放它?

相关内容