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 -

おすすめ記事