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
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.
>>106133998 (OP)cool thread OP
made this with termux and ffmpeg a while back on my phone
seal
md5: 273c39e7a1f848fb6692626ee18cf455
🔍
>>106133998 (OP)you do know that seal exists right?
https://f-droid.org/packages/com.junkfood.seal/
>>106134180Sucks 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?
>>106134214That might have been useful to me years ago but I'd rather just get better at bash scripting.
>>106134313Yeah, 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.
>>106134369You know what I mean, don't get me banned PLOX.
>>106134214you just destroyed the rabbit hole created by op. You deserve an award for saving people's time.
>>106134286>learn bash scriptingwhy? you won't ever need it for scaffolding.
>>106134399I'm going to automate your job on a FFFUCKING TELEPHONE by bash scripting on it and there's nothing you can do about it.
>>106134542you 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.
>termux-setup-storage
neat.
>>106134701gay and pretty basic. if you needed a video for that then kys.
>>106134717you are brown and mentally ill.
>>106134717why so mad? chill my nigga.
>>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.
l1UFlRF
md5: aca212c560fb4ef877be7ae25fe7b190
🔍
>>106134581Seven 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.
>>106134757I 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.
>>106133998 (OP)Cool
thank you for sharing
>>106134214And even better than Seal is YTDLnis
https://github.com/deniscerri/ytdlnis
>>106134647>kiddokill yourself boomergolem
>>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/
>>106136047The 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
>>106135900galaxy s8 but 4 chan doesn't like 1440p video so I just resized the height to 1080p.
>>106136332Yeah, those phone CPU optimizations seemed to have hit recently.