Same with 1.3.4 :(

Issue is somewhere else ...

2018/09/23 20:21:04 >>> LOG START
2018/09/23 20:21:04 [main:3] Liquidsoap 1.3.4
2018/09/23 20:21:04 [main:3] Using: bytes=[distributed with OCaml 4.02 or
above] pcre=7.3.4 dtools=0.4.0 duppy=0.7.1 duppy.syntax=0.7.1 cry=0.6.2
mm=0.4.0 ogg=0.5.2 vorbis=0.7.1 mad=0.4.5 dynlink=[distributed with Ocaml]
lame=0.3.3 alsa=0.2.3 samplerate=0.1.4 taglib=0.3.3 camomile=1.0.1
2018/09/23 20:21:04 [dynamic.loader:3] Could not find dynamic module for
fdkaac encoder.
2018/09/23 20:21:04 [decoder:3] Method "MAD" accepted "default/single.mp3".
2018/09/23 20:21:04 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz
master.
2018/09/23 20:21:04 [frame:3] Frame size must be a multiple of 1764 ticks =
1764 audio samples = 1 video samples.
2018/09/23 20:21:04 [frame:3] Targetting 'frame.duration': 0.04s = 1764
audio samples = 1764 ticks.
2018/09/23 20:21:04 [frame:3] Frames last 0.04s = 1764 audio samples = 1
video samples = 1764 ticks.
2018/09/23 20:21:04 [threads:3] Created thread "generic queue #1".
2018/09/23 20:21:04 [threads:3] Created thread "generic queue #2".
2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #1".
2018/09/23 20:21:04 [threads:3] Created thread "non-blocking queue #2".
2018/09/23 20:21:04 [nc::3] Loading playlist...
2018/09/23 20:21:24 [protocol.process:3] Failed to execute echo ./test.mp3
>> "/tmp/liq-process65471a.txt": ("timeout","19.3759880066")
2018/09/23 20:21:24 [nc::2] Timeout when resolving playlist URI "nc:"!
2018/09/23 20:21:24 [nc::3] Successfully loaded a playlist of 0 tracks.
2018/09/23 20:21:24 [threads:3] Created thread "alsa_out(default)" (1
total).
2018/09/23 20:21:24 [threads:3] Created thread "wallclock_alsa" (2 total).
2018/09/23 20:21:24 [clock.wallclock_alsa:3] Streaming loop starts,
synchronized by active sources.
2018/09/23 20:21:24 [alsa_out(default):3] Source failed (no more tracks)
stopping output...
2018/09/23 20:21:24 [alsa_out(default):3] Using ALSA 1.1.3.
2018/09/23 20:21:24 [alsa_out(default):2] Falling back on interleaved S16LE
2018/09/23 20:21:24 [alsa_out(default):3] Samplefreq=44100Hz,
Bufsize=1048576B, Frame=4B, Periods=1024
2018/09/23 20:21:24 [threads:3] Thread "alsa_out(default)" terminated (1
remaining).


Le dim. 23 sept. 2018 à 20:13, sébastien dagnicourt <
sebastien.dagnico...@gmail.com> a écrit :

> Hi,
>
> I tested something like your script, and it failed.
>
> def nextcloud(~rlog,~maxtime,arg) =
>   [process_uri(extname="txt","echo ./test.mp3 >> $(output)")]
> end
> add_protocol("nc",nextcloud,doc="Fetch files from nextcloud",
> syntax="nc://uri")
>
> Salsa = playlist("nc:")
> output.alsa(fallible=true,Salsa)
>
> 2018/09/23 20:08:06 [nc::3] Loading playlist...
> 2018/09/23 20:08:26 [protocol.process:3] Failed to execute echo ./test.mp3
> >> "/tmp/liq-processaa631c.txt": ("timeout","19.7391860485")
> 2018/09/23 20:08:26 [nc::2] Failed when resolving playlist URI "nc:"!
> 2018/09/23 20:08:26 [nc::3] Successfully loaded a playlist of 0 tracks.
>
> If I test with a static list like this one '/tmp/liq-processaa631c.txt' it
> works so I assume that the "echo" command is well executed and that the
> result file is good.
>
> I check if I can upgrade to 1.3.4
>
>
>
> Le dim. 23 sept. 2018 à 18:27, Romain Beauxis <romain.beau...@gmail.com>
> a écrit :
>
>> Hi,
>> Le sam. 22 sept. 2018 à 13:10, sébastien dagnicourt <
>> sebastien.dagnico...@gmail.com> a écrit :
>> >
>> > Hi,
>> >
>> > So new tests:
>> > I create a local "radio.txt" file.
>> > I put in in the playlist function, tracks were discovered and played.
>> >
>> > So, I created a simple bash file that do a "cat radio.txt >>
>> tmp_liquidsoap_file"
>> > Same issue, liquidsoap won't take the file.
>> > As you suggested I put a debug echo before the exit 0, the echo is ok.
>> The content of the tmp file is ok.
>> > Can't do more simple than that ...
>>
>> That's a good start! This works for me with 1.3.4:
>>
>> def test(~rlog,~maxtime,arg) =
>> [process_uri(extname="txt","echo /tmp/bla.wav >> $(output)")]
>> end
>> add_protocol("test",test)
>>
>> s = playlist("test:")
>>
>> output.ao(fallible=true,s)
>>
>> Is that similar to your test?
>> Romain
>> _______________________________________________
>> Savonet-users mailing list
>> Savonet-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to