/t/ - Technology

Discussion of Technology

Index Catalog Archive Bottom Refresh
+
-
Options
Subject
Message

Max message length: 0/12000

files

Max file size: 32.00 MB

Total max file size: 50.00 MB

Max files: 5

Supported file types: GIF, JPG, PNG, WebM, OGG, and more

CAPTCHA
E-mail
Password

(used to delete files and posts)

Misc

Remember to follow the Rules

The backup domains are located at 8chan.se and 8chan.cc. TOR access can be found here, or you can access the TOR portal from the clearnet at Redchannit 3.0.



8chan.moe is a hobby project with no affiliation whatsoever to the administration of any other "8chan" site, past or present.

You may also be interested in: AI

>>17937 (OP) nice to see this here
>>17968 wasn't sure where would be good place for us
>>17937 (OP) should i get into this? i just use yt-dlp in cmd using commands from a text document if i want a youtube vid
>>18005 it's as simple as mpv <link>
bro, i'll probably figure it out on my own, but i only just noticed that yt-dlp has been giving me low-res videos, for who knows how long now, because of a change requiring a "PO" token: https://github.com/yt-dlp/yt-dlp/issues/12563 the issue was made march 8th, so it's over a month old. searching "dlp token" on the 4chan /g/ archives, i see a single thread about it from march 11th: https://desuarchive.org/g/thread/104679251/ but it is clearly a happening thread. i'd really hate to have to read this shit. i just wish i could be spoonfed how to set one up. i wish yt-dlp streamlined the process somehow in an update by telling me what to do. i am really bad with tech and this shit gives me grey hairs. again, i'll probably figure it out on my own, though. but sucks so bad
>>18294 have you tried the workaround that changes the extractor(s) used without involving tokens?
>>18300 no. pls gib (i stopped trying to figure it out since i was lazy, sorry)
>>18301 it's the second suggestion from the first reply in the issue you linked!
>>18324 thank you, anon!!! thank you. i am so sorry for being so incompetent. sorry. i read that reply, but i didn't understand that all i had to do was add that to the command. thank you!!! it does return a warning: WARNING: [youtube] dQw4w9WgXcQ: web_safari client https formats require a GVS PO Token which was not provided. They will be skipped as they may yield HTTP Error 403. You can manually pass a GVS PO Token for this client with --extractor-args "youtube:po_token=web_safari.gvs+XXX". For more information, refer to https://github.com/yt-dlp/yt-dlp/wiki/PO-Token-Guide . To enable these broken formats anyway, pass --extractor-args "youtube:formats=missing_pot" but it turned a 6mb low-res video into a 246mb high-res one, so i assume it just werks. thank you again.
Can someone give me a good mpv config? I'm far too lazy to look into all the options
>>18394 profile=high-quality
I haven't updated my install of ffmpeg in around a year. Were there any major updates I absolutely need as a casual user in that time period?
>>18499 new encoders filters av1 improvements and bug fixes
>>18505 Can I encode AV1 without a dedicated server cpu now? >>18505
>>18005 >>18294 ikatube doesn't have this problem
hi gurus
>>18531 we're schizos, not gurus
(28.44 MB 1280x720 LAB=01.webm)

https://files.catbox.moe/w5j285.mp4 ffmpeg -y -i "LAB=01.mp4" -c:v libvpx-vp9 -b:v 1400k -pass 1 -speed 4 -tile-columns 4 -row-mt 1 -threads 8 -g 240 -keyint_min 240 -vf "libplacebo=w=-1:h=720:upscaler=catmull_rom" -an -f webm /dev/null ffmpeg -y -i "LAB=01.mp4" -c:v libvpx-vp9 -b:v 1400k -pass 2 -speed 1 -tile-columns 4 -row-mt 1 -threads 8 -g 240 -keyint_min 240 -vf "libplacebo=w=-1:h=720:upscaler=catmull_rom" -c:a libopus -b:a 128k LAB=01.webm
>>18519 Why the fuck is he releasing an alternative ui project without the source. What is the point of switching, if not breaking off from the shackles of closed source software. Either keep using the official web ui or use an actually mature open source project like yt-dlp
>>18671 >keep using the official web ui use youtube-local/yt-local
>>18671 because it has a mpv plugin and can display cute mascots nothing else can do these
0.40.0 shinchiro build when
>>18603 Very nice. Do you know of any scripts that can encode videos to a specific size? I've tried a few over the years but they all sucked.
(2.61 MB 1920x1080 new OSC.png)

Whoever made this new UI deserves props. (this and the right click menus on all UI buttons) Usability is much better now. I even ditched the unupdated thumbnail script for this as its worth it.
>>18846 That's default mpv?
>>18879 Yes its new from mpv 0.40 stable. You open that menu by clicking the bottom left hamburger button, ctrl+p or the menu button that never gets used near the right ctrl. (I had to google what the menu button is). There is also a "seek to subtitle line" option there that lists all subtitle lines of the video.
>>18805 Thanks so much anon!
>>18846 >>18879 How does it compare to uosc?
>>18888 That's the thing, they're slowly updating OSC as a UOSC clone.
>>18889 heh, cool. I don't really care. I've been using uosc for years. It's so much nicer.
(59.47 KB 972x210 deleted.png)

surely it would be faster, easier, and more performant to implement the UI with a real toolkit like Qt
>>18893 what's this?
just got a login to confirm you're not a bot error with ytdlp it's truly over
drm when
>>18519 Which UI/theme is that?
I use youtube
I use pipepipe
>>17937 (OP) yt-dlp -f best --external-downloader aria2c --external-downloader-args "-x 16" <url> The faster the better
Where is the ffmpeg windows gui updates guy...
>>20776 if he listened to the suggestion of hosting it on radicle.xyz, then someone could have pinged him about this place.
>>20782 There's a fucking Discord?
>>20785 i wouldn't know anything about that since i'm not into spyware. sorry. >>20825 who would win in an ika vs. cord spyware game? one could argue cord's "yes i'm spying on you. and you will accept that it's a (((feature))) and continue to use me like a bitch" is almost more BASED than ika's "every discovered spying attempt was merely an innocent accident".
>>18603 typo upscaler for downscaler
>>20825 already debunked >>20844 >every discovered spying attempt there is none
>>19037 what irony also it has nothing to do with mpv ffmpeg yt-dlp
(70.78 KB 300x300 ikazuchi.gif)

kutabare
I am using af=loudnorm=I=-10:LRA=7:TP=-2 in my profile and it kinda works but sometimes there are noticable jumps in loudness Help me out, schizo gurus
/t/almudbros, the trannime shaders aren't working in the latest update for V3
>>21078 be more specific. what shaders? how are they not working?
>>20923 change loudnorm
>>21124 they won't load up, SSim, adaptive-sharpen and KrigBilateral
>>21202 >they won't load up still not helpful. load where? post logs at least. link to the exact shaders used too. and explain what latest update for V3 is referring to.
>>20825 There is no evidence of ikacord.
(162.61 KB 586x619 test.webm)

>>21391 silence is violence
>>21460 not ika and not cord
>>21624 no proof
>>21626 still no proof that they have anything to do with ikadev
is it necessary to explain i think i am replying to ikadev not interested in negativity or pseudodramatic discussion i will simply let you know that i love you
I doubt someone like ikadev would ever use discord of all things
>>21629 it feels more like obsession than love
>>21653 love is subjective and has multiple meanings obsession my memory plays role here i keep distance but your posts are distinct
>>21646 Cord posts are shitposts lmao
Is baking subs into a webm on ffmpeg in windows from a file's internal subs still cancer? Last time I learned how to do it I had to add more shit to the environment variables and then had to retype the timestamps in milliseconds and respecify the file to point to the subs with nested //// for each / on the file path. It was absolute cancer. Is it better now?
>>21824 Less cancerous still requires slashes.
>>21844 How much less cancer? Do I not need a ffmpeg font folder added to the environment variables or a second timestamp for the subs in milliseconds seperate from the timestamps I'm already using for the video and audio?
>>21824 maybe try ffmpeg in wsl as a possible workaround. or even better, abandon wintardism altogether.
>>21853 See for yourself and report back.
thoughts on kdenlive?
>>22003 bloat
>>22015 agreed. i get by using ffmpeg cli only. i never used it, but if i needed a ui to preview things, i would try paul's lavfi-preview: https://github.com/richardpl/lavfi-preview
sox can do fm synthesis so no
>>22138 <being retardedly broken internally for using integral samples is okay. fm synthesis is much more relevant. lol
someone asked in 4jeet if it's possible to un-pause with fade-in. here is a solution: function pause_toggle() local paused = mp.get_property_native("pause") if not paused then mp.set_property_native("pause", true) else -- un-spause with fade-in effect -- fade in steps, going from step initial value to 0 local step = 25 -- pre-fade-in volume gain local gain = mp.get_property_native("volume-gain") -- timer updating every 0.1 seconds timer = mp.add_periodic_timer(0.1, function() -- set fade-in gain. in the last callback, step will be 0, restoring gain to its original value. mp.set_property_native("volume-gain", gain - step * 0.5) if paused then -- un-pause AFTER setting first fade-in gain mp.set_property_native("pause", false) paused = false end -- done if step is 0 if step == 0 then timer:kill() end step = step - 1 end) end end mp.add_forced_key_binding("SPACE", "key_space", pause_toggle)
>>22268 What should I do with this?
>>22319 i didn't realize you never used lua scripts before. you add it to a lua script file (a new one in this case). script files go under a scripts directory under your configuration directory. you also need local mp = require("mp") above that code. so, if your configuration file path is ~/.mpv/mpv.conf, then you can add a script file ~/.mpv/scripts/rc.lua with the content: local mp = require("mp") function pause_toggle() local paused = mp.get_property_native("pause") if not paused then mp.set_property_native("pause", true) else -- un-spause with fade-in effect -- fade in steps, going from step initial value to 0 local step = 25 -- pre-fade-in volume gain local gain = mp.get_property_native("volume-gain") -- timer updating every 0.1 seconds timer = mp.add_periodic_timer(0.1, function() -- set fade-in gain. in the last callback, step will be 0, restoring gain to its original value. mp.set_property_native("volume-gain", gain - step * 0.5) if paused then -- un-pause AFTER setting first fade-in gain mp.set_property_native("pause", false) paused = false end -- done if step is 0 if step == 0 then timer:kill() end step = step - 1 end) end end mp.add_forced_key_binding("SPACE", "key_space", pause_toggle)
>>22320 I did this yesterday and still the same, also, I use lua scripts since 2021
>>22326 well, describe the problem you're having. does the volume not fade in when you press SPACE to un-pause? how does it not work? try adding this (middle) line for debugging: -- set fade-in gain. in the last callback, step will be 0, restoring gain to its original value. mp.commandv("print-text", "setting volume gain to ".. gain - step * 0.5) mp.set_property_native("volume-gain", gain - step * 0.5) you should see messages printed to the terminal about setting volume gain for 2.5 seconds after un-pausing.
>>22333 In the first place, I use windows10 and when after I made the script all my videos just ear rape me after some seconds, and the "fade" effect doesn't work at all...
>>22372 >I made the script all my videos just ear rape me so, assuming the script is actually running, but not having the desirable effect, what debug messages do you see? you can see them with the console (pressing `) if you don't have a terminal open. --- i can adjust the script to use "volume" instead of "volume-gain". but i'm interested why it doesn't work as expected first.
>>22003 use aviutl
>>22372 maybe you're long gone anon. but i ran into the behavior you described. it was caused by pausing/un-pausing while a previous fade-in was still in progress. fixed version: function pause_toggle() local paused = mp.get_property_native("pause") if not paused then mp.set_property_native("pause", true) else if timer then mp.commandv("print-text", "fade-in in progress") mp.set_property_native("pause", false) else -- un-pause with fade-in effect -- fade in steps, going from step initial value to 0 local step = 25 local timeout = 0.1 local total_period = step * timeout -- pre-fade-in volume gain local gain = mp.get_property_native("volume-gain") -- timer updating every 0.1 seconds timer = mp.add_periodic_timer(timeout, function() -- make sure we don't get stuck looping if other pauses take place while fading in. -- set fade-in gain. in the last callback, step will be 0, restoring gain to its original value. mp.set_property_native("volume-gain", gain - step * 0.5) if paused then -- un-pause AFTER setting first fade-in gain mp.set_property_native("pause", false) paused = false end if step <= 0 then timer:kill() return end step = step - 1 end) mp.add_timeout(total_period + 2 * timeout, function() timer = nil end) end end end mp.add_forced_key_binding("SPACE", "key_space", pause_toggle)
>>22660 and obviously, you can change `step = 25` to `step = 10` and `gain - step * 0.5` to `gain - step * 1.0` for a faster fade-in effect, or adjust the parameters however you like.
>>22660 >Lua error: D:/Programs/mpv/scripts/fade.lua:28: attempt to index global 'timer' (a nil value) It's impossible, I give up...
>>22705 OK, now the fade in unpause is working, now how can I add a "fade away" effect?
>>22709 delayed pausing feels like a weird thing to want. but here you go: function pause_toggle() original_volume_gain = original_volume_gain or mp.get_property_native("volume-gain") local paused = mp.get_property_native("pause") if timer then mp.commandv("print-text", "kill fade-in or fade-out is in progress") niler:kill() if timer then -- in case it was just nil-ed timer:kill() timer = nil end niler = nil end local step = 10 local timeout = 0.05 local total_period = step * timeout local multiplier = 2.0 -- value between 0.25 and 2.0 local gain = original_volume_gain if not paused then local to_step = 1 timer = mp.add_periodic_timer(timeout, function() mp.set_property_native("volume-gain", gain - to_step * multiplier) if to_step == step then mp.set_property_native("pause", true) -- restore original gain while paused mp.set_property_native("volume-gain", gain) paused = true timer:kill() return end to_step = to_step + 1 end) else timer = mp.add_periodic_timer(timeout, function() mp.set_property_native("volume-gain", gain - step * multiplier) if paused then mp.set_property_native("pause", false) paused = false end if step <= 0 then timer:kill() return end
[Expand Post] step = step - 1 end) end niler = mp.add_timeout(total_period + 2 * timeout, function() timer = nil original_volume_gain = nil end) end mp.add_forced_key_binding("SPACE", "key_space", pause_toggle)
>>22717 meh, that ''details' is a parsing bug. raw code: https://paste.rs/QP9AL'
>>22717 meh, that ''details' is a parsing bug. raw code: https://paste.rs/QP9AL
(236.63 KB 1100x1700 1735972305555569.jpg)

>>22717 Thank you very much, that's exactly what I wanted. It sounds like the Musicbee fade out/fade in effects. >>22717
>>22729 you're welcome.
Is there a way to make disable a script, other than removing it from the scripts folder?
>>22917 you can rename the script file by appending a ".disable" extension to it. you can alternatively hide the file by renaming it to ".script_name.lua". the script list code explicitly checks against the dot in the start of the file name, irrespective of platform, which is a great hidden 😏 non-windows(ism). but a developer might get butt-hurt and fix that. so don't rely on that continuing to work forever. i would do neither, and just a create a "scripts.disable" folder and move script files from/to it.
nigger


Forms
Delete
Report
Quick Reply
Drag files here to upload or
click here to select them
No Cookies?
0