Live data from Hacker News

Make an internet radio station with one line of bash

schollz.com

31–40 of 55 posts

Re: Make an internet radio station with one line of bash

#31

I think the dissenting / mocking comments here are missing the spirit of the post. Since bash can evoke any Turing complete program, feasibly anything could be done with one line of bash. The authors intent as I saw was to show what that line was. Would you have known without this article? Whether or not people are just being sarcastic, I feel we should definitely not mock but rather encourage any open and free attem…

[deleted]

Re: Make an internet radio station with one line of bash

#33
post #18

Earlier quoted context omitted.

It's also visible in the process table (ps auxww). It can be erased by rewriting the arguments from inside the process (I think this is OS-specific, not the same as changing argv in-place), but that is a race condition. The safe way is to either read it from stdin/fd (maybe call isatty(3) to check if someone doesn't echo password | ./foo), or open a file (check if permissions are 600). You could also have a named soc…

another option is in an env variable (from an encrypted file). gpg -d ~/secrets/nuclear_launch_codes.gpg source ~/secrets/nuclear_launch_codes where the gpg key has a password and is stored on a hardware dongle that doesn't allow copying the private key off. If you really want to be fancy, there are some hardware security keys that also require a biometric to confirm. The other option is something like Hasicorp Vault…

can't you do `cat /proc/$PID/environ`?

Re: Make an internet radio station with one line of bash

#37
post #24
post #22

Earlier quoted context omitted.

The original title of the article is: > Your own internet radio station in one line

OP here. The original title did include the word "bash" (it was the one and only instance of the word "bash"). I removed this word from the main article because including the word "bash" superseded a conversation that was nominally about internet broadcasting. Maybe the title of this HN submission can be changed too. I appreciate the commenters that picked up on the main theme of article and shared some interesting l…

[deleted]

Re: Make an internet radio station with one line of bash

#38
post #13

Fascinating. I recall two other interesting uses of ffmpeg: to stream to twitch[1], and to record video[2]. [1] https://stackoverflow.com/questions/54273291/streaming-a-str... [2] https://www.youtube.com/watch?v=HO6oU5oT6uU

There's a lot of FFmpeg streaming info here:

https://trac.ffmpeg.org/wiki/StreamingGuide

Re: Make an internet radio station with one line of bash

#39
post #35

Does anyone have experience with https://www.liquidsoap.info/ for simple radio stations? Is it any good?

Yes, I highly recommend it. You can express your broadcast in a nice functional DSL. We are running a community radio and use it there in production for couple of years now.[0] (Ours linked is a very suboptimal solution but performs w/o any hiccup even though we got some pretty specific constraints.) We could've gotten many more mileage out of it, if we really would have had the time to focus on creating libs and functions for our specific needs as the API is really powerful, the docs are a good read. Also, on a more subjective note: It's developed by nice guys and even if some built-ins fail from time-to-time since there's no real rush to update we can help test w/ them & give some input on features.

[0] https://github.com/mmmnmnm/lahmacun/blob/master/azuracast/li...

Re: Make an internet radio station with one line of bash

#40

I think the dissenting / mocking comments here are missing the spirit of the post. Since bash can evoke any Turing complete program, feasibly anything could be done with one line of bash. The authors intent as I saw was to show what that line was. Would you have known without this article? Whether or not people are just being sarcastic, I feel we should definitely not mock but rather encourage any open and free attem…

The one line didn't even "Make an internet radio statio" it just uploaded streaming audio to a web site.
Post reply on HN