Config file problem

If change icecast->audio->format to mp3 in “/etc/libretime/config.yml” radio homepage not show right bottom icons anymore or loading icons so so slowly 2-5 minutes. If I leave it as it ogg format. bottom icons loading quickly 1-2 seconds. Bug or what?

Please provide more information…

This is libretime file. My front page not playing, if i press Play button. No sound. And stream address not exist. Only mp3 playing. But webpage using automatically first stream.

OGG STREAM NOT WORKING!!! Some bug

Problem is next. If my domain using SSL and Icecast using both SSL (8443) and standard (8000).
Webpage show so weird address: https://address:8000/kena-128. If I add SSL stream address manually in player.phtml file and using mp3 format, player start working and sound is on, but bottom icons in right now not showing after that. If I change mp3 format to ogg, player not start working and sound is off, but bottom icons showing well.

Icecast output streams.

# > max items is 3
icecast:
  # The default Icecast output stream
  - <<: *default_icecast_output
    enabled: true
    public_url:
    mount: kena-128
    audio:
      format: ogg
      bitrate: 128

  # You can define extra outputs by reusing the default output using a yaml anchor
  - <<: *default_icecast_output
    enabled: true
    mount: kena-256
    audio:
      format: mp3
      bitrate: 256

You might want to define your custom stream url for each of the stream using the public_url field.

Also see this: Reverse proxy | LibreTime

# > max items is 3
icecast:
  # The default Icecast output stream
  - <<: *default_icecast_output
    enabled: true
    public_url: https://address:8443/kena-128
    mount: kena-128
    audio:
      format: ogg
      bitrate: 128

  # You can define extra outputs by reusing the default output using a yaml anchor
  - <<: *default_icecast_output
    enabled: true
    public_url: https://address:8443/kena-256
    mount: kena-256
    audio:
      format: mp3
      bitrate: 256

If I go Settings → Stream → Stream 1 or Stream 2
I show this error “bad answer: scanf: bad input at char number 0: looking for H, found 021”
if I change next:

#Output streams.
outputs:
.default_icecast_output: &default_icecast_output
host: address (same like icecast server)
port: 8443
source_password: ###################################
admin_password: ###################################
name: Kena Raadio
description: Like libretime!
website: https://address.com
genre: All

#Icecast output streams.
#max items is 3
icecast:
# The default Icecast output stream
- <<: *default_icecast_output
enabled: true
public_url: https://kena.fm:8443/kena-128
mount: kena-128
audio:
format: ogg
bitrate: 128

#You can define extra outputs by reusing the default output using a yaml anchor
-<<: *default_icecast_output
enabled: true
public_url: https://kena.fm:8443/kena-256
mount: kena-256
audio:
format: mp3
bitrate: 256

But Icecast server webpage working over SSL and 8443 port uses. https://kena.fm:8443

/etc/nginx/sites-enabled/libretime.conf

server {
  server_name kena.fm www.kena.fm;

  access_log /var/log/nginx/libretime.access.log;
  error_log /var/log/nginx/libretime.error.log;

  root /usr/share/libretime/legacy/public;

  index index.php index.html index.htm;

  client_max_body_size 512M;
  client_body_timeout 300s;

  location ~ \.php$ {
    fastcgi_buffers 64 4K;
    fastcgi_split_path_info ^(.+\.php)(/.+)$;

    # try_files $uri =404;
    try_files $fastcgi_script_name =404;

    include fastcgi_params;

    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    set $path_info $fastcgi_path_info;
    fastcgi_param PATH_INFO $path_info;
    include fastcgi_params;

    fastcgi_index index.php;
    fastcgi_pass unix:/run/libretime-legacy.sock;
  }

  location ~* \.(png|jpg|jpeg|gif)$ {
    expires 365d;
    add_header Cache-Control "public, no-transform";
  }

  location ~* \.(js|css|pdf|html|swf)$ {                                                                 
    expires 30d;
    add_header Cache-Control "public, no-transform";
  }

  location / {
    try_files $uri $uri/ /index.php$is_args$args;
  }

  location ~ ^/api/(v2|browser) {
    include proxy_params;
    proxy_redirect off;
    proxy_pass http://unix:/run/libretime-api.sock;
  }

    listen [::]:443 ssl ipv6only=on; # managed by Certbot
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/kena.fm/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/kena.fm/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
    if ($host = www.kena.fm) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    if ($host = kena.fm) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

  listen 80;
  server_name kena.fm www.kena.fm;
  listen [::]:80;
    return 404; # managed by Certbot
}

I don’t understand what’s wrong, or why stream not connect and working!

Could you fill this form and post it here ? How to ask for help?

Most importantly, could you share your logs ?

/var/log/libretime/liquidsoap.log

/var/log/libretime/playout.log

Try to change the icecast port to 8000 instead of 8443, we don’t support streaming to encrypted source mount point yet.

outputs:
  .default_icecast_output: &default_icecast_output
    port: 8000

Port 8000 connect to server, but if I look my icecast server page, I don’t see ogg stream “Currently playing” data on both address:

http://kena.fm:8000
https://kena.fm:8443

and if you go main page https://kena.fm and click play button…sound not coming…

The audio streaming is working for me.

From the configuration documentation Configuration | LibreTime

          # format=ogg only field: Embed metadata (track title, artist, and show name)
          # in the output stream. Some bugged players will disconnect from the stream
          # after every songs when playing ogg streams that have metadata information
          # enabled.
          # > default is false
          enable_metadata: false

Maybe Safari browser not playing that. But Libretime not support Safari browser. If I add mp3 stream first stream, Safari browser not showing right bottom buttons.

Ok, I hope you prepare and fill the form I asked for the next time you ask for help. I could have understood your issue way earlier with it.

I don’t have safari, so I cannot really test this myself, maybe you can make a screenshot from the missing player, and send the full logs files (please don’t make screenshots of the logs).

In addition I think once you have fixed your issues, you should change all the password in your setup, because some could find them in the screenshots you made.

Hope you fixed most of your issues by now.
Cheers

I read a bit about Safari on the Internet and it turned out that the Safari browser does not directly support playing OGG files. In order for Safari to play it, some things must be added to the code, and the player must be HTML5.

Currently, OGG files will not play on iPhones, iPads, or any Apple device in general.

It was suggested to add something like GitHub - brion/ogv.js: JavaScript media player using Ogg/Vorbis/Theora/Opus/WebM libs compiled with Emscripten to the code