There doesn't seem to be any .asoundrc file.

My FHM1.liq script is now:

#!/usr/bin/liquidsoap
set("log.file.path","/tmp/FHM1-radio.log")
myplaylist = playlist("/SAMBA/MediaStream/radio1/playlist.txt")
security = single("/SAMBA/MediaStream/radio1/announcement1.ogg")
radio = myplaylist
radio = fallback(track_sensitive = false, [radio, security])
output.alsa(radio, device="hw:0,0")

The liquidsoap log file shows this:

2011/03/21 10:27:12 >>> LOG START
2011/03/21 10:27:12 [protocols.external:3] Didn't find "ufetch"
2011/03/21 10:27:12 [protocols.external:3] Found "/usr/bin/wget"
2011/03/21 10:27:12 [main:3] Liquidsoap 0.9.3
2011/03/21 10:27:12 [lang:3] flac binary not found: flac decoder disabled.
2011/03/21 10:27:12 [lang:3] metaflac binary not found: flac metadata resolver 
disabled.
2011/03/21 10:27:12 [decoder:3] Decoder OGG chosen for 
"/SAMBA/MediaStream/radio1/announcement1.ogg".
2011/03/21 10:27:12 [single:3] "/SAMBA/MediaStream/radio1/announcement1.ogg" is 
static, resolving once for all...
2011/03/21 10:27:12 [threads:3] Created thread "non-blocking queue #1".
2011/03/21 10:27:12 [threads:3] Created thread "generic queue #1".
2011/03/21 10:27:12 [threads:3] Created thread "root" (1 total).
2011/03/21 10:27:12 [root:3] Waking up active nodes...
2011/03/21 10:27:12 [playlist(dot)txt:3] Loading playlist...
2011/03/21 10:27:13 [playlist(dot)txt:3] No mime type specified, trying 
autodetection.
2011/03/21 10:27:13 [playlist(dot)txt:3] Playlist treated as format 
audio/mpegurl
2011/03/21 10:27:13 [playlist(dot)txt:3] Successfully loaded a playlist of 2 
tracks.
2011/03/21 10:27:13 [src_5045:3] Prepared 
"/SAMBA/MediaStream/radio1/announcement1.ogg" (RID 0).
2011/03/21 10:27:13 [threads:3] Created thread "output(dot)alsa" (2 total).
2011/03/21 10:27:13 [root:3] Broadcast starts up!
2011/03/21 10:27:13 [src_5048:3] Switch to src_5045.
2011/03/21 10:27:13 [decoder:3] Decoder OGG chosen for 
"/SAMBA/MediaStream/radio1/fpm-sunshine.ogg".
2011/03/21 10:27:13 [playlist(dot)txt:3] Prepared 
"/SAMBA/MediaStream/radio1/fpm-sunshine.ogg" (RID 2).
2011/03/21 10:27:13 [src_5048:3] Switch to playlist(dot)txt with transition.
2011/03/21 10:27:13 [output(dot)alsa:3] Using ALSA 1.0.21a.
2011/03/21 10:27:13 [threads:1] Thread "output(dot)alsa" aborts with exception 
Alsa.Unknown_error(2)!
2011/03/21 10:27:13 [main:3] Shutdown started!
2011/03/21 10:27:13 [main:3] Waiting for threads to terminate...
2011/03/21 10:27:13 [stderr:3] Thread 5 killed on uncaught exception 
Alsa.Unknown_error(2)
2011/03/21 10:27:13 [stderr:3] Raised at file "", line 0, characters 0-0
2011/03/21 10:27:13 [root:3] Shutting down sources...
2011/03/21 10:27:13 [src_5045:3] Finished with 
"/SAMBA/MediaStream/radio1/announcement1.ogg".
2011/03/21 10:27:13 [playlist(dot)txt:3] Finished with 
"/SAMBA/MediaStream/radio1/fpm-sunshine.ogg".
2011/03/21 10:27:13 [threads:3] Thread "root" exited (0 remaining).
2011/03/21 10:27:13 [main:3] Cleaning downloaded files...
2011/03/21 10:27:13 >>> LOG END

I don't know what Alsa.Unknown_error(2) is.

# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: HDA Generic [HDA Generic]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

If I play an audio file via madplay, asound, etc. then I can hear sound in my 
speakers (all's fine).

I also configured MPD (Music Player Daemon) and it works fine:

audio_output {
       type            "alsa"
       name            "Local ALSA Device"
       device          "hw:0,0"
       auto_resample   "no"
}

What could I be doing wrong?
Liquidsoap's "liquidsoap" user is part of the audio group just like the mpd 
user.
So I'm supposing it isn't a permissions issue.

Thanks


--- On Wed, 3/16/11, Samuel Mimram <[email protected]> wrote:


This error is ENOENT (which generally means "No such file or directory"). So I 
suspect that something is wrong with your alsa driver. Do you have a .asoundrc 
file by any chance? Could you try specifying a valid device as parameter of 
output.alsa?


++

Sam.


2011/3/16 Vieri <[email protected]>

This is what happens now:

2011/03/16 16:11:38 [threads:3] Created thread "output(dot)alsa" (2 total).

2011/03/16 16:11:38 [root:3] Broadcast starts up!
2011/03/16 16:11:38 [src_5048:3] Switch to src_5045.
2011/03/16 16:11:38 [src_5045:4] Activations changed: 
static=[src_5048:output(dot)alsa:output(dot)alsa], 
dynamic=[src_5048:output(dot)alsa:output(dot)alsa].

2011/03/16 16:11:38 [playlist(dot)txt:4] Remaining: 0, queued: 0, adding: 
1323000 (RID 2)
2011/03/16 16:11:38 [playlist(dot)txt:4] Remaining: 0, queued: 1323000, taking: 
1323000
2011/03/16 16:11:38 [ogg.demuxer:4] Found a ogg logical stream, serial: 1e9db7a0

2011/03/16 16:11:38 [ogg.demuxer:4] Trying ogg/vorbis format
2011/03/16 16:11:38 [playlist(dot)txt:3] Prepared 
"/SAMBA/MediaStream/radio1/fpm-sunshine.ogg" (RID 2).
2011/03/16 16:11:38 [src_5048:3] Switch to
 playlist(dot)txt with transition.
2011/03/16 16:11:38 [src_5045:4] Activations changed: static=[], 
dynamic=[src_5048:output(dot)alsa:output(dot)alsa].
2011/03/16 16:11:38 [playlist(dot)txt:4] Activations changed: 
static=[src_5048:output(dot)alsa:output(dot)alsa], 
dynamic=[src_5048:output(dot)alsa:output(dot)alsa].

2011/03/16 16:11:38 [output(dot)alsa:3] Using ALSA 1.0.21a.
2011/03/16 16:11:38 [threads:1] Thread "output(dot)alsa" aborts with exception 
Alsa.Unknown_error(2)!
Thread 4 killed on uncaught exception Alsa.Unknown_error(2)

Raised at file "", line 0, characters 0-0
2011/03/16 16:11:38 [main:3] Shutdown started!
[Thread 0xb6659b70 (LWP 7477) exited]
[Thread 0xb5657b70 (LWP 7479) exited]
2011/03/16 16:11:38 [main:3] Waiting for threads to terminate...

2011/03/16 16:11:39 [root:3] Shutting down sources...
2011/03/16 16:11:39 [source:4] output(dot)alsa gets down
2011/03/16 16:11:39 [source:4] src_5048 gets
 down
2011/03/16 16:11:39 [playlist(dot)txt:4] Activations changed: 
static=[src_5048:output(dot)alsa:output(dot)alsa], dynamic=[].
2011/03/16 16:11:39 [source:4] src_5045 gets down
2011/03/16 16:11:39 [src_5045:3] Finished with 
"/SAMBA/MediaStream/radio1/announcement1.ogg".

2011/03/16 16:11:39 [src_5045:4] Activations changed: static=[], dynamic=[].
2011/03/16 16:11:39 [source:4] playlist(dot)txt gets down
2011/03/16 16:11:39 [playlist(dot)txt:4] Waiting for feeding task to stop...

2011/03/16 16:11:39 [playlist(dot)txt:3] Finished with 
"/SAMBA/MediaStream/radio1/fpm-sunshine.ogg".
2011/03/16 16:11:39 [playlist(dot)txt:4] Cleaning up request queue...
2011/03/16 16:11:39 [playlist(dot)txt:4] Activations changed: static=[], 
dynamic=[].

2011/03/16 16:11:39 [src_5048:4] Activations changed: static=[], dynamic=[].
2011/03/16 16:11:39 [output(dot)alsa:4] Activations changed: static=[], 
dynamic=[].
2011/03/16 16:11:39
 [threads:3] Thread "root" exited (0 remaining).
2011/03/16 16:11:39 [main:3] Cleaning downloaded files...
[Thread 0xb5e58b70 (LWP 7478) exited]
2011/03/16 16:11:39 >>> LOG END

Program exited normally.

(gdb)

Could it be a permissions issue?

By the way, I retested the same script but using icecast as output and it seems 
to work.

Thanks,

Vieri

--- On Wed, 3/16/11, Samuel Mimram <[email protected]> wrote:


From: Samuel Mimram <[email protected]>
Subject: Re: [Savonet-users] liquidsoap segmentation fault

To: "Vieri" <[email protected]>
Cc: "savonet-users" <[email protected]>

Date: Wednesday, March 16, 2011, 11:02 AM

Hi,

Apparently, the AO output it causing the segfault. Does it also
 happen if you use output.alsa(radio) instead of out(radio)?

++

Sam.


On Wed, Mar 16, 2011 at 3:54 PM, Vieri <[email protected]> wrote:


Hi!



First time trying to use liquidsoap and it's slipping out of my hands already.



I used a basic liq script:



#!/usr/bin/liquidsoap

# Log dir

set("log.file.path","/tmp/FHM1-radio.log")



# Music

# myplaylist = playlist("/SAMBA/MediaStream/radio1/mp3/")

myplaylist = playlist("/SAMBA/MediaStream/radio1/playlist.txt")

# Some jingles

#jingles = playlist("~/radio/jingles.m3u")

# If something goes wrong, we'll play this

security = single("/SAMBA/MediaStream/radio1/announcement1.ogg")



# Start building the feed with music

radio = myplaylist

# Now add some jingles

#radio = random(weights = [1, 4],[jingles, radio])

# And finally the security

radio = fallback(track_sensitive = false, [radio, security])



# Stream it out

#output.icecast.vorbis(

#  host = "localhost", port = 8000,

#  password = "sourcepwd", mount = "FHM1-radio.ogg",

#  radio)



out(radio)



-- END SCRIPT --



Even if I use icecast as output, it still does a segmentation fault.



My OGG and MP3 files are OK.

My ALSA card is working fine (I tested with command line programs).



What could be failing?



My liquidsoap version is 0.9.3.



I tried to do a gdb trace if it's of any use:



(gdb) set args -v --debug /etc/liquidsoap/FHM1.liq

(gdb) run

Starting program: /usr/bin/liquidsoap -v --debug /etc/liquidsoap/FHM1.liq

[Thread debugging using libthread_db enabled]

[New Thread 0xb78a3a60 (LWP 30978)]

2011/03/16 15:44:31 >>> LOG START

2011/03/16 15:44:31 [protocols.external:3] Didn't find "ufetch"

2011/03/16 15:44:31 [protocols.external:3] Found "/usr/bin/wget"

2011/03/16 15:44:31 [main:3] Liquidsoap 0.9.3

2011/03/16 15:44:31 [lang:3] flac binary not found: flac decoder disabled.

2011/03/16 15:44:31 [lang:3] metaflac binary not found: flac metadata resolver 
disabled.

2011/03/16 15:44:31 [decoder:4] Trying OGG decoder for 
"/SAMBA/MediaStream/radio1/announcement1.ogg"...

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 2f9dc49

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [decoder:3] Decoder OGG chosen for 
"/SAMBA/MediaStream/radio1/announcement1.ogg".

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 2f9dc49

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [single:3] "/SAMBA/MediaStream/radio1/announcement1.ogg" is 
static, resolving once for all...

2011/03/16 15:44:31 [video.converter:4] Couldn't find prefered video converter: 
gavl

2011/03/16 15:44:31 [audio.converter:4] Couldn't find prefered samplerate 
converter: libsamplerate

2011/03/16 15:44:31 [audio.converter:4] Using native samplerate converter

[New Thread 0xb763bb70 (LWP 30985)]

[New Thread 0xb6e3ab70 (LWP 30986)]

2011/03/16 15:44:31 [threads:3] Created thread "generic queue #1".

[New Thread 0xb6639b70 (LWP 30987)]

[New Thread 0xb5e38b70 (LWP 30988)]

2011/03/16 15:44:31 [threads:3] Created thread "root" (1 total).

2011/03/16 15:44:31 [root:3] Waking up active nodes...

2011/03/16 15:44:31 [source:4] src_5052 gets up

2011/03/16 15:44:31 [source:4] mksafe gets up

2011/03/16 15:44:31 [source:4] src_5048 gets up

2011/03/16 15:44:31 [source:4] src_5043 gets up

2011/03/16 15:44:31 [playlist(dot)txt:3] Loading playlist...

2011/03/16 15:44:31 [playlist(dot)txt:3] No mime type specified, trying 
autodetection.

2011/03/16 15:44:31 [playlist parser:4] Trying audio/x-scpls parser

2011/03/16 15:44:31 [playlist parser:4] Trying audio/mpegurl parser

2011/03/16 15:44:31 [playlist(dot)txt:3] Playlist treated as format 
audio/mpegurl

2011/03/16 15:44:31 [playlist(dot)txt:3] Successfully loaded a playlist of 2 
tracks.

2011/03/16 15:44:31 [playlist(dot)txt:4] Activations changed: static=[], 
dynamic=[src_5048:mksafe:ao:ao].

2011/03/16 15:44:31 [decoder:4] Trying OGG decoder for 
"/SAMBA/MediaStream/radio1/QuajiroPromo.ogg"...

2011/03/16 15:44:31 [source:4] src_5045 gets up

2011/03/16 15:44:31 [src_5045:4] Activations changed: static=[], 
dynamic=[src_5048:mksafe:ao:ao].

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 574cee3

2011/03/16 15:44:31 [src_5048:4] Activations changed: static=[], 
dynamic=[mksafe:ao:ao].

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [source:4] safe_blank gets up

2011/03/16 15:44:31 [decoder:3] Decoder OGG chosen for 
"/SAMBA/MediaStream/radio1/QuajiroPromo.ogg".

2011/03/16 15:44:31 [safe_blank:4] Activations changed: static=[], 
dynamic=[mksafe:ao:ao].

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 574cee3

2011/03/16 15:44:31 [mksafe:4] Activations changed: static=[ao:ao], dynamic=[].

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 2f9dc49

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [src_5045:3] Prepared 
"/SAMBA/MediaStream/radio1/announcement1.ogg" (RID 0).

2011/03/16 15:44:31 [ao:4] Activations changed: static=[ao], dynamic=[].

2011/03/16 15:44:31 [ao:4] Enabling caching mode (active source)

[New Thread 0xb54ffb70 (LWP 30989)]

2011/03/16 15:44:31 [playlist(dot)txt:4] Remaining: 0, queued: 0, adding: 
1323000 (RID 2)

2011/03/16 15:44:31 [threads:3] Created thread "ao" (2 total).

2011/03/16 15:44:31 [root:3] Broadcast starts up!

2011/03/16 15:44:31 [mksafe:3] Switch to src_5048.

2011/03/16 15:44:31 [src_5048:4] Activations changed: static=[mksafe:ao:ao], 
dynamic=[mksafe:ao:ao].

2011/03/16 15:44:31 [src_5048:3] Switch to src_5045.

2011/03/16 15:44:31 [src_5045:4] Activations changed: 
static=[src_5048:mksafe:ao:ao], dynamic=[src_5048:mksafe:ao:ao].

2011/03/16 15:44:31 [playlist(dot)txt:4] Remaining: 0, queued: 1323000, taking: 
1323000

2011/03/16 15:44:31 [ogg.demuxer:4] Found a ogg logical stream, serial: 574cee3

2011/03/16 15:44:31 [ogg.demuxer:4] Trying ogg/vorbis format

2011/03/16 15:44:31 [playlist(dot)txt:3] Prepared 
"/SAMBA/MediaStream/radio1/QuajiroPromo.ogg" (RID 2).

2011/03/16 15:44:31 [src_5048:3] Switch to playlist(dot)txt with transition.

2011/03/16 15:44:31 [src_5045:4] Activations changed: static=[], 
dynamic=[src_5048:mksafe:ao:ao].

2011/03/16 15:44:31 [playlist(dot)txt:4] Activations changed: 
static=[src_5048:mksafe:ao:ao], dynamic=[src_5048:mksafe:ao:ao].



Program received signal SIGSEGV, Segmentation fault.

[Switching to Thread 0xb54ffb70 (LWP 30989)]

0x081f723f in ocaml_ao_stubs_driver_options ()

Current language:  auto; currently asm

(gdb) bt full

#0  0x081f723f in ocaml_ao_stubs_driver_options ()

No locals.

#1  0x081a9441 in camlAo__driver_of_internal_driver_98 ()

No locals.

#2  0xffffffff in ?? ()

No symbol table info available.

#3  0xffffffff in ?? ()

No symbol table info available.

#4  0xb7851868 in ?? ()

No symbol table info available.

#5  0xb7658370 in ?? ()

No symbol table info available.

#6  0xb7756688 in ?? ()

No symbol table info available.

#7  0xb77566ac in ?? ()

No symbol table info available.

#8  0xb54ff388 in ?? ()

No symbol table info available.

#9  0x081a954c in camlAo__get_default_driver_101 ()

No locals.

#10 0x00000001 in ?? ()

No symbol table info available.

#11 0x080e695f in camlAo_out__method_get_device_204 ()

No locals.

#12 0xb54ff254 in ?? ()

No symbol table info available.

#13 0x08224ff4 in ?? ()

No symbol table info available.

#14 0x08224ff4 in ?? ()

No symbol table info available.

#15 0x081c2d50 in camlPcre__code_end ()

No locals.

#16 0xb7756688 in ?? ()

No symbol table info available.

#17 0xb7658370 in ?? ()

No symbol table info available.

#18 0x0820500b in caml_mutex_unlock ()

No locals.

#19 0xb7e943ab in start_thread () from /lib/libpthread.so.0

No locals.

#20 0xb7b28b1e in clone () from /lib/libc.so.6

No symbol table info available.

(gdb)



Thanks,



Vieri











------------------------------------------------------------------------------

Colocation vs. Managed Hosting

A question and answer guide to determining the best fit

for your organization - today and in the future.

http://p.sf.net/sfu/internap-sfd2d

_______________________________________________

Savonet-users mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/savonet-users






      
------------------------------------------------------------------------------

Colocation vs. Managed Hosting

A question and answer guide to determining the best fit

for your organization - today and in the future.

http://p.sf.net/sfu/internap-sfd2d
_______________________________________________

Savonet-users mailing list

[email protected]

https://lists.sourceforge.net/lists/listinfo/savonet-users







      
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to