Hi! During the launch of liquidsoap, the script cannot launch mp3 files from 
the folder.

Start script
```
set("init.daemon.pidfile.path", "/run/liquidsoap/radio.pid")
set("log.file",false)
set("log.level",5)
set("log.stdout",true)

# Music
rotation = audio_to_stereo(playlist("/var/music/rotation"))
rotation = mksafe(rotation)

output.harbor(
        %mp3(bitrate=128),
        port = 8000, encoding = "UTF-8",
        mount = "live",
rotation)
```

Error Log

```
liquidsoap@misterr:/root$ 2018/11/10 15:18:19 >>> LOG START
2018/11/10 15:18:19 [main:3] Liquidsoap 1.3.4
2018/11/10 15:18:19 [main:3] Using: bytes=[distributed with OCaml 4.02 or 
above]                                                                          
                     pcre=7.3.5 dtools=0.4.1 duppy=0.7.3 duppy.syntax=0.7.3 
cry=0.6.2 mm=0.4.0 dynli                                                        
                                      nk=[distributed with Ocaml] lame=0.3.3 
samplerate=0.1.4 taglib=0.3.3 ssl=0.5.7 c                                       
                                                       amomile=1.0.1 
inotify=2.3 lo=0.1.1
2018/11/10 15:18:19 [dynamic.loader:3] Could not find dynamic module for fdkaac 
                                                                                
              encoder.
2018/11/10 15:18:19 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2018/11/10 15:18:19 [frame:3] Frame size must be a multiple of 1764 ticks = 
1764                                                                            
                   audio samples = 1 video samples.
2018/11/10 15:18:19 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio 
sa                                                                              
                mples = 1764 ticks.
2018/11/10 15:18:19 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video 
s                                                                               
               amples = 1764 ticks.
2018/11/10 15:18:19 [video.converter:4] Couldn't find preferred video 
converter:                                                                      
                         gavl.
2018/11/10 15:18:19 [audio.converter:4] Using preferred samplerate converter: 
li                                                                              
                bsamplerate.
2018/11/10 15:18:19 [threads:3] Created thread "generic queue #1".
2018/11/10 15:18:19 [threads:3] Created thread "generic queue #2".
2018/11/10 15:18:19 [threads:3] Created thread "non-blocking queue #1".
2018/11/10 15:18:19 [threads:3] Created thread "non-blocking queue #2".
2018/11/10 15:18:19 [clock:4] Currently 1 clocks allocated.
2018/11/10 15:18:19 [clock.wallclock_main:4] Starting 1 sources...
2018/11/10 15:18:19 [source:4] Source output.harbor_6440 gets up.
2018/11/10 15:18:19 [source:4] Source mksafe gets up.
2018/11/10 15:18:19 [source:4] Source audio_to_stereo_6435 gets up.
2018/11/10 15:18:19 [audio_to_stereo_6435:4] Content kind is 
{audio=2;video=0;mi                                                             
                                 di=0}.
2018/11/10 15:18:19 [source:4] Source playlist_6434 gets up.
2018/11/10 15:18:19 [rotation:3] Loading playlist...
2018/11/10 15:18:19 [rotation:3] Playlist is a directory.
2018/11/10 15:18:19 [rotation:3] Successfully loaded a playlist of 1 tracks.
2018/11/10 15:18:19 [rotation:4] Content kind is {audio=1+;video=0;midi=0}.
2018/11/10 15:18:19 [rotation:4] Activations changed: 
static=[audio_to_stereo_64                                                      
                                        35:mksafe:live:live], dynamic=[].
2018/11/10 15:18:19 [audio_to_stereo_6435:4] Activations changed: static=[], 
dyn                                                                             
                 amic=[mksafe:live:live].
2018/11/10 15:18:19 [source:4] Source safe_blank gets up.
2018/11/10 15:18:19 [safe_blank:4] Content kind is {audio=2;video=0;midi=0}.
2018/11/10 15:18:19 [safe_blank:4] Activations changed: static=[], 
dynamic=[mksa                                                                   
                           fe:live:live].
2018/11/10 15:18:19 [mksafe:4] Activations changed: static=[live:live], 
dynamic=                                                                        
                      [].
2018/11/10 15:18:19 [rotation:5] Queue is empty!
2018/11/10 15:18:19 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:19 [live:4] Activations changed: static=[live], dynamic=[].
2018/11/10 15:18:19 [live:4] Enabling caching mode: active source.
2018/11/10 15:18:19 [harbor:4] Opening port 8000 with icy = false
2018/11/10 15:18:19 [decoder:4] Trying method "META" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "WAV" for 
"/var/music/rotation/tra                                                        
                                      ck.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "AIFF" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "MIDI" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "IMAGE" for 
"/var/music/rotation/t                                                          
                                    rack.mp3"...
2018/11/10 15:18:19 [decoder:3] Unable to decode 
"/var/music/rotation/track.mp3"                                                 
                                              as {audio=1+;video=0;midi=0}!
2018/11/10 15:18:19 [decoder:4] Trying method "META" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "WAV" for 
"/var/music/rotation/tra                                                        
                                      ck.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "AIFF" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "MIDI" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "IMAGE" for 
"/var/music/rotation/t                                                          
                                    rack.mp3"...
2018/11/10 15:18:19 [decoder:3] Unable to decode 
"/var/music/rotation/track.mp3"                                                 
                                              as {audio=1+;video=0;midi=0}!
2018/11/10 15:18:19 [decoder:4] Trying method "META" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "WAV" for 
"/var/music/rotation/tra                                                        
                                      ck.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "AIFF" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "MIDI" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "IMAGE" for 
"/var/music/rotation/t                                                          
                                    rack.mp3"...
2018/11/10 15:18:19 [decoder:3] Unable to decode 
"/var/music/rotation/track.mp3"                                                 
                                              as {audio=1+;video=0;midi=0}!
2018/11/10 15:18:19 [decoder:4] Trying method "META" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "WAV" for 
"/var/music/rotation/tra                                                        
                                      ck.mp3"...
2018/11/10 15:18:19 [harbor:3] Adding handler for 'GET /live' on port 8000
2018/11/10 15:18:19 [threads:3] Created thread "wallclock_main" (1 total).
2018/11/10 15:18:19 [clock:4] Main phase starts.
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "AIFF" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder.wav/aiff:4] Invalid file extension for 
"/var/music/                                                                    
                          rotation/track.mp3"!
2018/11/10 15:18:19 [decoder:4] Trying method "MIDI" for 
"/var/music/rotation/tr                                                         
                                     ack.mp3"...
2018/11/10 15:18:19 [decoder:4] Trying method "IMAGE" for 
"/var/music/rotation/t                                                          
                                    rack.mp3"...
2018/11/10 15:18:19 [decoder:3] Unable to decode 
"/var/music/rotation/track.mp3"                                                 
                                              as {audio=1+;video=0;midi=0}!
2018/11/10 15:18:19 [clock.wallclock_main:3] Streaming loop starts, 
synchronized                                                                    
                           with wallclock.
2018/11/10 15:18:19 [mksafe:3] Switch to safe_blank.
2018/11/10 15:18:19 [safe_blank:4] Activations changed: 
static=[mksafe:live:live                                                        
                                      ], dynamic=[mksafe:live:live].
2018/11/10 15:18:19 [rotation:5] Queue is empty!
2018/11/10 15:18:19 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:19 [rotation:5] Queue is empty!
2018/11/10 15:18:19 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:19 [rotation:5] Queue is empty!
2018/11/10 15:18:19 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:20 [rotation:5] Queue is empty!
2018/11/10 15:18:20 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:20 [rotation:5] Queue is empty!
2018/11/10 15:18:20 [rotation:5] Failed to prepare track: no file.
2018/11/10 15:18:20 [rotation:5] Queue is empty!
2018/11/10 15:18:20 [rotation:5] Failed to prepare track: no file.
```

Version details
 - OS: Debian 9
 - Liquidsoap: 1.3.4
 - Opam: 2.0.1


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/653
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to