← Home ← Back to /g/

Thread 106133998

28 posts 20 images /g/
termux-termite !!1GSw688pHqQ No.106133998 [Report] >>106134024 >>106134180 >>106134214 >>106134313 >>106134369 >>106134581 >>106134757 >>106135380 >>106135900 >>106135916 >>106135924 >>106136047
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
Anonymous No.106134024 [Report]
>>106133998 (OP)
thanks anon
termux-termite !!1GSw688pHqQ No.106134152 [Report]
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 No.106134180 [Report] >>106134286
>>106133998 (OP)
cool thread OP
made this with termux and ffmpeg a while back on my phone
Anonymous No.106134214 [Report] >>106134286 >>106134399 >>106135380
>>106133998 (OP)
you do know that seal exists right?
https://f-droid.org/packages/com.junkfood.seal/
termux-termite !!1GSw688pHqQ No.106134286 [Report] >>106134399
>>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.
Anonymous No.106134313 [Report] >>106134379
>>106133998 (OP)
>av1 preset 5
>60 fps on a shitphone
What?
Anonymous No.106134369 [Report] >>106134379
>>106133998 (OP)
>So I noticed most anons here don't have computers at all
XDD
termux-termite !!1GSw688pHqQ No.106134379 [Report] >>106135916
>>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.
Anonymous No.106134399 [Report] >>106134542
>>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.
termux-termite !!1GSw688pHqQ No.106134542 [Report] >>106134647
>>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.
Anonymous No.106134581 [Report] >>106134797
>>106133998 (OP)
Use case?
Anonymous No.106134647 [Report] >>106135821
>>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.
Anonymous No.106134701 [Report] >>106134717
>termux-setup-storage
neat.
Anonymous No.106134717 [Report] >>106134726 >>106134730
>>106134701
gay and pretty basic. if you needed a video for that then kys.
Anonymous No.106134726 [Report]
>>106134717
you are brown and mentally ill.
Anonymous No.106134730 [Report]
>>106134717
why so mad? chill my nigga.
Anonymous No.106134757 [Report] >>106134837
>>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.
termux-termite !!1GSw688pHqQ No.106134797 [Report]
>>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 No.106134837 [Report]
>>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 No.106135380 [Report]
>>106133998 (OP)
Cool
thank you for sharing

>>106134214
And even better than Seal is YTDLnis

https://github.com/deniscerri/ytdlnis
Anonymous No.106135821 [Report]
>>106134647
>kiddo
kill yourself boomergolem
Anonymous No.106135900 [Report] >>106137248
>>106133998 (OP)
> (525 × 1080)
Yein, what phone?
Anonymous No.106135916 [Report]
>>106133998 (OP)
noice

>>106134379
>You know what I mean, don't get me banned PLOX.
2200G finally croaked?
Anonymous No.106135924 [Report]
>>106133998 (OP)
Use case?
Anonymous No.106136047 [Report] >>106136332
>>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/
Anonymous No.106136332 [Report] >>106137248
>>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
termux-termite !!1GSw688pHqQ No.106137248 [Report]
>>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.