Anyone have Termux-enabled device with av1 *encoding* working in ffmpeg/mediacodec? #28424
Unanswered
Randrianasulu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently tried to add decode acceleration to cinelerra-gg (sadly we still have sound problem if both program and vnc viewer ran on same device. Audio works if I redirect display via x11 to desktop!) running in termux.
It seems to work, at least for my only device (Android 11, K38 cheap tablet from 2021/2).
In theory I made profile for cinelerra-gg utilizing system ffmpeg's av1_mediacodec.
But I have no hardware so I can't test it.
Anyone wish to test this ?
You can git clone our repo,
https://git.cinelerra-gg.org/goodguy/cinelerra.git
may be with --depth 1 if you are low on space.
Then apply patch
0001-Not-tested-due-to-lack-of-hw-av1-mediacodec-encoder-.txt
Then run
./autogen.sh (surely you need autotools and other dev files, including ones for alsa and x11)
blds/termux_dyn.bld
then make install (it should install into 'bin' directory in its own source tree root.)
then ran ./cin.sh
and connect to vnc server as usual on termux.
There should be picture like this:

This is with many utility windows opened.
Basically just file -> load, file opener window should appear, naviagte to where your sample media file is in termux filesystem hierary, , set load method to "replace project", open it
Now in settings disable "use X11 direct if possible" checkbox select rendering, select ffmpeg as type of codec, deselect "render audio tracks" checkbox, use mp4 as format/container, select mediacodec encoder, confirm, try to render.
desktop version but should give you idea
For decode acceleartion there is bin/ffmpeg/decode.opts
Ufff ... as nedo-developer/somewhat power user it was faster to me to click all this, but for ppl unfamiliar with Cinelerra some GUI quircks may be not obvious.
Even without av1 encoder profile hevc/h264 should work, and if anyone have vp9 encoder - it should be trivial to rename first line in profile and try it
Beta Was this translation helpful? Give feedback.
All reactions