Posts
1861
Following
92
Followers
172
Riding horses, hacking computers, phones and smartwatch.
@dos Do you have some ideas how to do viewfinder easily?
1
0
0
@datenwolf Thanks a lot. I took a look and got it to build but not run so far. I got distracted by.. other camera code and real life. https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads (We had blackout today).
1
0
0
@dos I don't believe gstreamer can handle complex cameras. But yes, eventually this code should disappear into libraries somewhere.
0
0
0
Mam tu lahvicku s napisem "sampon", dvema jednorozci a dvema srdicky. A otazka je -- je ten sampon pro me nebo pro zlutaka? 🙂.
0
0
0
@mkyral @programydovoleb "Chce-li nekdo zastrelit Bobosikovou, dobre. Neni to nase kamaradka." Jak to zni? Ta pani neni nase kamaradka, nechme karmu at ji to spocita, a prosim jdete k volbam a nevolte komunisty.
1
0
0
@programydovoleb "Chce-li nekdo zastrelit Bobosikovou, dobre. Neni to nase kamaradka." Jak to zni? Ta pani neni nase kamaradka, nechme karmu at ji to spocita, a prosim jdete k volbam a nevolte komunisty.
0
0
0
Ty kupy mrtvych civlistu v Gaze zacinaji byt tak velke, ze "smrt IDF" se pomalu presouva z kategorie "hnusny extremismus" smerem ke kategorii "vlastne docela rozumny pozadavek na zastaveni genocidy" :-(.

Billy Bragg (snip)
Anyone unable to understand why thousands of people joined Bob Vylan in chanting ‘Death, Death to the IDF’ at Glastonbury should read the article below. (snip)

theguardian.com
Israeli military used 500lb bomb in strike on Gaza cafe, fragments reveal
0
0
1
@dos Okay, I pushed code to https://gitlab.com/tui/tui/-/tree/master/icam?ref_type=heads . Debugging this may be a bit "fun".

Do I guess correctly that shaders can do arbitrary resolutions, such as 800x600?

I like the v4l+shaders integration. I'm not sure if I like the v4l+shaders+gstreamer integration.
1
0
0
@dos Yeah, I played a bit. Nice. But segfaults, occasionaly, and may segfault more when I switch to matroskamux. So I guess crash may be gstreamer-related? :-). There's also some kind of noise in bottom right corner, maybe that's related, too.
1
0
0
@dos Thanks, I got it to work. I'm putting it into tui repository... and will probably need to reindent it.

For me, there's about 50% CPU usage, so there's still some room.

Yes, YUY2 will be faster; it will also have lower color resolution.

And agreed, there's nothing magic about fences. There's nothing magic about riding horse w/o reins and nothing magic about flying 737, either :-).
0
0
0
@dos Yes, there's more work to be done in the kernel; sometimes camera does not work after reboot, bayer-10 modes are not supported, ... :-(. And yes, it will take more power, but with phase-detection AF, it should be significantly better camera.
1
0
0
@dos :-) Hopefully. I'll believe things when I see them running locally.

BTW there's one more important thing this can probably do: take full-resolution photos while recording video.
1
0
0
@dos Thank you! I'll take closer look tomorrow or over the weekend. In the meantime, would you have Makefile or build command that goes with it?
1
0
0
@dos Exactly. That's a bit of big deal. That's why I'm trying to make sure this code does not go away. I had phase-detection auto-focus working at one point, but decided it is unusable as I did not see a way to scale down images quickly enough.

Plus it also adds possibility of zooming.
1
0
0
@dos Fences; that must be some kind of dark magic.

This code seems too good to be true. So, just to be sure, and in case you disappear tomorrow, can I add /* Copyright 2025 Sebastian Krzyszkowiak, GPLv2 */ and act according to that?
1
0
0
@fell @zaunz @postmarketOS The "pretty zoomed in" may be hardware limitation. The "90% range" is likely normal, too -- that's just how focus works. (Diopters, 1/m). But I like this. this is a real progress compared to my information from yesterday.
0
0
0
@fell @zaunz @postmarketOS And can it focus on infinity? Yesterday people were telling me camera can't physically focus far.

If it can focus on distant object, someone really needs to create patch for Megapixels.
1
0
0
@dos If you want to make sure, just point camera at the clock :-). gstreamer should get timing information at the input, so I'd expect dropped frames (not wrong speed) if things go wrong.
0
0
0
@dos I am not brave enough to debug gstreamer + openGL problems in the same process. You are either lucky or WIZARD :-).
0
0
0
@dos Camera is 23.5 FPS, IIRC. Do you have it under version control somewhere? This is a bit of achievement :-).
1
0
0
Show older