Readit News logoReadit News
neRok commented on FFmpeg 8.0   ffmpeg.org/index.html#pr8... · Posted by u/gyan
PokestarFan · 8 days ago
FFMpeg is probably not as up high since video processing only needs to be done on the servers that receive media. I doubt most phones are running FFMpeg on video.
neRok · 8 days ago
Chrome and Firefox use FFmpeg libraries to decode media, so it's in more places than you might think! (But also, ChatGPT said it's not used in Android browser apps because they would use Android's "native" media stack).
neRok commented on FFmpeg 8.0   ffmpeg.org/index.html#pr8... · Posted by u/gyan
Dwedit · 8 days ago
Has anyone made a good GUI frontend for accessing the various features of FFMPEG? Sometimes you just want to remux a video without doing any transcoding, or join several video and audio streams together (same codecs).
neRok · 8 days ago
Joining videos together sounds easy, but there's tons of ways it can go wrong! You've got time bases to consider, start offsets, frame/overscan crops, fps differences (constant vs variable), etc. And even though your videos might both be h264, one might be encoded with B frames and open GOP, and the other not, and that might cause playback issues in certain circumstances. Similarly, both could be AAC audio, but one is 48kHz sample rate, the other 44.1kHz.

Someone else mentioned Lossless-Cut program, which is pretty good. It has a merge feature that has a compatibility checker ability that can detect a few issues. But I find transcoding the separate videos to MPEG-TS before joining them can get around many problems. If you fire up a RAM-Disk, it's a fast task.

  ffmpeg -i video1.mp4 -c copy -start_at_zero -fflags +genpts R:\video1.ts;
  ffmpeg -i video2.mp4 -c copy -start_at_zero -fflags +genpts R:\video2.ts;
  ffmpeg -i "concat:R:\video1.ts|R:\video2.ts" -c copy -movflags +faststart R:\merged.mp4

neRok commented on Where's Firefox going next?   connect.mozilla.org/t5/di... · Posted by u/ReadCarlBarks
test1235 · a month ago
if there's one surprising thing I've learnt from HN users, it's that there're loads of people out there who run browsers with zillions of tabs open all the time
neRok · a month ago
Meanwhile I do 50% of my internet-ing in private mode and get annoyed when I change between apps the wrong way and loose my 4 tabs lol. I think this particular issue happens because firefox-android must get told by android-OS to free up RAM as it's now a background-app.

But there's another private-tab-killer, and it happens when the screen times-out automatically or manually (eg, when you push the power button). I don't have a passcode or anything, so when I push the power button to power the screen on, it shows the simple "swipe to unlock" screen. The problem is that FF leaves a "private browsing" notification — and FYI, if you click on any notification on my lock screen, it will unlock and go to straight to that app — so of course I see that notification and think "shit yer, here's a shortcut" and click it, to which it unlocks the phone and opens FF, but it wipes all my private browsing tabs in the process!!! But if you unlock it by swiping, then your tabs will survive...

Actually, as I'm typing this, I think it might wipe ALL tabs, but that's not so bad for regular tabs (as you have history, cookies, etc), but it can still ruin your "state" of a search/scroll/etc.

Edit2: I'm also just realising that the way it wipes tabs when I click the notification sounds just like the first issue I mentioned (which I presume is android-OS garbage collecting the memory held by "background" apps). I have a POCO phone that runs Xiaomi HyperOS, and if it's running a non-standard lock-screen "app" by default (because I'm using the default whatever with settings that suit me), then perhaps that's why clicking a notification counts as "changing apps"?! (or perhaps even the default android lock screen counts as its own app?) But this idea seems strange because it would imply that the "swipe to unlock" feature is not part of the "lock screen app"...?

neRok commented on Where's Firefox going next?   connect.mozilla.org/t5/di... · Posted by u/ReadCarlBarks
gfdjghd · a month ago
Firefox Android:

    The address bar has become cluttered with buttons THAT SHOULDN'T BE THERE: "home" (useless), "translate" (won't go away no matter the setting), and now "share" (for real!?), "reading mode"; remove them from there, I can barely see the first few letters of the address! Also way too much spacing around them
    I always have to manually close the previous tab when tapping on a link, let us reuse them instead, you may call us owls or wharever, but we don't like having zillions of tabs open to be closed automatically after x time
    Improve speed, it's currently the slowest browser out there
    Allow more customization (like about:config) and extensions, and for ex. to be able to remove the useless buttons from the address bar

neRok · a month ago
There's another way to get to about:config, see the following link.

https://www.askvg.com/how-to-access-about-config-page-in-fir...

neRok commented on Impacts of adding PV solar system to internal combustion engine vehicles   jstor.org/stable/26169128... · Posted by u/red369
throwaway3b03 · 2 months ago
Alternator delete is a very common hack in the ecomodder community (usually coupled with LiFePo or Lithium battery instead of the regular lead-acid). It reduces the complexity and load on the engine, and does give a few percentage better fuel efficiency. But if you mostly ride at night, yeah ...
neRok · 2 months ago
Everyone except you has approached this discussion with the intent of using the solar power to drive the car, but they should actually be thinking of using it to power the cars electrical system, and thus negating the need for the alternator.

A current gen 2.5L petrol Camry has a 12v 80A alternator. That 80amps likely covers driving at night in the rain (ie headlights on, window wipers going, HVAC fan blowing, etc). Normal daytime driving would be much less demanding, say 50A load, thus 600W power. Then you have to factor in the alternators inefficiencies, which could raise that demand to 1kW.

Next consider what the engine is having to generate whilst cruising, which could be 20kW for the Camry. In this scenario, that 1kW of alternator load is responsible for 5% of the engines load. So ditching the alternator would give 5% fuel efficiency increase on this Camry. A smaller car that only needs 12kW to cruise would see an 8% improvement (8% of a low consumption value though), whilst a much bigger car that needs 50kW to cruise would only see a 2% gain (but that's 2% of a high consumption value).

So if "solar body panels" could generate 500W like people have already guessed in this thread, then that would be close to offsetting the normal day-time electrical load. In this scenario it's probably a good idea to power the vehicles electrical system from a lithium battery, which wouldn't mind the gradual draw-down, because that could then be offset by parking the car in the sun (and possibly even by regenerative braking). Then there could still be an isolated lead-acid battery that is purely for starting the engine (because that needs high cranking amps), and that could be DC to DC charged from the vehicle circuit.

That 12v 80A alternator can generate almost 1kW at max effort. So even if you drive all night in the rain, that's still less than 1/5th of the energy in a Tesla or BYD vehicle battery. So this alternator-less car could get away with a much smaller battery, and it might even be smaller in area than the cars boot!

neRok commented on My AI skeptic friends are all nuts   fly.io/blog/youre-all-nut... · Posted by u/tabletcorry
malfist · 3 months ago
Today I had a dentist appointment and the dentist suggested I switch toothpaste lines to see if something else works for my sensitivity better.

I am predisposed to canker sores and if I use a toothpaste with SLS in it I'll get them. But a lot of the SLS free toothpastes are new age hippy stuff and is also fluoride free.

I went to chatgpt and asked it to suggest a toothpaste that was both SLS free and had fluoride. Pretty simple ask right?

It came back with two suggestions. It's top suggestion had SLS, it's backup suggestion lacked fluoride.

Yes, it is mind blowing the world we live in. Executives want to turn our code bases over to these tools

neRok · 3 months ago
I've only just got around to reading this article and HN discussion, hence the belated reply. I thought I would test out your use-case, and it gave me 4 legit products (I verified them), and also 3 additional tips. One reason I think our results could differ is because I don't just "bark orders at it" but instead "talk to it" and give it context. I think the contextgives it chance to "understand the topic" and then "answer the question" in 2 steps, whereas when you just say "toothpaste without SLS", it's just filtering a list without understanding why you or it would want to filter it that way. Also I think being polite helps, and I've seen posts here on HN that agree. So here's my prompt, FYI;

> Today I had a dentist appointment and mentioned having sensitivity issues, to which the dentist suggested I try a different toothpaste. I would like you to suggest some options that contain fluoride. However, I am also predisposed to canker sores if I use toothpaste with SLS in it, so please do not suggest products with SLS in them.

neRok commented on I do not remember my life and it's fine   aethermug.com/posts/i-do-... · Posted by u/mrcgnc
vladmk · 3 months ago
How does he remember this? "Occasionally, someone shows pity or commiseration towards me, as if I were in constant, daily suffering from a crippling disability. Nothing could be further from the truth, of course."
neRok · 3 months ago
For me, something like that is saved as a "data point" in the "facts folder", and thus is readily accessible. For example, I've got a big beard, and lots of people make compliments about it in public: at least once a month for over 5 years now. I know this as fact. But if you want me to recall a recent example of it happening, then nothing just springs to mind. As I probe my mind trying to find an example, one has come to mind, but it's not recent (from Jan this year). It occurred in the context of a notable event, so like other people have said elsewhere, it must be because I associated some importance with that event (and it was a novel event, which explains that), and that this beard-compliment has tagged along with it (the whole event has come to mind at this point too).

And just now in the process of writing all this, a quite recent example has come to mind, which may be the most recent, and it was when I was on walk and just crossed a corner when a car arrived at the corner to turn, and the male passenger already had their window down, and so he yelled out something like "cool beard", and the driver was female and didn't really pause turning or anything, and I didn't acknowledge the bloke at all (because fuck off, dont yell out at me from a car window). I'm not confident, but I think the car was a small-ish SUV. Anyway, apart from where it happened, I can't think of anything else. I don't know what clothes I was wearing, what they looked like (besides being ~30yo and white), what color their car was, what his voice sounded like, which direction they turned (it was a roundabout), etc.

* By probe my mind: in my case I am constantly "talking" in my head. It's as if someone is sitting over your shoulder going "uhh, you go to the shops often, maybe check that folder. nothing? uhh, what about ..." Eventually something will just pop-up. (I don't really say folder in my head, more like "maybe at the shops, maybe on the outside, maybe walking inside, whilst at the checkout? nothing? uhh..."

* By spring to mind: It's kind of like an email arrives in my inbox with all the details in it. All I can do is probe my mind a bit, then "check the inbox", then probe, etc. Whilst listening during conversation, events relevant to the conversation can just appear in the inbox. I don't know if the talkers words can trigger it, or if it's because my inner-voice is reviewing/breaking-down* what they are saying as they are saying it, and that's the trigger. This is also what happens when I am reading. Things can just appear whilst I am talking too, because my inner-voice is usually planning ahead in the conversation (and it also monitors tempo, audience response, etc), but I think it might be the same part of the brain that does speech, so it can only work at like half speed. Sometimes I will forget the word I was going to say or muddle a moment of speech, which is probably the inner-voice using too many resources. And of course, I can just "get distracted" and fork the convo at any moment (the classic "speaking of which"). My inner voice also plans ahead whilst I am writing, and it makes similar mistakes. Sometimes I will miss a word, or even just skip ahead a whole sentence (to the point where it was planning). It's particularly easy to "lose a sentence" if the word I'm typing is similar in letters to the one that's just been planned.

* Because my inner-voice is talking whilst they are talking, it can notice something interesting said in the conversation, or it could trigger an idea (I haven't pondered this before, but perhaps a 'new idea' notification just arrives in the inbox too...), and at the point my focus can drift as my mind explores that idea/topic (I think this is the ADHD "Predominately Inattentive" aspect at play).

* PS- Because I ponder so much, I have pondered something pretty "meta" before, like in the way that the universe could be a simulation. So yes, I have wondered if the voice in my head is me (it sounds like me), or if it's an entity that has "taken control of the wheel". On the rare occasion that it's not talking, I get the sense that it's still there, waiting. After a few moments there might be a "hmmm...".

Also my inner voice can do very accurate impressions, and sing just like the real singers it copies. There is a strange distinction between "singing lyrics" and "hearing a song with lyrics" in my head. It can even make sounds with my voice that are quite impressive, and I get the impression that it is possible for me to make those sounds. It tries for a moment to convince me to do it, before it chuckles and says "there's no way".

* PPS- As I was typing that last part, a memory popped up! I was at the strip club one time talking to a girl, and out the blue she goes "you've got a good voice, i reckon you would be a good singer", which made me think "fkn what". lol

* Update: I was just in the kitchen making a coffee, and thinking about how good this post was. A few things popped up; 1) https://www.youtube.com/watch?v=7mj2fVcyVkU 2) https://hurlburt.faculty.unlv.edu/hurlburt-heavey-kelsey-201... — "The median inner speech frequency of the participants in the Heavey and Hurlburt (2008) and Mihelic (2010) studies was 20 percent." 3) On the last project I was on, I think the engineer I was working with ended up with PTSD from all my ideas, lol. But still, they all liked it when the reviews from construction came back as "this is the best ever!"

As I was gathering those links — 4) https://www.youtube.com/watch?v=D5bJvo_THvg When people without inner voices watch a scene like that, I wonder what they think is happening. The TV show Peep Show is another example. Do they think the person is "first person" is actually saying those things? It would make no sense!

neRok commented on I do not remember my life and it's fine   aethermug.com/posts/i-do-... · Posted by u/mrcgnc
OptionOfT · 3 months ago
This is exactly what I experience, and for me, this is a huge issue when it comes to 'selling myself', whether it is in an interview, or writing a self-assessment for a review.

And just like the author, I couldn't answer questions about hard problems that I've solved, until someone pointed out a moment where I did something they would call an achievements.

Now, at that moment I have the right references. It is still hard to talk about it as an achievement, but at least the recollection is there.

And just like the author, I have an excellent spatial memory, remembering roads and direction, and the ability to use that to recall other details.

I wonder how much of this is related with having ADHD, which often makes things feel like you're merely a spectator in your own mind. While I was never hungry as a child, and had access to a good education, the situation with between my parents had a lasting impact on me.

neRok · 3 months ago
I've only just clued on to how my ADHD-PI has actually affected me. It was hard to tell because I'm evidently "smart enough" to work around the issues. Put simply, my "executive function" sends me a ton of inputs that I manage to juggle, but it takes effort, and so I look for ways to reduce my effort. So I'm not too good at recalling things like jokes, because I've put 0 effort in to remembering them. Part of the reason why is because I've been "shy" since childhood (because if you dont talk then you cant say something dumb or be rude - so problems solved), and so if I'm not talking, then there's no point in knowing jokes (and thus, potential effort is avoided). Just this afternoon I had a worked out that the reason why I don't "listen" to lyrics is likely because it requires "focusing" through the music, but I like the music, so I just listen to the vocals as if they were an instrument (and every now and then I'll just randomly hear some words, which gives the jist). I actually embody most of this meme: https://ifunny.co/meme/the-nooticer-the-37-year-old-nooticer...

Anyway, no more about that. Below is a very fresh "nooticing" — straight from my brain to ChatGPT to you;

Child 1) Me, male, left handed, ADHD-PI, aphantasia, strong spacial ability. Child 2) Female, right handed, ADHD-PI, good mental imagery, dyslexia, long time smoker. Child 3) Female, right handed, ADHD-PI, good mental imagery.

That's all of us, born around late-80's. I didn't dump that all that in to chatGPT (more of a drip-feed), but a pattern emerged quickly regardless; FYI: ADHD is in the Prefrontal Cortex (front of brain), whilst Dyslexia is in the Left Temporal Lobe (~mid left).

> Some studies suggest that fetal development could influence handedness. The position of the baby in the womb and the amount of hormonal exposure (such as testosterone levels) may have an impact on whether a person becomes left-handed or right-handed. Some theories propose that exposure to higher levels of testosterone during pregnancy may increase the likelihood of a person being left-handed.

> Spatial abilities are often tied to the right hemisphere of the brain, which might explain why some people with ADHD-PI (especially left-handed individuals) can develop enhanced spatial reasoning skills, even though their challenges with focus and attention are more prominent.

> Aphantasia, the inability to create mental images, has been linked to differences in how the brain processes and integrates visual information, particularly in the right hemisphere, which is responsible for spatial and visual processing.

> ADHD-PI and Dyslexia often co-occur, and research has shown that people with ADHD are at a higher risk of developing dyslexia or other learning disabilities, particularly dyslexia.

> Testosterone plays a critical role in fetal development, particularly in sexual differentiation (deciding whether a fetus develops as male or female). However, higher-than-normal levels of testosterone exposure during pregnancy can influence brain development, potentially affecting handedness, as well as behavioral tendencies (like aggression, risk-taking, and cognitive development).

> Elevated testosterone levels in utero have been linked to prenatal androgen exposure (often associated with more male-like traits), which may influence cognitive abilities and behavior: - Some studies suggest it could lead to enhanced spatial abilities and higher aggression. - On the flip side, it may increase the risk for neurodevelopmental disorders like ADHD or dyslexia, depending on how it affects brain regions involved in attention, language, and executive function.

> There are a few reasons why a mother might have elevated levels of testosterone during pregnancy: - 1. Maternal Health Conditions (e.g., Polycystic Ovary Syndrome - PCOS) - 2. Stress During Pregnancy: Stress—especially chronic stress—can increase the levels of certain hormones, like cortisol. However, there is also some evidence suggesting that stress can lead to altered hormone balance, which might include an increase in testosterone levels. - 3. Maternal Obesity - 4. External or Environmental Hormone Exposure: Endocrine-disrupting chemicals (EDCs) are substances that can interfere with the body's hormonal systems. Some EDCs mimic or disrupt normal hormone functions, potentially leading to higher levels of testosterone in the body. These chemicals can be found in a variety of products, from plastics to pesticides.

Testosterone is the common thread there, and so the question is: why did mum have so much? She was both a stress-head and smoker, but I can't ask her any specifics, because she's dead. So in hind-sight I would say that she had ADHD as well, and so she must have been internalising many things that would then lead to overthinking, which would cause stress and anxiety ("over-worry" sort of thing).

Her and dad also smoked cigarettes forever since I can remember, but they would always go outside. I'm not sure if she smoked whilst pregnant, but I would have thought so, because the advice to quit may not have been common? My sister reckons she didn't though - so I don't know. Regardless, dad would have been smoking, but even when smoking outside, it's well known that 2nd and 3rd hand smoke can affect kids.

So I already suspected the smoking link (the nicotine to dopamine connection), but I didn't realise my left-handedness, spacial reasoning and aphantasia would all be implicated.

neRok commented on Progressive JSON   overreacted.io/progressiv... · Posted by u/kacesensitive
Velorivox · 3 months ago
99.9999%* of apps don't need anything nearly as 'fancy' as this, if resolving breadth-first is critical they can just make multiple calls (which can have very little overhead depending on how you do it).

* I made it up - and by extension, the status quo is 'correct'.

neRok · 3 months ago
Multiple calls?! That sounds like n*n+1. Gross :P

I think the issue with the example json is that it's sent in OOP+ORM style (ie nested objects), whereas you could just send it as rows of objects, something like this;

  {
    header: "Welcome to my blog",
    post_content: "This is my article",
    post_comments: [21,29,88], # the numbers are the comment ID's
    footer: "Hope you like it",
    comments: {21: "first", 29: "second", 88: "third" }
  }
But then you may as well just go with protobufs or something, so your endpoints and stuff are all typed and defined, something like this;

  syntax = "proto3";
  service DirectiveAffectsService {
    rpc Get(GetPageWithPostParams) returns (PageWithPost);
  }
  message GetPageWithPostParams {
    string post_id = 1;
  }
  message PageWithPost {
    string page_header = 1;
    string page_footer = 2;
    string post_content = 3;
    repeated string post_comments = 4;
    repeated CommentInPost comments_for_post = 5;
  }
  message CommentInPost {
    string comment_id = 1;
    string comment_text = 2;
  }
And with this style, you don't necessarily need to embed the comments in 1 call like this, and you could cleanly do it in 2 like parent-comment suggests (1 to get page+post, second to get comments), which might be aided with `int32 post_comment_count = 4;` instead (so you can pre-render n blocks).

neRok commented on Types and other techniques as an accessibility tool for the ADHD brain [video]   youtube.com/watch?v=DG5gL... · Posted by u/todsacerdoti
neRok · 3 months ago
Thanks for sharing. I've been questioning the validity of my own ADHD "diagnosis", but I had only been considering things with regards to dopamine and the "reward-system", and not the executive-function and mental "optimisations" side of things like he explained. This finally gives reason to all my traits/quirks/problems!

I called it my "diagnosis", because even the psychiatrist that prescribed me didn't seem convinced, but he's also a bit old and thus maybe out of date (ie, only considering the traditional "ADD" style symptoms). So I've been on the drugs for a year now, and up to a BIG dose, but besides some very minor concentration and motivation improvements, the only worthwhile improvement was not being tired in the afternoons (I regularly used to nap on the train on the way home from work, which was at only 4pm! Sometimes from 3->4pm I would even struggle to keep my eyes open whilst at my desk!). So when the presenter said he had tiredness problems too, that was further confirmation for me (of a problem being fixed). Because I had been wondering if "the opposite" was happening, in that my improvement was simply the "stimulants" keeping me awake (ie, just being a "tweaker"), which would imply that the tiredness was normal (and to further confuse things - I have reviewed the traits reported by ancestrys dna test, and one of them says that I am very likely to take naps!).

Unfortunately I doubt this revelation will change anything for me, and that's because I've got decades of "optimisations" baked-in. For example, socialising is a big problem. Thinking back, and by 10 years old I was known to be "shy" - but recently I have come to consider this as "learned" behaviour (based upon a few memories). This new explanation about executive-function and "optimisations" is an even better explanation. Long story short - socialising is hard, and failures are bad, so I've optimised away the failures by not talking much! It's exactly like the example the presenter gave of Test Driven Development @ 23:00;

  > ...suddenly there'll be 500 broken tests and you're like where did that
  > come from what's going on and it turns out there's actually nothing wrong with what you've done to the code but you
  > have just broken all of the mock setup of all of the tests and this is something which
  > I find unbearable almost literally unbearable because I'm end
  > up I end up in this situation where I'm put in a position where either I go and
  > fix all of those tests which in my mind are obviously pointless and which is mind-numbingly boring or I have to have
  > the discussion in the pr review of why the code coverage has gone down on the CI
  > server and it drives me nuts and yes I will stop ranting now on that.

u/neRok

KarmaCake day131July 26, 2017View Original