Ticket #333 (new Bugs)

Opened 8 months ago

Last modified 44 hours ago

Can not use aacplusenc in background

Reported by: ferenc Owned by: admin
Priority: 1 Milestone:
Component: Liquidsoap Version:
Keywords: Cc:
Mac OSX: no Linux: yes
NetBSD: no Other Operating System: no
FreeBSD: no

Description

Hy my problem is folowing.

I installed liquidsoap 0.9.2 on a debian and a centos 5.3 server.

Everything is ok when i start liquidsoap in terminal, but when i start in background (./stream.liq &) liquidsoap won't connect to mu icecast and shoutcast server

2010/01/11 15:24:44 >>> LOG START
2010/01/11 15:24:44 [protocols.external:3] Didn't find "ufetch"
2010/01/11 15:24:44 [protocols.external:3] Found "/usr/bin/wget"
2010/01/11 15:24:44 [main:3] Liquidsoap 0.9.2
2010/01/11 15:24:44 [harbor:3] Adding mountpoint '/' to list...
2010/01/11 15:24:44 [decoder:3] Decoder MP3 chosen for "/home/liquidsoap/test.mp3".
2010/01/11 15:24:44 [single:3] "/home/liquidsoap/test.mp3" is static, resolving once for all...
2010/01/11 15:24:44 [threads:3] Created thread "non-blocking queue #1".
2010/01/11 15:24:44 [threads:3] Created thread "generic queue #1".
2010/01/11 15:24:44 [threads:3] Created thread "root" (1 total).
2010/01/11 15:24:44 [root:3] Waking up active nodes...
2010/01/11 15:24:44 [jingles(dot)lst:3] Loading playlist...
2010/01/11 15:24:44 [jingles(dot)lst:3] No mime type specified, trying autodetection.
2010/01/11 15:24:44 [jingles(dot)lst:3] Playlist treated as format audio/x-mpegurl
2010/01/11 15:24:44 [jingles(dot)lst:3] Successfully loaded a playlist of 7 tracks.
2010/01/11 15:24:44 [decoder:3] Decoder MP3 chosen for "/home/liquidsoap/jingles/106.1-14.mp3".
2010/01/11 15:24:44 [playlist(dot)lst:3] Loading playlist...
2010/01/11 15:24:44 [playlist(dot)lst:3] No mime type specified, trying autodetection.
2010/01/11 15:24:44 [playlist(dot)lst:3] Playlist treated as format audio/x-mpegurl
2010/01/11 15:24:44 [playlist(dot)lst:3] Successfully loaded a playlist of 163 tracks.
2010/01/11 15:24:44 [jingles(dot)lst:3] Prepared "/home/liquidsoap/jingles/106.1-14.mp3" (RID 2).
2010/01/11 15:24:44 [high(dot)aac:2] Creating external encoder..
2010/01/11 15:24:44 [high(dot)aac:3] Connecting mount high.aac for source@localhost...

Here is my conf

#!/usr/local/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/basic-radio.log")
set("log.stdout",false)
#set("log.level",5)

#Live Input
set("harbor.bind_addr","0.0.0.0")
set("harbor.port", 8700)
set("harbor.password","xxx")
set("harbor.icy", true)

live = input.harbor("/")

def highaacenc(_) = "aacplusenc - - 64" end


#Sources
myplaylist = playlist("/home/liquidsoap/playlist.lst")
jingles = playlist("/home/liquidsoap/jingles.lst")
radio = myplaylist

#Rotate, Crossafde, Normalize
radio = rotate(weights = [1,1],[delay(1.,jingles), radio])
radio = eat_blank(threshold=-30.,length=3.,radio)
radio = normalize(radio)
radio = crossfade( start_next = 1.5, fade_out = 1., fade_in = 0., radio)
radio = compress(attack=25., release=250., threshold=-15.,ratio=3.,gain=5.,normalize(radio))
security = single("/home/liquidsoap/test.mp3")
radio = fallback(track_sensitive = false, [live, radio, security])

radio = rewrite_metadata([("artist", "Arena") , ("title","Teszt Adas"),
                      ("comment","http://arenaradio.net")],radio)


# AAC+ output (64kbs CBR)
output.icecast.external( restart = true,
                         restart_on_crash = true,
                         process = highaacenc,
                         host = "localhost",
                         port = 8000,
                         password = "xxx",
                         mount = "high.aac",
                         header = true,
                         bitrate =64,                                                           
                         radio ) 

Change History

Changed 8 months ago by toots

Hi !

I can't see anything relevant in those logs. However, running in the background involves many unix arcane details and usually just using & is not enough.

Hence, you may add this to your script:

set("init.daemon",false)

You may also need to add:

set("init.daemon.pidfile.path","/path/to/file.pid")

Changed 44 hours ago by 太阳能

China is the world's commitment to implement energy-saving emission reduction targets, to enhance policy support the new energy economy strategy, accelerating the construction of solar photovoltaic technology in rural and urban areas of the application, the relevant state ministries launch solar roofs program. Solar roof planned efforts to break through the integration and solution architecture design of a lack of optical, optoelectronic products combined with low level of construction, optical and network problems, low market awareness of the problem. Solar Roofs Plan into consideration economic and social benefits and other factors, at this stage of economic development, industrial base cities to actively promote a better solar roofs, building integrated photovoltaic curtain wall and other optical model; actively support development in rural and remote areas from the net-generation, implementation of transmission to rural areas, the implementation of the national farmer-friendly policy. Solar roof planned to mobilize all sectors of society through the development of demonstration projects and promote the implementation of relevant national policies. Demonstration projects to strengthen advocacy, to expand its influence, increase market awareness, formation and development of solar photovoltaic products, a good social atmosphere; to promote the implementation of tariff and other Internet-sharing policy, the formation of policy together, amplifying the effect of policies; the optical construction applications as an important building energy efficiency content, in new construction, existing building energy-saving, actively promote the use of urban lighting. Policy limit sun roof demonstration project must be greater than 50kW, which requires at least 400 square meters of total floor area, construction is difficult to participate in the general population, eligible owners will focus on schools, hospitals and government and other public and commercial buildings. Ministry of Finance to consider subsidies, the cost of electricity can be reduced to 0.58 yuan / kWh. Whether PV electricity price electricity price in the thermal power given premium is not clear, but even without the premium, due to lower power generation cost sales price, the owners are still building solar power projects to generate electricity for personal use, replacement power purchased from power. Moreover, local governments can be expected to give additional subsidies, electricity costs will decline further  http://solar-poweronline.info/

Note: See TracTickets for help on using tickets.