Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-05-21 Thread mylselgan
> Thank you @smimram . > > And if I want to revert to my OPAM version should I just `cd` into the git > clone directory and then do: > > ``` > opam unpin liquidsoap . > ``` > > ? Thank you `Opam pin remove liquidsoap` -- You are receiving this because you are subscribed to this thread.

Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-05-18 Thread mylselgan
Yes, both works now. I started the test script. I will report here tomorrow how changing pipeline works on error. Thanks. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-05-18 Thread mylselgan
> but before testing this script this recent commit breaks my already working > script > > My script which worked previously > > ``` > url = "http://path to m3u8") > video_source = mksafe(gstreamer.hls(url)) > audio_only = drop_video(video_source) > s = fallback(track_sensitive=false,

Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-05-17 Thread mylselgan
but before testing this script this recent commit breaks my already working script My script which worked previously ``` url = "http://path to m3u8") video_source = mksafe(gstreamer.hls(url)) audio_only = drop_video(video_source) s = fallback(track_sensitive=false, [audio_only])

Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-05-17 Thread mylselgan
@smimram the pipeline parameter can not be passed to gstreamer.hls ``` At line 23, char 38-41: cannot apply that parameter because the function (at line 23, char 14-28) has no argument labeled "pipeline"! ``` how can we use this on gstreamer.hls please give me a simple test script to test in

Re: [Savonet-users] [savonet/liquidsoap] Split up file builtins, add file.write, add youtube-pl: to resolve (48a7dd2)

2019-05-05 Thread mylselgan
Hi, after this commit i get the following warning when using normal `youtube-dl` ``` "Warning: ignored expression at /home/radio/.opam/default/lib/liquidsoap/lib/liquidsoap/scm/protocols.liq, line 278 char 34 - line 279 char 41." ``` my script is `url = get_process_output("youtube-dl -f 93 -g

Re: [Savonet-users] [savonet/liquidsoap] Add a reload command (#49)

2019-05-04 Thread mylselgan
Hi, I want to restart the whole script if the main source failed and mksafe called or static emergency single called could you please give me any example here -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Gstreamer.hls keeps trying Forbidden HTTP status URLs (#762)

2019-04-30 Thread mylselgan
Hi, I too have issues with gstreamer.hls toots suggests to use ffmpeg2wav to use the youtube video as a audio track like `"ffmpeg2wav:youtube-dl:-IYXYB0r-Ww"` Check these 2 issues. https://github.com/savonet/liquidsoap/issues/726 and https://github.com/savonet/liquidsoap/issues/623 I don't know

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2019-04-25 Thread mylselgan
@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= 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 =

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2019-04-25 Thread mylselgan
Yes my youtube-dl is latest (youtube-dl is up-to-date (2019.04.24) actually this script is works well for few hours but if any error occurred the gsteamer pipeline failed to restart and throws the above error every 3 seconds. it works again if i restart the liquidsoap-daemon again -- You are

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2019-04-25 Thread mylselgan
I sent the full script to your email -- 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-486624037___ Savonet-users

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2019-04-25 Thread mylselgan
Hi please reopen this issue now I have which files cause this gstreamer error. Gstreamer works fine for few hours but fails to reconnect if any issue happens and feeds blank audio Note: script is not fallback to emergency mp3 file and retries gstreamer source every 3 seconds. I have tried with

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-20 Thread mylselgan
after few hours it crashes abruptly Here is the log ``` 2019/04/20 08:44:11 [input(dot)gstreamer(dot)audio_video_6679:3] Incorrect stream type! 2019/04/20 08:44:11 [input(dot)gstreamer(dot)audio_video_6679:3] Error while processing input data: Generator.Incorrect_stream_type 2019/04/20

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-20 Thread mylselgan
> I'm glad that it is working. One problem to address in this script is the > expiration of the .m3u8 link that youtube—dl gives. Ideally we would refresh > this link without cutting the stream. Maybe with some buffering. Does anyone > know how to accomplish this? > This issue not only in

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-19 Thread mylselgan
Thank you @alexandre1985 and @chrispolley it is working fine now I asked you to install gstreamer plugins above but I forgot it to install them on my system :) that's the issue here. Yes I am using your script above we can remove `ytv = argv(1)` and `{ytv}` at the end of the url. -- You are

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-19 Thread mylselgan
Hi, @alexandre1985 Too glad to hear the success, which version of liquidsoap you are using But not working for me. My log is ``` 2019/04/19 16:06:08 >>> LOG START 2019/04/19 16:05:51 [main:3] Liquidsoap 1.3.4 2019/04/19 16:05:51 [main:3] Using: bytes=[distributed with OCaml 4.02 or above]

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-18 Thread mylselgan
Previously I used gstreamer to successfully decode m3u8. My script is ``` s= input.gstreamer.audio(pipeline="uridecodebin uri=http://radio103-lh.akamaihd.net/i/radio_1@507820/master.m3u8;) ``` You can install gstreamer by executing `opam install gstreamer` Gstreamer may also need some

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-18 Thread mylselgan
I am not an expert here but this may help. If you installed liquidsoap via opam clone the HLS branch https://github.com/savonet/liquidsoap/tree/HLS cd opam pin add liquidsoap . opam update opam remove liquidsoap opam install liquidsoap -- You are receiving this because you are subscribed to

Re: [Savonet-users] [savonet/liquidsoap] [QUESTION/FEATURE REQUEST] get youtube live stream as input (#757)

2019-04-18 Thread mylselgan
Please check with the following pull request just now submitted by Samuel Mimram https://github.com/savonet/liquidsoap/pull/758 I think m3u8 link is HLS My environment isn't ready yet so I cant test here -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Savonet-users] [savonet/liquidsoap] Connection timeout issue with youtube-dl (#726)

2019-03-12 Thread mylselgan
When I run `$ youtube-dl --get-title --get-filename -- "https://www.youtube.com/watch?v=rmCA3qQkqso; ` the output is ``` Michael Jackson - Billie Jean (30th Anniversary Celebration) (Remastered Widescreen) Michael Jackson - Billie Jean (30th Anniversary Celebration) (Remastered

Re: [Savonet-users] [savonet/liquidsoap] Connection timeout issue with youtube-dl (#726)

2019-03-01 Thread mylselgan
I get following log with `single` . Please check my opening post for full log ``` 2019/03/01 15:57:06 [single_6317:5] Failed to prepare track: no file. 2019/03/01 15:57:06 [single_6317:5] Queue is empty ``` -- You are receiving this because you are subscribed to this thread. Reply to this email

Re: [Savonet-users] [savonet/liquidsoap] Connection timeout issue with youtube-dl (#726)

2019-03-01 Thread mylselgan
With the following script ``` play = playlist.safe("youtube-dl:https://www.youtube.com/watch?v=rmCA3qQkqso;) s = fallback(track_sensitive=true,[(play)]) output.icecast(%mp3 ``` I get following Log which shows connection timeout clearly ``` 2019/03/01 16:12:43 >>> LOG START 2019/03/01 16:12:43

[Savonet-users] [savonet/liquidsoap] Connection timeout issue with youtube-dl (#726)

2019-03-01 Thread mylselgan
**Describe the bug** I face connection timeout issue with youtube-dl **To Reproduce** ``` play = single("youtube-dl:https://www.youtube.com/watch?v=rmCA3qQkqso;) s = fallback(track_sensitive=true,[(play)]) output.icecast(%mp3 ``` **Expected behavior** Buffer the youtube video and output to

Re: [Savonet-users] [savonet/liquidsoap] Probleme with liveMeta (#715)

2019-02-16 Thread mylselgan
for your understanding, here "live" is the mount point it will update the title field to "Live DJ Connected" whenever live connected -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Probleme with liveMeta (#715)

2019-02-16 Thread mylselgan
Updating custom metadata on live connect at harbor can be done using this script live= input.harbor(icy=true,icy_metadata_charset="UTF-8","live",port=,password="") def append_title(m) = [("title","Live DJ Connected")]end live = map_metadata(append_title, live) -- You are receiving this

Re: [Savonet-users] [savonet/liquidsoap] Floating point exception when output to fdkaac (#699)

2019-01-29 Thread mylselgan
just removed deb http://www.deb-multimedia.org testing main non-free and added deb http://www.deb-multimedia.org stretch main non-free then reinstalled libfdk-aac-dev and fdkaac. now works fine with default `aot="mpeg4_he_aac_v2"` and outputs aacp as expected. libfdk-aac-dev:amd64 (1:2.0.0-dmo1)

Re: [Savonet-users] [savonet/liquidsoap] Floating point exception when output to fdkaac (#699)

2019-01-29 Thread mylselgan
Thanks for the hint I have installed fdkaac with following steps # add the following to the sources list deb http://www.deb-multimedia.org testing main non-free sudo apt-get update sudo apt-get install deb-multimedia-keyring sudo apt-get update opam depext fdkaac opam install fdkaac -- You are

Re: [Savonet-users] [savonet/liquidsoap] Floating point exception when output to fdkaac (#699)

2019-01-28 Thread mylselgan
Hi, Thanks `aot="mpeg2_he_aac"` works with all bitrate, samplerate configuration but outputs to audio/aac I have extensively tested `aot="mpeg2_he_aac_v2"` with all bitrate, samplerate configuration and also with different parameters like `afterburner=true, transmux="adts", sbr_mode=true`.

[Savonet-users] [savonet/liquidsoap] Floating point exception when output to fdkaac (#699)

2019-01-28 Thread mylselgan
**Describe the bug** It works fine when output to icecast or shoutcast with mp3 but not with fdkaac. it simply throws "Floating point exception" **To Reproduce** set("log.file.path", "/home/radio/liq.log") set("log.file",true) set("log.stdout",true) set("log.level", 5) play =

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-09-12 Thread mylselgan
HI, sorry for this again `Error while restarting pipeline: Gstreamer.Failed 1536298845.313377 [input(dot)gstreamer(dot)audio_video_6184:3] Will retry again in 3.00` while cheching log file, it retried several 1000 times then connected once then failed again then finally switched to emergency

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-09-08 Thread mylselgan
I tested for 3 days and it works fine without any issue. Thanks @toots for taking time to fix this. You helped me to reduce number of physical servers thus saving lots of electricity power. You guys indirectly helping for a green environment with this project. Thank you all. -- You are

Re: [Savonet-users] [savonet/liquidsoap] Override server time with timezone on script (#621)

2018-09-07 Thread mylselgan
Closed #621. -- 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/621#event-1833155176-- Check out the

Re: [Savonet-users] [savonet/liquidsoap] Override server time with timezone on script (#621)

2018-09-07 Thread mylselgan
I have modified my requirement and setenv("TZ") works fine. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Override server time with timezone on script (#621)

2018-09-06 Thread mylselgan
In above script i assume the server timezone is UTC -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

[Savonet-users] [savonet/liquidsoap] Override server time with timezone on script (#621)

2018-09-06 Thread mylselgan
Is there a way we can input different timezone for each scripts. The script should override server time. ``` timezone=UTC+6 switch([ ({ (1w) and 3h-8h}, rock), ``` in above example the rock should start play on 9h and end on 14h. If not possible please conciser it as a feature

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-09-05 Thread mylselgan
cd ocaml-gstreamer git pull opam pin add . opam reinstall -y gstreamer cd .. cd liquidsoap git pull opam pin add . opam reinstall -y liquidsoap Is this the correct way to update the latest commit? -- You are receiving this because you are subscribed to this thread. Reply to this email directly

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-09-03 Thread mylselgan
I tried `emergency = single("/home/radio/liquidsoap-daemon/media/5-minutes.mp3") gst = input.gstreamer.audio(pipeline="uridecodebin uri=http://m3u8 url") s = fallback(track_sensitive=false,[gst,emergency])` with a m3u8 live stream. It worked close to 48 hours then switched to the emergency

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-09-02 Thread mylselgan
Installation success Liquidsoap 1.3.3+scm gstreamer=0.3.0 Loaded GStreamer 1.8.3 0 Started suggested test script now with a m3u8 input. output is successful. I will monitor it for three days and report here the result. -- You are receiving this because you are subscribed to this thread.

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-30 Thread mylselgan
Yes, tested in two different servers. Also tried by removing ocaml-gstreamer folder and re clone it. I will try again in a newly installed server in few minutes. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-29 Thread mylselgan
updated the git 57077b8..a9ad8df master -> origin/master 1 file changed, 4 insertions(+) radio@scw-019aaf:~/liqsource/ocaml-gstreamer$ opam update install gstreamer > success install liquidsoap > failed removed gstreamer and install liquidsoap > success then install gstreamer >

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-29 Thread mylselgan
After installing autoconf gstreamer dev is successful but liquidsoap failed. server detail: Ubuntu Xenial (16.04 LTS) (GNU/Linux 4.4.0-119-generic x86_64 ) System load:0.15 Memory usage: 0.0% Usage on /: 31% Local Users:1 Image build:

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-28 Thread mylselgan
also tried `opam depext gstreamer.dev' but still no success. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-28 Thread mylselgan
Tried to update gstreamer but failed. Please check the attached log [installlog.txt](https://github.com/savonet/liquidsoap/files/2328971/installlog.txt) -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub:

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-27 Thread mylselgan
currently I have tested it with Liquidsoap 1.3.3 (installed via opam) ocaml-gstreamer-0.2.3 my current code is emergency = single("/home/radio/liquidsoap-daemon/media/5-minutes.mp3") gst = mksafe(input.gstreamer.audio(pipeline="uridecodebin uri=http://any mms or m3u8 or shoutcast url")) gst =

Re: [Savonet-users] [savonet/liquidsoap] Empty output comes after few minutes of encoding (#339)

2018-08-26 Thread mylselgan
Thanks Toots for taking this issue for To Do list of 1.3.4 release. I am still eagerly waiting for the solution. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: