<br><br>On Sunday, May 2, 2021, Andrew Randrianasulu <<a href="mailto:randrianasulu@gmail.com">randrianasulu@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>On Sunday, May 2, 2021, Andrea paz via Cin <<a href="mailto:cin@lists.cinelerra-gg.org" target="_blank">cin@lists.cinelerra-gg.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a<br>
certain point on the mails became private between Andrew and me and<br>
therefore they do not appear in the mailing list. I will report here<br>
the content of those mails, but I anticipate that I could not get<br>
CinGG to work with ffmpeg-4.4.<br>
<br>
Me:<br>
Excluding patch5 we came close to completing the build. Now the errors<br>
are about bdwrite and lv2.<br>
Note: in Arch Linux lv2 are located in "usr/lib/lv2".<br>
(thanks for the help you're giving me!)<br>
<br>
Andrew:<br>
Oh, this api hiding patch landed (it was reverted for 4.4 releases as<br>
far As i know)<br>
<br>
Try additionally patch Cin with this:<br>
<a href="https://raw.githubusercontent.com/Randrianasulu/CinelerraGG-slackbuild/master/ffmpeg.git_internal_api.patch" target="_blank">https://raw.githubusercontent.<wbr>com/Randrianasulu/CinelerraGG-<wbr>slackbuild/master/ffmpeg.git_i<wbr>nternal_api.patch</a><br>
<br>
And may be<br>
<a href="https://raw.githubusercontent.com/Randrianasulu/CinelerraGG-slackbuild/master/mainerror_gcc5.diff" target="_blank">https://raw.githubusercontent.<wbr>com/Randrianasulu/CinelerraGG-<wbr>slackbuild/master/mainerror_gc<wbr>c5.diff</a><br>
<br>
<br>
Me:<br>
I am unable to patch the sources. I get the following error:<br>
<br>
<br>
$ patch -p3 ffmpeg.C < ffmpeg.git_internal_api.patch<br>
patching file ffmpeg.C<br>
Hunk #3 succeeded at 4068 (offset 124 lines).<br>
patching file ffmpeg.C<br>
Hunk #1 FAILED at 89.<br>
1 out of 1 hunk FAILED -- saving rejects to file ffmpeg.C.rej<br>
<br>
<br>
(the same error exists also when I don't put -pX, or I put p0, p1, etc)<br>
<br>
The contents of ffmpeg.C.rej are:<br>
<br>
<br>
--- a/cinelerra-5.1/cinelerra/main<wbr>error.h<br>
+++ b/cinelerra-5.1/cinelerra/main<wbr>error.h<br>
@@ -89,7 +89,7 @@ private:<br>
<br>
// format text to error dialog listbox<br>
<br>
-static inline void eprint1(const char *func, const char *fmt, ...)<br>
+static void eprint1(const char *func, const char *fmt, ...)<br>
{<br>
char err_msg[1024], *cp = err_msg, *ep = cp + sizeof(err_msg)-1;<br>
va_list va;<br>
<br>
<br>
I don't understand; first I patched mainerror.h and it seems OK. Then<br>
I patched ffmpeg.C and it gives me the error, but the error seems to<br>
refer to mainerror.h and not to ffmpeg.C.<br>
<br>
I also tried to reverse the order of the patches but the result does not change.<br>
<br>
I think working on the code is beyond my capabilities and I'm wasting<br>
your time unnecessarily.<br>
<br>
<br>
Andrew:<br>
Try with git apply?<br>
<br>
<br>
Me:<br>
Error, again:<br>
<br>
$ git apply ffmpeg.git_internal_api.patch<br>
error: patch failed: cinelerra-5.1/cinelerra/mainer<wbr>ror.h:89<br>
error: cinelerra-5.1/cinelerra/mainer<wbr>ror.h: patch does not apply<br>
<br>
<br>
Andrew:<br>
May be this part already change by previous patching? I think i rolled<br>
two patches into one at some point.. Try to revert smaller patch<br>
first?<br>
<br>
<br>
Me:<br>
I've tried the patch revert; I've tried re-downloading all the source<br>
and doing new tests. The result is always failure. I should know how<br>
to get my hands on the code to find solutions to errors. But since I<br>
don't know how to do that I would say I give up. Sorry for all the<br>
time wasted. Thank you.<br>
<br>
Me:<br>
I attach the log of an attempt with only the mainerror_gcc5.diff patch</blockquote><div><br></div><div><br></div><div>This will not work, it was at best supposed to go in with patch exposing now internal api (hack, we not supposed to do so.. But it was path of least resistance for me). I think you can drop this patch for now.. </div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I started with a new "git clone" in order to have the system clean.<br>
ffmpeg.git_internal_api.patch still doesn't work; probably due to my<br>
Arch linux having differences with your Slackware.<br>
<br>
Trying to replace ffmpeg-4.3 with ffmpeg-4.4 I don't know how to do in<br>
a static build. But I guess that's beyond my poor skills as well.<br>
</blockquote><div><br></div><div><br></div><div>Hm, try to move ffmpeg-4.3 from thisrdparty/src part of your Cin tree some where, along with corresponding patches. Now put 4.4 xz compressed tarball from ffmpeg site at its place, and copy (with renaming, like 'cp ffmpeg.git.patch0 ffmpeg-4.4.patch0') ffmpeg.git* patches to ffmpeg-4.4* one by one (do not forgot to modify patch3 and leave out patch 2 and 4, and add ffmpeg_internal-api as ffmpeg-4.4.patchC for example. But this last step only needed if revert in 4.4 was incomplete.. Try w/o this patch first, if build fails in ffmpeg-related Cin source - only then try to put it back) </div></blockquote><div><br></div><div><br></div><div>And also update configure. Ac:</div><div><a href="http://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/configure.ac;h=ceddac2ac14f1e977375c3adec15b217431e7d26;hb=HEAD">http://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-5.1/configure.ac;h=ceddac2ac14f1e977375c3adec15b217431e7d26;hb=HEAD</a></div><div><br></div><div>There is entry about ffmpeg-4.3, change it to 4.4, and rerun atutogen.sh </div><div><br></div><div>Sorry for not mentioning this earlier</div><div><br></div><div>Ps: Natron 2.4.0 is out.. They update their ffmpeg integration, so AV1 and CineformHD should work there.. </div><div><br></div><div><a href="https://github.com/NatronGitHub/Natron/releases/tag/v2.4.0">https://github.com/NatronGitHub/Natron/releases/tag/v2.4.0</a></div><div><br></div><div>Ps2: for ffmpeg api changes mplayer-dev-end list might be useful as well:</div><div><a href="http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2021-May/thread.html#73993">http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2021-May/thread.html#73993</a></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div>In theory I can try to connect to your machine via ssh, but i never tried this from Android tablet (with termux installed). If you wish to go via this route - i think you better to set up separate user for me on your machine, and give me login info in private (i use local Internet provider, so may be we can even restrict logins to my current ip) </div>
</blockquote>