Ticket #316 (new Bugs)

Opened 11 months ago

Last modified 44 hours ago

output.aacplus unable to start

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

Description

Hi Savonet team! i'm trying to use built-in support of aacplus, but get some exceptions and unable to start liquidsoap

i get various scenarios with different bitrate. all logs and configs are included.

def out_aacplus(mount, bitrate, s) =

  output.icecast.aacplus(
     id="rvk#{bitrate}a",
     restart=true,
     mount=mount,
     host="localhost",
     password=omegaRelayPasswd,
     genre=streamGenre,
     url=streamUrl,
     description=streamDescr,

     name=streamTitle,
     bitrate=bitrate,
     s)
end

set("server.telnet",true)
set("server.telnet.port",8091)

set("harbor.bind_addr","0.0.0.0")
set("harbor.port",8090)
set("harbor.password", playlistPasswd)

################### [Live Sources] ###################

#Live Sources
liveInput = input.harbor(       id="live",
                                "live.ogg",
                                buffer=10.,
                                password=livePasswd
)

output.dummy(mksafe(liveInput))

liveInput = insert_metadata(id="liveMeta", liveInput)

################### [Playlists] ###################
playlistInput = input.harbor(id="playlist",
                                "playlist.ogg",
                                buffer=10.,
                                password=playlistPasswd,
)

#make source active
output.dummy(mksafe(playlistInput))

################### [Noise] ###################

noiseInput = noise(id="noise")
noiseInput = amplify(id="noiseAmp", 0.05, noiseInput)
noiseInput = rewrite_metadata([("title","no signal")], noiseInput)

################### [Master Input] ###################

#Master Input
input=fallback(                 id="mainFallback",
                                track_sensitive=false,
                                [liveInput, playlistInput, noiseInput])

################### [Mount Points] ###################
out_aacplus("/rvk", 56, input)

Attachments

56.log Download (5.9 KB) - added by romeodeepmind 11 months ago.
64.log Download (6.3 KB) - added by romeodeepmind 11 months ago.
64_#2.log Download (5.3 KB) - added by romeodeepmind 11 months ago.

Change History

Changed 11 months ago by romeodeepmind

Changed 11 months ago by romeodeepmind

Changed 11 months ago by romeodeepmind

Changed 11 months ago by toots

I can confirm part of this.

I have a deadlock if I want to use the native AAC+ icecast output against harbor, but it works well when used with icecast.

The native AAC+ support is not necessarily very mature. I am very suspicious in particular in the underlying "library". It is mainly a code that was brought to a shared library by exporting its headers. However, it has never been meant for this.

In particular, it seems to use global variables, so two AAC+ outputs are not possible.

Also, it is mainly the reference implementation, so the guy packaging the library only deals with minor details...

Anyway, I will try to fix this, but I can't garantee anything...

Changed 11 months ago by metamorph68

(In [6839]) Postponed Aacplus init. Seems to help fixing #316, but not really sure..

refs #316

Changed 11 months ago by toots

Here is a backtrace of the freeze, thanks to gdb:

Thread 6 (Thread 0x7fffe9d0d910 (LWP 6808)):
#0  0x00007ffff36fe3c2 in QuantizeSpectrum () from /usr/lib/libaacplus.so.1
#1  0x00007ffff36fc16e in QCMain () from /usr/lib/libaacplus.so.1
#2  0x00007ffff36e633e in AacEncEncode () from /usr/lib/libaacplus.so.1
#3  0x00000000006d0ccc in ocaml_aacplus_encode_frame (aac_env=140737107771376, data=15295432) at aacplus_stubs.c:233
#4  0x00000000006fad40 in caml_c_call ()

As you can see, the call to AacEncEncode? does not work.

However, I can enable/disable the issue randomly by recompiling liquidsoap, so I am not sure there is much to do in our side...

Changed 11 months ago by toots

Ha well, reading you logs only now..

You should recompile against the latest ocaml-cry, it should help...

Changed 11 months ago by romeodeepmind

now liq doesn't crash, but i get

Connection failed: bad answer

Changed 11 months ago by toots

Yes, most probably you have a wrong password or mount point...

Changed 11 months ago by romeodeepmind

oops, i set wrong port number =)

Changed 4 months ago by bascorp

Changed 2 weeks ago by metamorph68

(In [6839]) Postponed Aacplus init. Seems to help fixing #316, but not really sure..

refs #316

Changed 2 weeks ago by metamorph68

(In [6839]) Postponed Aacplus init. Seems to help fixing #316, but not really sure..

refs #316

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.