O Mplayer não consegue reproduzir o fluxo de rede

1

Estou tentando reproduzir streams do youtube com o mplayer. Ao executar mplayer -cache 2048 https://www.youtube.com/watch?v=USUA_1WVM8I , recebo a seguinte saída e o vídeo não é reproduzido.

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)

O mesmo acontece com qualquer outro vídeo do youtube.

Olhando para a saída, parece haver algum problema com a biblioteca TLS, mas eu tentei os mesmos vídeos com o VLC, e eles funcionaram muito bem. Como posso resolver este problema com o mplayer?

    
por Hashken 10.04.2015 / 06:32

1 resposta

0

O mplayer não suporta o protocolo HTTPS. Então você deve usar o mplayer em conjunto com o youtube-dl para baixar o vídeo em um framebuffer e depois reproduzi-lo.

Assim:

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