@toots
The script you provided is not working it just plays the single
i use youtube-dl -f 93 -g https://www.youtube.com/watch?v=<video id> to get the
m3u8 url and give input to the above script. the full script sent to your mail
as well
here is the log for
```
emergency = single("/home/radio/media/silent/5-minutes.mp3")
url = "youtube url"
video_source = gstreamer.hls("youtube-dl:#{url}")
audio_only = drop_video(video_source)
s = fallback(track_sensitive=false, [audio_only,emergency])
```
```
2019/04/25 20:19:06 >>> LOG START
2019/04/25 20:19:06 [main:3] Liquidsoap 1.3.7
2019/04/25 20:19:06 [main:3] Using: bytes=[distributed with OCaml 4.02 or
above] pcre=7.4.1 dtools=0.4.1 duppy=0.8.0 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
gstreamer=0.3.0 fdkaac=$
2019/04/25 20:19:06 [gstreamer.loader:3] Loaded GStreamer 1.17.0 1
2019/04/25 20:19:06 [decoder:4] Trying method "META" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder:4] Trying method "WAV" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder.wav/aiff:4] Invalid file extension for
"/home/radio/media/silent/5-minutes.mp3"!
2019/04/25 20:19:06 [decoder:4] Trying method "AIFF" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder.wav/aiff:4] Invalid file extension for
"/home/radio/media/silent/5-minutes.mp3"!
2019/04/25 20:19:06 [decoder:4] Trying method "MIDI" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder:4] Trying method "IMAGE" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder:4] Trying method "OGG" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder.ogg:4] Invalid file extension for
"/home/radio/media/silent/5-minutes.mp3"!
2019/04/25 20:19:06 [decoder:4] Trying method "MAD" for
"/home/radio/media/silent/5-minutes.mp3"...
2019/04/25 20:19:06 [decoder.mad:4] Libmad recognizes
"/home/radio/media/silent/5-minutes.mp3" as mpeg audio (layer III, 8kbps,
8000Hz, 2 channels).
2019/04/25 20:19:06 [decoder:3] Method "MAD" accepted
"/home/radio/media/silent/5-minutes.mp3".
2019/04/25 20:19:06 [decoder.ogg:4] Invalid file extension for
"/home/radio/media/silent/5-minutes.mp3"!
2019/04/25 20:19:06 [decoder.gstreamer:4] Invalid file extension for
"/home/radio/media/silent/5-minutes.mp3"!
2019/04/25 20:19:06 [frame:3] Using 44100Hz audio, 25Hz video, 44100Hz master.
2019/04/25 20:19:06 [frame:3] Frame size must be a multiple of 1764 ticks =
1764 audio samples = 1 video samples.
2019/04/25 20:19:06 [frame:3] Targetting 'frame.duration': 0.04s = 1764 audio
samples = 1764 ticks.
2019/04/25 20:19:06 [frame:3] Frames last 0.04s = 1764 audio samples = 1 video
samples = 1764 ticks.
2019/04/25 20:19:06 [video.converter:4] Using preferred video converter: gavl.
2019/04/25 20:19:06 [threads:3] Created thread "gstreamer_main_loop" (1 total).
2019/04/25 20:19:06 [audio.converter:4] Using preferred samplerate converter:
libsamplerate.
2019/04/25 20:19:06 [threads:3] Created thread "generic queue #1".
2019/04/25 20:19:06 [threads:3] Created thread "generic queue #2".
2019/04/25 20:19:06 [threads:3] Created thread "non-blocking queue #1".
2019/04/25 20:19:06 [threads:3] Created thread "non-blocking queue #2".
2019/04/25 20:19:06 [clock:4] Currently 1 clocks allocated.
2019/04/25 20:19:06 [clock.wallclock_main:4] Starting 1 sources...
2019/04/25 20:19:06 [source:4] Source main gets up.
2019/04/25 20:19:06 [source:4] Source fallback_6664 gets up.
2019/04/25 20:19:06 [source:4] Source drop_video_6662 gets up.
2019/04/25 20:19:06 [drop_video_6662:4] Content kind is
{audio=2;video=0;midi=0}.
2019/04/25 20:19:06 [source:4] Source input.gstreamer.audio_video_6660 gets up.
2019/04/25 20:19:06 [input.gstreamer.audio_video_6660:4] Content kind is
{audio=2;video=1;midi=0}.
2019/04/25 20:19:06 [input(dot)gstreamer(dot)audio_video_6660:4] Activations
changed: static=[drop_video_6662:fallback_6664:main:main], dynamic=[].
2019/04/25 20:19:06 [drop_video_6662:4] Activations changed: static=[],
dynamic=[fallback_6664:main:main].
2019/04/25 20:19:06 [source:4] Source single_6657 gets up.
2019/04/25 20:19:06 [single_6657:3] "/home/radio/media/silent/5-minutes.mp3" is
static, resolving once for all...
2019/04/25 20:19:06 [single_6657:4] Content kind is {audio=2;video=0;midi=0}.
2019/04/25 20:19:06 [single_6657:4] Activations changed: static=[],
dynamic=[fallback_6664:main:main].
2019/04/25 20:19:06 [fallback_6664:4] Activations changed: static=[main:main],
dynamic=[].
2019/04/25 20:19:06 [single_6657:3] Prepared
"/home/radio/media/silent/5-minutes.mp3" (RID 0).
2019/04/25 20:19:06 [main:4] Activations changed: static=[main], dynamic=[].
2019/04/25 20:19:06 [main:4] Enabling caching mode: active source.
2019/04/25 20:19:06 [main:3] Connecting mount /ptv for sou...@myserver.com...
2019/04/25 20:19:06 [main:3] Connection setup was successful.
2019/04/25 20:19:06 [threads:3] Created thread "wallclock_main" (2 total).
2019/04/25 20:19:06 [clock:4] Main phase starts.
2019/04/25 20:19:06 [clock.wallclock_main:3] Streaming loop starts,
synchronized with wallclock.
2019/04/25 20:19:06 [fallback_6664:3] Switch to single_6657.
2019/04/25 20:19:06 [single_6657:4] Activations changed:
static=[fallback_6664:main:main], dynamic=[fallback_6664:main:main].
2019/04/25 20:24:06 [decoder:4] Decoding
"/home/radio/media/silent/5-minutes.mp3" ended: Mad.End_of_stream.
2019/04/25 20:24:06 [single_6657:3] Finished with
"/home/radio/media/silent/5-minutes.mp3".
2019/04/25 20:24:06 [single_6657:3] Prepared
"/home/radio/media/silent/5-minutes.mp3" (RID 0).
```
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/339#issuecomment-486712256
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users