Mplayer가 네트워크 스트림을 재생할 수 없습니다

Mplayer가 네트워크 스트림을 재생할 수 없습니다

mplayer를 사용하여 YouTube 스트림을 재생하려고 합니다. 실행하면 mplayer -cache 2048 https://www.youtube.com/watch?v=USUA_1WVM8I다음과 같은 출력이 나오고 비디오가 전혀 재생되지 않습니다.

MPlayer SVN-r37379 (C) 2000-2015 MPlayer Team
210 audio & 441 video codecs

Playing https://www.youtube.com/watch?v=USUA_1WVM8I.
libavformat version 56.25.101 (internal)
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Cache fill:  7.81% (163840 bytes)   [tls @ 0x7f75d89eaa00]The TLS connection was non-properly terminated.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
Cache fill:  9.48% (198786 bytes)   
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.
[tls @ 0x7f75d89eaa00]The specified session has been invalidated for some reason.

[tls @ 0x7f75d89eaa00]
The specified session has been invalidated for some reason.

Exiting... (End of file)

다른 YouTube 동영상에서도 마찬가지입니다.

출력 결과를 보면 TLS 라이브러리에 문제가 있는 것 같지만 VLC로 동일한 동영상을 시도했는데 정상적으로 재생되었습니다. mplayer를 사용하여 이 문제를 해결하는 방법은 무엇입니까?

답변1

mplayer는 HTTPS 프로토콜을 지원하지 않습니다. 따라서 youtube-dl과 함께 mplayer를 사용하여 비디오를 프레임 버퍼에 다운로드한 다음 재생해야 합니다.

이와 같이:

curl --ciphers RC4-SHA "$(youtube-dl -g http://www.youtube.com/watch?v=XEVlyP4_11M)" | mplayer -

관련 정보