and termux-specific brender (background render) hack - there is no
user-writable /tmp on default non-root install)



On Wednesday, May 26, 2021, Andrew Randrianasulu <[email protected]>
wrote:

> i tried to guess aarch64 objdir for Cinelerra (output of uname -m) and
> also dropped in libjpeg-turbo 2.1.0 (a bit faster encoding according to
> their changelog). Patch only updates configure.ac, you need to get
> tarball from official sourceforge page or from
>
> https://ftp.osuosl.org/pub/blfs/conglomeration/libjpeg-turbo/
>
>
> On Tuesday, May 25, 2021, Andrew Randrianasulu <[email protected]>
> wrote:
>
>> two more patches, should fix interpreter in configure automagically, add
>> termux conditionals in configure.ac, and mjpegtools patches should be
>> buildable again on standard Linux (added ifdef for bthread.h include)
>>
>> On Sunday, May 23, 2021, Andrew Randrianasulu <[email protected]>
>> wrote:
>>
>>> updated series a bit more, hopefully now it has both my configure params
>>> and launch params as shell scripts, added dv ifdefs to livevideo plugin (so
>>> it can be compiled with - - without-dv)
>>>
>>>
>>>
>>> On Sunday, May 23, 2021, Andrew Randrianasulu <[email protected]>
>>> wrote:
>>>
>>>> fixed (hopefully) 0001 patch, added mjpegtools and ffmpeg 4.4
>>>> termux-specific patches... also added libbthread source and simple Makefile
>>>> (might be useful if i manage to include resulted library in
>>>> libzmpeg-related files)
>>>>
>>>>
>>>>
>>>> On Wednesday, May 19, 2021, Andrew Randrianasulu <
>>>> [email protected]> wrote:
>>>>
>>>>> probably not very complete (mjpegtools had their own problems) but
>>>>> should give you some idea where I am
>>>>>
>>>>> patch 0001 still not fixed.. (as in, it reintroduced ff->video_probe
>>>>> and this one still leaks..)
>>>>>
>>>>> configured with
>>>>>
>>>>>  $ ./configure  --without-lv2 --without-vdpau --without-vaapi
>>>>> --without-firewire --without-nv --without-shuttle --without-shuttle_usb
>>>>> --with-single-user --without-libzmpeg --with-clang --with-booby
>>>>> --without-dv --without-dvb --without-video4linux2 --disable-dav1d
>>>>>
>>>>>
>>>>>
From d301cd53076b81a22af5e7b91d4ad5fd2b1b7223 Mon Sep 17 00:00:00 2001
From: Andrew Randrianasulu <[email protected]>
Date: Wed, 26 May 2021 01:37:13 +0300
Subject: [PATCH 34/34] Hack: add brender socket path for termux (no /tmp here)

---
 cinelerra-5.1/cinelerra/brender.C | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cinelerra-5.1/cinelerra/brender.C b/cinelerra-5.1/cinelerra/brender.C
index 9fc3355a..49580c9f 100644
--- a/cinelerra-5.1/cinelerra/brender.C
+++ b/cinelerra-5.1/cinelerra/brender.C
@@ -103,6 +103,9 @@ void BRender::initialize()
 // Create socket for background process.
 	uuid_t socket_temp;
 	sprintf(socket_path, "/tmp/cinelerra.");
+#if defined(__TERMUX__)
+	sprintf(socket_path, "/data/data/com.termux/files/home/tmp/cinelerra.");
+#endif
 	uuid_generate(socket_temp);
 	uuid_unparse(socket_temp, socket_path + strlen(socket_path));
 SET_TEMP(socket_path);
-- 
2.31.1

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to