Mplayer über CGI starten und Sound an Bluetoothlautsprecher

  • Hallo zusammen,

    ich bin nach dieser https://kofler.info/bluetooth-konf…t-bluetoothctl/ Anleitung vorgegangen, um meinen raspberry mit einem Bluetooth Lautsprecher zu verbinden. Klappt auch soweit alles super.

    Um z.B einen Radio Stream abzuspielen gebe ich in der Konsole folgenden Befehle ein:
    pactl set-default-sink 1
    pactl set-sink-volume 1 100%
    mplayer -playlist [Stream Url]


    Exakt das gleiche habe ich in ein Bash Script geschrieben, was ich nun per CGI aufrufe.
    Leider haut das nicht hin. Hier bekomme ich folgende Ausgabe:

    .....
    ICY Info: StreamTitle='';StreamUrl='';
    Detected file format: Audio only
    Selected audio codec: MPEG 1.0/2.0/2.5 layers I, II, III [mpg123]
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    AO: [pulse] Init failed: Connection refused
    AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
    [AO_ALSA] Unable to find simple control 'Master',0.
    Video: no video
    Starting playback...

    Entscheidend ist hier glaube ich das "AO: [pulse] Init failed: Connection refused".

    Kann mir vielleicht jemand weiterhelfen?

  • Mplayer über CGI starten und Sound an Bluetoothlautsprecher? Schau mal ob du hier fündig wirst!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!