Le jeu. 17 juin 2021 à 09:38, p····· g······· <pra...@gmail.com> a écrit :
>
> hello!
>
> so eventually i've managed to move my radios to a V2
> however i had to throw away great deal of configuration and loose
> functionality.. would be a huge message if i put it all together, so first
> the main ones (and perhaps you could give me the key to solving such
> issues):
>
>
> #1
> ogg doesn't work (flac or vorbis):
>
> %ffmpeg(format="ogg", %audio(codec="libvorbis", b = "192"))............
>
> No format (mime) found, please specify one.

Thanks for reporting this. You can pass the value explicitly via the
"format" parameter. Also, bitrate should be in kbytes:
output.icecast(format="application/ogg", %ffmpeg(format="ogg",
%audio(codec="libvorbis", b = "192k")), ...)

I have added mime types for most of ffmpeg's formats so this won't be
needed in the future.

> #2
> if i try crossfading, radio becomes some other entity that i can't encode
it
> afterwards:
>
> radio = crossfade(radio)
>
> later on on encoding line gives such error:
> Error 5: this value has type
>   unit (inferred at line 168, char 2-48)
> but it should be a subtype of
>   source(_)
>
> if i don't crossfade, the encoding works.

I think I would need to see more of your script to help here.

> #3
> can't compress (or amplify):
> radio = compress(attack=0.5,threshold=-9.,ratio=12.,gain=6.,
> release=2000.,radio)
>
> At line 246, char 75-80:
> Error 5: this value has type
>   unit (inferred at line 171 char 2 - line 176 char 5)
> but it should be a subtype of
>   source(_)

Likewise

> #4
> can't limit:
> radio = limit(attack=0.01, release=5000., threshold=-1., radio)
>
> At line 250, char 57-62:
> Error 5: this value has type
>   unit (inferred at line 171 char 2 - line 176 char 5)
> but it should be a subtype of the type of the value at C:\Program
> Files\liquidso
> ap\libs\sound.liq, line 61, char 138
>   source(_) (inferred at C:\Program Files\liquidsoap\libs\sound.liq, line
> 62, ch
> ar 107)

Same

> #5
> can't fallback:
>
> radio = fallback(track_sensitive=false, [ fail(), radio, fallback_file ])
>
> At line 233, char 50-55:
> Error 5: this value has type
>   source(_)
> but it should be a subtype of the type of the value at line 233, char
50-55
>   unit

Ditto. These are all related to the same issue.

> #6
> can't skip blank:
>
> radio = skip_blank(radio)
>
> Error 6: Cannot apply that parameter because the function at line 232,
char
> 8-19
>
> has no unlabeled argument!

liquidsoap -h skip_blank? Also, this has been deprecated, we now have
blank.skip

> #7
> can't add jingle:
>
> radio = add([radio, switch([({30m31s},dzinglas)])])
>
>
> At line 231, char 20-49:
> Error 5: this value has type
>   unit
> but it should be a subtype of the type of the value at line 231, char
20-49
>   _.{selected : _}

Same probleme again

> #8
> can't set crossfades:
> cross(width=width, duration=start_next, conservative=conservative,
>               transition,s)
>
> Error 5: this value has type
>   (_, _, _, _, _, _) -> _ (inferred at line 69 char 2 - line 74 char 5)
> but it should be a subtype of
>   (_, _) -> source(_)

The arguments have changed for this one.

> and so on... the things must have changed significantly... is there an
> updated read about it?

Yeah, we want to work on a page to highlight most of the required changes.
Would you mind sending more of your script? That would be great to help us
getting started.

> let's see how it behaves concerning memory leaks. so far several hundreds
MB
> for every radio.

Curious to hear about how this is going?

Romain
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to