Interests: programming, video games, anime, music composition

I used to be on kbin as [email protected] before it broke down.

  • 4 Posts
  • 39 Comments
Joined 2 years ago
cake
Cake day: November 27th, 2023

help-circle
  • I’ve been trying to figure out a related sort of video streaming setup for work (without Owncast, but with a similar sort of 24/7 goal plus other considerations) and have been looking into using ffmpeg’s capabilities to output either HLS or DASH segments + manifests. (FFMPEG can do both but I don’t know which would be better for my needs yet.) The sources I’m working with are RTSP/RTP instead of RTMP and I only need streaming to browser clients currently – although it working with VLC naturally by pointing it to the manifest is nice.

    HLS and DASH work by having videos split into small chunks that can be downloaded over HTTP, so just replacing the manifest allows for continuous streaming (the client pulls it repeatedly) without the server needing to maintain a continuous connection to the client.(Fan out to CDNs works naturally since the video chunks are just files that can be served by any web server.)

    It should be possible to do some creative things by either creating / modifying the manifests myself with scripting or by piping chunks into another instance of ffmpeg from a script. (I’ve done something similar using -f image2pipe in the past, but that was for cases where I need to do things like create a video from an image gallery dynamically.) That’s as far as I’ve gotten with it myself though.

    I don’t know what the right answer is either, but I’m also interested in finding out and hopeful you get additional responses.



  • Not sure how you’re getting things desynchronized. If I just put an img on a page and transform it with CSS (e.g. img { transform: rotate(90deg) scale(50%); }) as a quick test, the areas on a map I associated with it correctly correspond to the rotated and scaled areas displayed. The pixels I used in the map are from the coordinate system of the image – not absolute coordinates on the page.


  • I went back through Wikipedia’s current events from June 2025 and put together a rough timeline:

    • 2025-06-12: IAEA declares Iran in breach of its nuclear non-proliferation obligations.
    • 2025-06-13: Israel attacks Iran targeting nuclear facilities and senior government officials. Iran retaliates with missles and drones.
    • 2025-06-17: Donald Trump calls for Iran’s unconditional surrender. Iran refuses.
    • 2025-06-22: The US announces it has bombed multiple nuclear facilities in Iran – particularly including sites at Fordow and Natanz which are deep underground – using its unusual ~30000 pound (~12000 kg) Massive Ordnance Penetrator bombs. Iran retaliates by firing missles at a US base in Qatar and by voting to close the Strait of Hormuz.
    • 2025-06-24: The US and Qatar mediate a ceasefire between Israel and Iran. Donald Trump says Israel and Iran “don’t know what the fuck they are doing” as the countries continue fighting initially. It seems to be holding so far after a rocky start though?









  • Ruby is already a functional programming language – you can pass functions to functions, return functions from functions, and make closures in Ruby already. You’re probably already using some functional programming concepts if you’ve done anything non-trivial in Ruby even if it didn’t register for you as “functional programming”.

    If you want to do ML (current “AI”), you’d probably do best to learn some Python (PyTorch, TensorFlow, etc.) and maybe CUDA for lower-level control. (It’s basically C++ with extra features for running code on NVIDIA GPUs.) There might be Ruby wrappers for the underlying ML libraries, but I expect most resources you’ll find (e.g. StackOverflow answers) will assume you’re working with Python…

    If you’re still interested in learning one of the languages you listed, you’ll get some educational benefits from exploring them but I don’t think you’re likely to get much practical benefit out of it for AI over Ruby. I learned a lot from exploring Clojure personally – I particularly liked the idea of identity as a series of values over time – but I don’t work in the JVM ecosystem, and so I haven’t actually done anything with the language in 10+ years… The concepts I learned from playing with it were more useful than the language itself to me.







  • Sichuan pepper provides a numbing effect. It’s usually combined with spicy chili to make the Chinese “mala” taste.

    The numbing effect was the most memorable part of my experience of trying tantanmen when I was in Japan a long time ago; I hadn’t encountered Sichuan pepper before that, so it was quite surprising!

    If you’re getting the numbing effect then there’s some mixed into one of the ingredients you used. If not, you’re missing out on an interesting ingredient that you can use in the dish.