Thread 106133998 - /g/ [Archived: 169 hours ago]

termux-termite !!1GSw688pHqQ
8/4/2025, 6:34:46 AM No.106133998
termux-vid-guide_thumb.jpg
termux-vid-guide_thumb.jpg
md5: c37e8ee32f05ce74c8904a04b704e0a5🔍
3-1 video guide for phoneposters

Termux + yt-dlp + AV1 video encoding.

So I noticed most anons here don't have computers at all. However you don't have to subsist on twitter screenshots and GIFs if you don't want to.

Android by default doesn't let you do much tech-wise but through terminally ill emulators like Termux it's now possible to access some useful computer software that has been ported to run on phone CPUs.

By making this guide I hope I can elevate the quality of /g/ and possibly get some of you interested in scripting or video compression. If not at least you'll know how to download videos and convert them with the latest and greatest AV1 video codec, on your FFFUCKING TELEPHONE.

https://files.catbox.moe/wftqu4.webm
Replies: >>106134024 >>106134180 >>106134214 >>106134313 >>106134369 >>106134581 >>106134757 >>106135380 >>106135900 >>106135916 >>106135924 >>106136047
Anonymous
8/4/2025, 6:39:52 AM No.106134024
>>106133998 (OP)
thanks anon
termux-termite !!1GSw688pHqQ
8/4/2025, 7:07:07 AM No.106134152
1851c80rhwd31
1851c80rhwd31
md5: e35d84e7e5314569fb6e5e4f517fcdce🔍
A little bit more regarding the AV1 video encoding part which I personally find fascinating. Basically AFAIK until recently there's been a horrible trade off with video codecs, you would either have to:

A) Prioritize encoding speed and use x264, which offers horrendous compression efficiency.

B) Prioritize quality and use x265 or worse, libvpx. Both of which are exponentially slower than x264 (especially libvpx).

AV1 does both. I was able to achieve 60 FPS encode speed on preset 5 for 360p video on a Galaxy S8 with it and ultimate it helped me achieve 40% lower file size compared to the H264 original copy with very little quality loss. Which considering that this phone is like a decade old is kinda mind boggling that's now possible to save space on your phone without even turning on your computer.
Anonymous
8/4/2025, 7:11:58 AM No.106134180
cosplayisconsent_thumb.jpg
cosplayisconsent_thumb.jpg
md5: bfc9a41bdc9435d250ed5abc6e7c5d32🔍
>>106133998 (OP)
cool thread OP
made this with termux and ffmpeg a while back on my phone
Replies: >>106134286
Anonymous
8/4/2025, 7:19:31 AM No.106134214
seal
seal
md5: 273c39e7a1f848fb6692626ee18cf455🔍
>>106133998 (OP)
you do know that seal exists right?
https://f-droid.org/packages/com.junkfood.seal/
Replies: >>106134286 >>106134399 >>106135380
termux-termite !!1GSw688pHqQ
8/4/2025, 7:36:25 AM No.106134286
>>106134180
Sucks that encodes take so long though. AFAIK alternate reference frames (aka b-frames) don't work with single pass encodes which makes x265 look fast, which of course it isn't. 4chan taking it's sweet time in adopting modern things gets really irritating sometimes. I get that this place is meant to mirror a japanese imageboard but does it really have to mirror it's fax machine mentally as well?

>>106134214
That might have been useful to me years ago but I'd rather just get better at bash scripting.
Replies: >>106134399
Anonymous
8/4/2025, 7:42:43 AM No.106134313
>>106133998 (OP)
>av1 preset 5
>60 fps on a shitphone
What?
Replies: >>106134379
Anonymous
8/4/2025, 7:52:02 AM No.106134369
>>106133998 (OP)
>So I noticed most anons here don't have computers at all
XDD
Replies: >>106134379
termux-termite !!1GSw688pHqQ
8/4/2025, 7:53:38 AM No.106134379
570-5705910_sht-4chan-says-thread-seal-of-approval
570-5705910_sht-4chan-says-thread-seal-of-approval
md5: 99116ce6e32729f99a935ce6dc9310e4🔍
>>106134313
Yeah, it took a while but it really does seem like AV1 accomplished x264 encoding speed with x265 quality. This is just 360p but modern phones should easily be able to hit those kinds of encode speeds at 720p and above.

>>106134369
You know what I mean, don't get me banned PLOX.
Replies: >>106135916
Anonymous
8/4/2025, 7:58:35 AM No.106134399
>>106134214
you just destroyed the rabbit hole created by op. You deserve an award for saving people's time.

>>106134286
>learn bash scripting
why? you won't ever need it for scaffolding.
Replies: >>106134542
termux-termite !!1GSw688pHqQ
8/4/2025, 8:20:06 AM No.106134542
alexa-bliss-eat_thumb.jpg
alexa-bliss-eat_thumb.jpg
md5: a30e050f86365845c8e38bb35eb384ba🔍
>>106134399
I'm going to automate your job on a FFFUCKING TELEPHONE by bash scripting on it and there's nothing you can do about it.
Replies: >>106134647
Anonymous
8/4/2025, 8:27:03 AM No.106134581
>>106133998 (OP)
Use case?
Replies: >>106134797
Anonymous
8/4/2025, 8:37:39 AM No.106134647
>>106134542
you won't be stealing anyone's jobs by downloading and converting video files kiddo. Most of the work has already been done for you (by the authors of the very programs you are using). Now make yourself useful and learn a trade.
Replies: >>106135821
Anonymous
8/4/2025, 8:49:07 AM No.106134701
1754290136863_thumb.jpg
1754290136863_thumb.jpg
md5: 30783d8d53103f9067336164f293ffcf🔍
>termux-setup-storage
neat.
Replies: >>106134717
Anonymous
8/4/2025, 8:52:07 AM No.106134717
>>106134701
gay and pretty basic. if you needed a video for that then kys.
Replies: >>106134726 >>106134730
Anonymous
8/4/2025, 8:53:39 AM No.106134726
>>106134717
you are brown and mentally ill.
Anonymous
8/4/2025, 8:54:31 AM No.106134730
1754290462836
1754290462836
md5: c12998406b46494e89c53df77e89b68b🔍
>>106134717
why so mad? chill my nigga.
Anonymous
8/4/2025, 9:00:32 AM No.106134757
lain_phone
lain_phone
md5: 95e44a0de9aec97604a0ac6a0b461ebf🔍
>>106133998 (OP)
Just use FFShare from F-Droid, which doesn't require any terminal commands at all. You can still configure ffmpeg in the app settings. Also if you use a terminal on your phone (apart from genuine engineering) your penis will never touch a vagina.
Replies: >>106134837
termux-termite !!1GSw688pHqQ
8/4/2025, 9:07:14 AM No.106134797
l1UFlRF
l1UFlRF
md5: aca212c560fb4ef877be7ae25fe7b190🔍
>>106134581
Seven use cases, maybe more.

On a related note I found out something incredibly stupid and hard to diagnose: libvpx unless told otherwise will convert GIFs to GBR instead of yuv420p. You MUST add -pix_fmt yuv420p else the webm will come out "corrupt" at least on phones.
termux-termite !!1GSw688pHqQ
8/4/2025, 9:13:37 AM No.106134837
>>106134757
I don't see any option for quality validation on that thing. Seems pretty limited compared to handbrake but not like you can expect much from phone devs piggy backing on ffmpeg and a couple bash scripts out there.
Anonymous
8/4/2025, 10:52:53 AM No.106135380
>>106133998 (OP)
Cool
thank you for sharing

>>106134214
And even better than Seal is YTDLnis

https://github.com/deniscerri/ytdlnis
Anonymous
8/4/2025, 12:15:13 PM No.106135821
>>106134647
>kiddo
kill yourself boomergolem
Anonymous
8/4/2025, 12:28:06 PM No.106135900
>>106133998 (OP)
> (525 × 1080)
Yein, what phone?
Replies: >>106137248
Anonymous
8/4/2025, 12:31:28 PM No.106135916
>>106133998 (OP)
noice

>>106134379
>You know what I mean, don't get me banned PLOX.
2200G finally croaked?
Anonymous
8/4/2025, 12:32:15 PM No.106135924
>>106133998 (OP)
Use case?
Anonymous
8/4/2025, 12:55:45 PM No.106136047
>>106133998 (OP)
On Pixels you can use the integrated Linux Terminal app which is basically a Debian system. No need for pajeet Termux.

https://www.reddit.com/r/GooglePixel/comments/1j3yrkd/linux_terminal_app_which_was_assumed_to_be/
Replies: >>106136332
Anonymous
8/4/2025, 1:41:08 PM No.106136332
>>106136047
The Debian flavor running on the stock terminal (Bookworm) has old as fuck packages in their repos, you'd have to compile SVT-AV1 to get latest version which is leagues ahead of 1.4.1. Termux has v3.1.0
Replies: >>106137248
termux-termite !!1GSw688pHqQ
8/4/2025, 3:43:31 PM No.106137248
>>106135900
galaxy s8 but 4 chan doesn't like 1440p video so I just resized the height to 1080p.

>>106136332
Yeah, those phone CPU optimizations seemed to have hit recently.