mardi 23 novembre 2021

Cannot Stream url radio with Raspberry Pi3B (not +), using mpv/mplayer/mpc/mpd

I am trying to listen to a radio station via url streaming using mpv, but with no success.

I'm trying on an RPi model 3B (not +).

When I run : mpv url of the station

I get the following error :

> mpv https://www.redfm.gr/player
https://www.redfm.gr/player
Playing: https://www.redfm.gr/player
[ffmpeg/audio] aac: element type mismatch 1 != 0
EDL: source file 'https://stream.radiojar.com/tu0dt525e3quv' has unknown duration.
 (+) Audio --aid=1 (aac)
File tags:
 icy-title: Clash - Should I Stay Or Should I Go
[lavf] Cannot seek in this file.
[ffmpeg/audio] aac: element type mismatch 1 != 0
AO: [alsa] 44100Hz stereo 2ch float
[ffmpeg/audio] aac: element type mismatch 1 != 0
[ffmpeg/audio] aac: element type mismatch 1 != 0
[ffmpeg/audio] aac: element type mismatch 1 != 0
[ffmpeg/audio] aac: element type mismatch 1 != 0
[ffmpeg/audio] aac: element type mismatch 1 != 0
[ffmpeg/audio] aac: element type mismatch 1 != 0
A: 00:00:00 / 00:00:01 (4%)
[ffmpeg/audio] aac: element type mismatch 1 != 0
A: 00:00:00 / 00:00:01 (9%)
[ffmpeg/audio] aac: element type mismatch 1 != 0
A: 00:00:00 / 00:00:01 (77%)


Exiting... (End of file)

The radio sound comes out of the speaker for less than a second and then stops. Can you tell what the problem may be from the output above?

If instead of mpv I try with mplayer, I get the following output :

mplayer https://www.redfm.gr/player
MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (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 https://www.redfm.gr/player.
libavformat version 57.56.101 (external)
Mismatching header version 57.56.100
[tls @ 0x7683bcc4]The TLS connection was non-properly terminated.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
Cannot seek backward in linear streams!
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.
[tls @ 0x7683bcc4]The specified session has been invalidated for some reason.


Exiting... (End of file)

Last, I also tried with mpc add/play, and the result is :

mpc play 1
https://www.redfm.gr/player/
[playing] #1/5   0:00/0:00 (0%)
volume:100%   repeat: off   random: off   single: off   consume: off

and again no sound.

I use speaker connected to the 3.5 audio jack of the Rpi. The speakers function properly as I can play .mp3 files (e.g. using mpg321 etc).

Last, I am using :

cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

I tried with mpv from my Ubuntu Desktop PC and it works properly though with mplayer or mpc/mpd it doesn't work (similar behavior as above).

Any hint?




Aucun commentaire:

Enregistrer un commentaire