No.64650
>>60611Little update on my situation.
Nothing has change and I'm still in the same place. I'll try to comeback with something next week.
No.64651
used chatgpt for some video editing today. what i wanted was for a list of fiels and videos to be overlaid such that 1.png goes onto 1.mkv, and so on, with adjustable transparency and duration for the overlaid image. it took maybe 5 minutes to get what i wanted which is very cool. im not a fan of windows batch script syntax so this is nice
>I have a list of video files, named 1.mkv, 2.mkv, etc.
>I also have a list of images, named 1.png, 2.png, etc.
>All the files are located in the same folder.
>I need a FFmpeg command that will overlay the image files onto the video files, with transparency.
>1.png will be overlaid onto 1.mkv, 2.png will be overlaid onto 2.mkv, and so on.
>I am using Windows 10 and the command and syntax should work for Windows 10.
>for %%a in (*.mkv) do ffmpeg -i "%%a" -i "%%~na.png" -filter_complex "overlay" -codec:a copy "output/%%a"
this works but the image just completely replaces the video. i ask for a duration for the overlay, as well as a transparency amount for the overlaid image
>for %%a in (*.mkv) do ffmpeg -i "%%a" -i "%%~na.png" -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.5[trans];[0][trans]overlay=duration=5" -codec:a copy "output/%%a"
this seems like it should work but it seems windows doesn't have this duration option so i ask it for something else
>for %%a in (*.mkv) do ffmpeg -i "%%a" -i "%%~na.png" -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.5[trans];[0][trans]overlay=enable='between(t,0,5)'[out]" -map "[out]" -codec:a copy "output/%%a"
this works, each video begins with the respective overlaid image, and the transparency/duration is adjustable. however the audio was discarded
>for %%a in (*.mkv) do ffmpeg -i "%%a" -i "%%~na.png" -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.5[trans];[0][trans]overlay=enable='between(t,0,5)'[out]" -map "[out]" -map 0:a -codec:a copy "output/%%a"
this works perfectly
No.64781
>>64650I tried to follow some books which show step by step how to make a web app. The problem is that most of them don't explain anything or the code is not working. Now I just follow the documentation and hopefully I'll be able to do something on my own.
No.64785
>>64781Lately I've approached programming like this. Instead of expecting a book to give me the knowledge, I just read some simple code, try it out, read the docs for the language, and so on.
Programming books should be banned.
No.65031
>>57811It's a geeniebopper (genius brained nigger). Should have gotten an ice pick lodged inside their skull already, but the USA government is against Equalization and Heritability Reduction of Intelligence. Lenin's Lobotomy Procedure makes babies scream at the top of their lungs and cry for nigger mommybrains.
No.65046
>>57814>vlc>set looping a-b points>crop it to the exact area im interested in>repeat to fill the rest of the space on my screenthis + "view minimal interface" once each video is set up to hide the ui
i cant believe other people do this lmao
No.65051
>>65023A Thinkpad X1 Carbon Gen 6 can be grabbed refurbished for around that
No.65061
>>65051That seems like a steal, but I'm hesitant to buy a refurbished laptop in my third-world shithole due to the prevalence of scammers. My cousin stole my Parker pen, which was a gift from my late grandmother, during her funeral. Although this incident is unrelated, I'm concerned that I may be scammed if I try to purchase a refurbished laptop.
No.65062
>>65061Reasonable, I've been scammed on laptops recently. If it's local scams you fear you could probably get something off eBay from a less tolerant country, if you can afford the import fees.
No.65113
Mental gymnastics : today i wrote sql, wrapped in java, wrapped in SQL as XML (liquibase)
No.65129
First time into programming, i'm learning Python.
I wonder if you can do cool stuff with it, (like web dev) or should I just drop it for another language.
Anyway, since i'm a novice, i think it's better if I stick to one course until the end.
No.65130
>>65129It's not bad for beginners, very easy to set up and get running. You can basically do anything with it, but since it's an interpreted language, it has some performance limitations. I wouldn't worry about that at this point since once you learn how to program, you'll learn different languages and tools and use the best one for the job.
No.65136
>>65130>has some performance limitationsthe AI/ML/academic faggots don't seem to care about that at all. python is basically the language of research papers. i wonder why. ease of use + libraries… maybe this is all tht really matters for people
No.65138
>>65136the actual performance critical stuff is usually written in c/c++ and then python just calls functions from the DLL.
No.65231
i have the idea to feed a story into stablediffusion one word at a time, and use 50 of the previous output as img2img input so that it blends between the two images. and then time it all together with a tts recording of the story
for example
image 1: once upon a time there lived
image 2: upon a time there lived a
image 3: a time there lived a wizard
image 4: time there lived a wizard who
etc to the end of the story
i have not used stablediffuion by command line yet, always a gui. every time i tried to install commandline stable diffusion i miss some requirement and it doesnt install and it's a pain in ther ass. i am wondering if i can just hack something togther using the stablediffusion installed by these gui versions. basically using the gui to install and get sd working, and then bypassing the gui and calling their install directly with prompts
i would love to do the tts via suno-ai/bark but i cant get cuda/pytorch working so it uses cpu which takes forever, also there is no continuity between voice styles when i last tried it. but if those were fixed it would be great
No.65244
haskell has the problem that basically half of default things are literally broken. String is broken, List is fucking inefficient and so on. And to get haskell to be performant in a wide range of cases is actually far more challenging than one would think
No.65486
>>65485Try a VPN when you are finished
No.65488
>>65486Honestly my goal is to stop using the internet altogether. I still want to delete all my online traces, presence.
thats why Im lurking all my (I fucking hate them) HS classmate´s fb accounts and trying to take down all the photos where I appear.
I use the FB report function of "I apepar in this photo and I dont like it".
And so on, I try to delete all my cyber-traces and footprints…
No.65490
>>65488>highschool classmatesjesus christ i dont know how long it has been since i've thought of that. probably never. you have an unhealthy fixation on this shit
No.65491
>>65485>>Are there any portable devices that provide internet, or any way at all to go online without dependning on a provider or company?This question is… absurd. Achieving privacy online is incredibly difficult and requires understanding of what the internet is. I suggest you start with the basics and engage in some sort of a long-term educational process, since you seem to be very far from where you want to be and have no foundation
No.65492
>>65491why would you bother to give this poster a serious answer
No.65536
https://termbin.com/t8k2Wrote a little wrapper for grep to make searching for multiple strings per line quicker and easier. It only works for two strings right now though.
No.65538
>>65536i would have just used regex for that, you can have as many capture groups (matched strings) as you want
No.65564
i have a cymk jpeg. in image viewers such as nomacs and even firefox, it is very saturated and this saturated color image seems to be the 'correct' version, but i hate it. in windows 10 file explorer (thumbnails), and old image editors without color management features (paint.net), it appears with 'dull' colors which i find infinitely more appealing
i have tried stripping all the metadata, converting to srgb, removing icc profiles, but i can't obtain the 'dull' version that windows shows me, at least not via command line… i can simply open it with paint.net or clipstudio paint, and simply resave it as jpg and it will appear 'dull' everywhere, which is what i want, but i want to be able to do this in bulk and i have no idea how to do this. what kind of conversion is paint.net and clip studio paint performing to obtain the dull image? every fucking online service and commandline tool and shit makes it become saturated. fucking color bullshit
none of these convert it into the dull image correctly
exiftool -r -icc_profile= test.jpg
exiv2 rm test.jpg
magick test.jpg -colorspace sRGB -intent perceptual test2.jpg
magick test.jpg -strip test2.jpg
from PIL import Image
image = Image.open('test.jpg')
image = image.convert('RGB')
image.save('test2.jpg')
i'd post the image but it's porn so oh well
No.65569
>>65565that's not what i mean, it's just… there's a way windows and older image editors are converting from cmyk to rgb, and it results in a dull image, which is what i want. but i cannot for the life of me replicate this conversion, they all end up 'correctly' saturated. i thought there was an embedded icc color profile but i've stripped everything from this god damn image, it's purely a result of the format being cmyk and nothing else
i will probably just desaturate it until it matches or something, i don't know what else to do. it seems like such a hack but i can't figure out how to produce the dull variant via commandline, because all the other editors and stuff produce the exact same dull image, which means they aren't just arbitrarily desaturating, they are using some method. i thought it was just a result of ignoring the color profile but imagemagick doesn't seem capable of converting to the dull variant. i've tried all 5 profile intents as well
No.65596
>>65574
i figured out the image is utilizing adobe prophoto rgb colorspace, but windows explorer is not color managed and interprets this as plain rgb or something and it is desturated. while incorrect, i strongly prefer the desaturated version that windows and other programs show, instead of the overly vibrant and saturated correct version that color managed photo viewing apps show me
still haven't been able to figure out how to convert from this color space, but i did figure out i can desaturate, lower blue channel, raise red channel, and then lower contrast to achieve something similar
if i change my gpu or display, it will affect everything, but only these images are bad. id rather just find a way to fix them before changing how everything displays
No.65601
>>65596can’t you just tag the images as SRGB so that color managed renderers will emulate the "wrong" behaviour?
No.65606
>>65601i have tried all sorts of things, but no i can't figure out how to simply render it as rgb or use the wrong colorspace, which i imagine non color managed stuff like windows is doing. at this point im considering finding very very old versions of image libraries or something with commandline to see if it can produce the effect
i want this incorrectly desaturated version because it paradoxically shows more detail, at least for my monitor. the saturated one has horrible color levels and looks like a mess
No.65609
>>65596can you link a sample image?
No.66253
Wizfrens, what's the best text editor for Windows?
No.66260
>>66253Notepad++ (or VSCode if you don't mind telemetry/analytics and Electron).
No.66261
>>66253VSCode is pretty nice out of the box and looks/works the same on all platforms. Loads of extension and themes you can install to fit your needs.
No.66263
>>65244I gave up on functional programming and moved to C. I keep digging downward through the abstraction layers, learning about baremetal C and assembly (kernels, microcontroller firmware) straight down to analog electronics. My knowledge still feels surface-level.
No.66266
ima give Go a chance, see how it feels.
No.66283
>>66266I lied I don't have much to do with computers at all but I got nice digits.
No.66338
ffmpeg.exe -i video.mkv -ss 110 -crf 30 -preset veryfast -vf subtitles=video.mkv:si=0 video.mp4
i had to hard encode subs to make anime playable on my old phone, this is what i used
ss 110 skips the first 110 seconds, skipping the intros
crf 30 is really low quality but significantly reduces filesize
preset veryfast just speeds up encoding
-vf subtitles=video.mkv:si=0 is a filter to hard encode the subtitles from video.mkv, using the 1st(0) subtitle index (english) - you look at streams by via ffprobe
the problem i had was trying to map select the video, audio, subtitle streams while also hard encoding them with a filter, in one pass. i still dont know how to do this, but this seems to select the right audio and video streams without specifying it, leaving only the subtitle stream necessary to specfy, which lets you filter it since no mapping is done. it is simple but i spent an hour figuring it out. i really wish someone posted this to the stack overflow thing regarding converting mkv to mp4 and retaining subs
No.67399
what am i even supposed to do with programming
i learned a language (atleast, the fundamentals of how it works) and thought it was gonna be a great hobby for an autist like me and i could put all of my time into it, but i half assed what i finally wanted to do with it in the first place and now i cant even get the motivation to even do any more of it. 90% of the time youre just staring at documentation and googling stuff and i cant be bothered when i dont even know what i wanna do with it anymore.
No.67402
>>67399you write programs
>what programs do i write?you use your computer and when you notice a problem/inconvenience that you're having, you write a program to address it
No.67638
>>57285what if you make 2 node types, one for hosted instance and one for central authority?
No.67663
>>67399learn to draw pixels in a window and play with graphics algorithms anon, graphics can be amazing
No.67921
>>67399learn 2 inject code so you can fix all of your favorite games
No.68377
I've never coded before and I am attempting to learn Lua. It probably won't go well but I haven't given up yet.
No.68400
the problem isnt learning to code, since i know how to read and write code to an extent now,the problem is,how do i inspire myself to actually create something and how do i create something that would be worth creating?
No.68403
>>68400That's part of the problem I face
The uh standard answers is you
-solve simple everyday problems that arise in your computer use
-solve standard challenges like idk advent of code, that kind of shit
-do something for your own amusement, like a game or shaders
-learn a lot about languages and never actually write programs just argue over their design over the internet
No.68405
>>68400I have been stuck at that point for years, mostly because the things i really wish i could make are only suitable for highly skilled developers. I feel like there is a gulf between what i can make and what i could be passionate about making. I think it is the same for artists that struggle to enjoy making art while their skills are still developing. Perhaps the only solution is to push through it and make things for the sake of learning until inspiration strikes and you think of something you can do and want to do
[View All]