With the release of FFMPEG 4.4 I tried to compile CinGG with git-ffmpeg. I used the following command from ./configure: ./configure --with-single-user --with-git-ffmpeg --with-booby And then I compiled with: make 2>&1 | tee /tmp/cin5.log && make install The compilation crashes immediately with the cin5.log that I attach. Do you have any advice for me or is this an impossible task for a non-programmer?
I think you need not just --with-ffmpeg-git, but --with-git-ffmpeg=https://git.ffmpeg.org/ffmpeg.git But be aware about ffmpeg.git patch 2 not yet updated (so you better to rename it to something not ending with .patch, so build Will skip it.. ) Or try to adapt it piecewise.. (patch modifies mpegts muxer for blu-ray compatible muxing...) In my slackbuild i have this line moving this patch out of the way: # ffmpeg.git changed mpegts muxer again - 26/08/2020 mv thirdparty/src/ffmpeg.git.patch2 thirdparty/src/_ffmpeg.git.patch2 On Wednesday, April 28, 2021, Andrea paz via Cin <[email protected]> wrote:
With the release of FFMPEG 4.4 I tried to compile CinGG with git-ffmpeg. I used the following command from ./configure:
./configure --with-single-user --with-git-ffmpeg --with-booby
And then I compiled with:
make 2>&1 | tee /tmp/cin5.log && make install
The compilation crashes immediately with the cin5.log that I attach.
Do you have any advice for me or is this an impossible task for a non-programmer?
Andrea, If you get this going and do some crucial testing, let me know so we can update CinGG with 4.4. (I can fix and test patch2 so take it out as Andrew suggested). Andrew, Also, should Andrea apply the patch3 diff file you provided around April 2 while testing also? ffmpeg_git_patch_3_update.diff Because I was compiling with ffmpeg git (commit
ec4c04aa7b5a0c7a91e4a65775826283d23e08ac) additional small patch for ffmpeg.git.patch3 was needed:
diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 index fb8730e4..28d3876f 100644 --- a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 +++ b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 @@ -43,7 +43,7 @@ index cff7f0cb54..8b6d22aff2 100644 .name = "matroska,webm", .long_name = NULL_IF_CONFIG_SMALL("Matroska / WebM"), + .flags = AVFMT_SEEK_NOSTREAMS, - .extensions = "mkv,mk3d,mka,mks", + .extensions = "mkv,mk3d,mka,mks,webm", .priv_data_size = sizeof(MatroskaDemuxContext),
.read_probe = matroska_probe,
@@ -4264,6 +4265,7 @@ AVInputFormat ff_matroska_demuxer = {
On Wed, Apr 28, 2021 at 5:22 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
I think you need not just --with-ffmpeg-git, but
--with-git-ffmpeg=https://git.ffmpeg.org/ffmpeg.git
But be aware about ffmpeg.git patch 2 not yet updated (so you better to rename it to something not ending with .patch, so build Will skip it.. )
Or try to adapt it piecewise.. (patch modifies mpegts muxer for blu-ray compatible muxing...)
In my slackbuild i have this line moving this patch out of the way:
# ffmpeg.git changed mpegts muxer again - 26/08/2020 mv thirdparty/src/ffmpeg.git.patch2 thirdparty/src/_ffmpeg.git.patch2
On Wednesday, April 28, 2021, Andrea paz via Cin < [email protected]> wrote:
With the release of FFMPEG 4.4 I tried to compile CinGG with git-ffmpeg. I used the following command from ./configure:
./configure --with-single-user --with-git-ffmpeg --with-booby
And then I compiled with:
make 2>&1 | tee /tmp/cin5.log && make install
The compilation crashes immediately with the cin5.log that I attach.
Do you have any advice for me or is this an impossible task for a non-programmer?
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
On Wednesday, April 28, 2021, Phyllis Smith via Cin < [email protected]> wrote:
Andrea, If you get this going and do some crucial testing, let me know so we can update CinGG with 4.4. (I can fix and test patch2 so take it out as Andrew suggested).
Andrew, Also, should Andrea apply the patch3 diff file you provided around April 2 while testing also? ffmpeg_git_patch_3_update.diff
I think yes, unless same file was modified by upstream ffmpeg even more....
Because I was compiling with ffmpeg git (commit
ec4c04aa7b5a0c7a91e4a65775826283d23e08ac) additional small patch for ffmpeg.git.patch3 was needed:
diff --git a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 index fb8730e4..28d3876f 100644 --- a/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 +++ b/cinelerra-5.1/thirdparty/src/ffmpeg.git.patch3 @@ -43,7 +43,7 @@ index cff7f0cb54..8b6d22aff2 100644 .name = "matroska,webm", .long_name = NULL_IF_CONFIG_SMALL("Matroska / WebM"), + .flags = AVFMT_SEEK_NOSTREAMS, - .extensions = "mkv,mk3d,mka,mks", + .extensions = "mkv,mk3d,mka,mks,webm", .priv_data_size = sizeof(MatroskaDemuxContext),
.read_probe = matroska_probe,
@@ -4264,6 +4265,7 @@ AVInputFormat ff_matroska_demuxer = {
On Wed, Apr 28, 2021 at 5:22 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
I think you need not just --with-ffmpeg-git, but
--with-git-ffmpeg=https://git.ffmpeg.org/ffmpeg.git
But be aware about ffmpeg.git patch 2 not yet updated (so you better to rename it to something not ending with .patch, so build Will skip it.. )
Or try to adapt it piecewise.. (patch modifies mpegts muxer for blu-ray compatible muxing...)
In my slackbuild i have this line moving this patch out of the way:
# ffmpeg.git changed mpegts muxer again - 26/08/2020 mv thirdparty/src/ffmpeg.git.patch2 thirdparty/src/_ffmpeg.git.patch2
On Wednesday, April 28, 2021, Andrea paz via Cin < [email protected]> wrote:
With the release of FFMPEG 4.4 I tried to compile CinGG with git-ffmpeg. I used the following command from ./configure:
./configure --with-single-user --with-git-ffmpeg --with-booby
And then I compiled with:
make 2>&1 | tee /tmp/cin5.log && make install
The compilation crashes immediately with the cin5.log that I attach.
Do you have any advice for me or is this an impossible task for a non-programmer?
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
I attach the last part of the error logs: 1- after renaming patch2 and putting in the git-ffmpeg link. 2- after applying patch3 (not sure if I applied it properly).
Now it fails at libavfilter/af_aformat.c.rej ... Can you see how much this file change and try to re-apply changes from patch 4? Or May be Just skip this patch too, because i already can see same function. Uninit declare there in ffmpeg git source.. static av_cold void uninit(AVFilterContext *ctx) { AFormatContext *s = ctx->priv; ff_formats_unref(&s->formats); ff_formats_unref(&s->sample_rates); ff_channel_layouts_unref(&s->channel_layouts); } https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/libavfilter/af_afo... On Wednesday, April 28, 2021, Andrea paz via Cin <[email protected]> wrote:
I attach the last part of the error logs: 1- after renaming patch2 and putting in the git-ffmpeg link. 2- after applying patch3 (not sure if I applied it properly).
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4. Me: Excluding patch5 we came close to completing the build. Now the errors are about bdwrite and lv2. Note: in Arch Linux lv2 are located in "usr/lib/lv2". (thanks for the help you're giving me!) Andrew: Oh, this api hiding patch landed (it was reverted for 4.4 releases as far As i know) Try additionally patch Cin with this: https://raw.githubusercontent.com/Randrianasulu/CinelerraGG-slackbuild/maste... And may be https://raw.githubusercontent.com/Randrianasulu/CinelerraGG-slackbuild/maste... Me: I am unable to patch the sources. I get the following error: $ patch -p3 ffmpeg.C < ffmpeg.git_internal_api.patch patching file ffmpeg.C Hunk #3 succeeded at 4068 (offset 124 lines). patching file ffmpeg.C Hunk #1 FAILED at 89. 1 out of 1 hunk FAILED -- saving rejects to file ffmpeg.C.rej (the same error exists also when I don't put -pX, or I put p0, p1, etc) The contents of ffmpeg.C.rej are: --- a/cinelerra-5.1/cinelerra/mainerror.h +++ b/cinelerra-5.1/cinelerra/mainerror.h @@ -89,7 +89,7 @@ private: // format text to error dialog listbox -static inline void eprint1(const char *func, const char *fmt, ...) +static void eprint1(const char *func, const char *fmt, ...) { char err_msg[1024], *cp = err_msg, *ep = cp + sizeof(err_msg)-1; va_list va; I don't understand; first I patched mainerror.h and it seems OK. Then I patched ffmpeg.C and it gives me the error, but the error seems to refer to mainerror.h and not to ffmpeg.C. I also tried to reverse the order of the patches but the result does not change. I think working on the code is beyond my capabilities and I'm wasting your time unnecessarily. Andrew: Try with git apply? Me: Error, again: $ git apply ffmpeg.git_internal_api.patch error: patch failed: cinelerra-5.1/cinelerra/mainerror.h:89 error: cinelerra-5.1/cinelerra/mainerror.h: patch does not apply Andrew: May be this part already change by previous patching? I think i rolled two patches into one at some point.. Try to revert smaller patch first? Me: I've tried the patch revert; I've tried re-downloading all the source and doing new tests. The result is always failure. I should know how to get my hands on the code to find solutions to errors. But since I don't know how to do that I would say I give up. Sorry for all the time wasted. Thank you. Me: I attach the log of an attempt with only the mainerror_gcc5.diff patch I started with a new "git clone" in order to have the system clean. ffmpeg.git_internal_api.patch still doesn't work; probably due to my Arch linux having differences with your Slackware. Trying to replace ffmpeg-4.3 with ffmpeg-4.4 I don't know how to do in a static build. But I guess that's beyond my poor skills as well.
On Sunday, May 2, 2021, Andrea paz via Cin <[email protected]> wrote:
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4.
Me: Excluding patch5 we came close to completing the build. Now the errors are about bdwrite and lv2. Note: in Arch Linux lv2 are located in "usr/lib/lv2". (thanks for the help you're giving me!)
Andrew: Oh, this api hiding patch landed (it was reverted for 4.4 releases as far As i know)
Try additionally patch Cin with this: https://raw.githubusercontent.com/Randrianasulu/CinelerraGG- slackbuild/master/ffmpeg.git_internal_api.patch
And may be https://raw.githubusercontent.com/Randrianasulu/CinelerraGG- slackbuild/master/mainerror_gcc5.diff
Me: I am unable to patch the sources. I get the following error:
$ patch -p3 ffmpeg.C < ffmpeg.git_internal_api.patch patching file ffmpeg.C Hunk #3 succeeded at 4068 (offset 124 lines). patching file ffmpeg.C Hunk #1 FAILED at 89. 1 out of 1 hunk FAILED -- saving rejects to file ffmpeg.C.rej
(the same error exists also when I don't put -pX, or I put p0, p1, etc)
The contents of ffmpeg.C.rej are:
--- a/cinelerra-5.1/cinelerra/mainerror.h +++ b/cinelerra-5.1/cinelerra/mainerror.h @@ -89,7 +89,7 @@ private:
// format text to error dialog listbox
-static inline void eprint1(const char *func, const char *fmt, ...) +static void eprint1(const char *func, const char *fmt, ...) { char err_msg[1024], *cp = err_msg, *ep = cp + sizeof(err_msg)-1; va_list va;
I don't understand; first I patched mainerror.h and it seems OK. Then I patched ffmpeg.C and it gives me the error, but the error seems to refer to mainerror.h and not to ffmpeg.C.
I also tried to reverse the order of the patches but the result does not change.
I think working on the code is beyond my capabilities and I'm wasting your time unnecessarily.
Andrew: Try with git apply?
Me: Error, again:
$ git apply ffmpeg.git_internal_api.patch error: patch failed: cinelerra-5.1/cinelerra/mainerror.h:89 error: cinelerra-5.1/cinelerra/mainerror.h: patch does not apply
Andrew: May be this part already change by previous patching? I think i rolled two patches into one at some point.. Try to revert smaller patch first?
Me: I've tried the patch revert; I've tried re-downloading all the source and doing new tests. The result is always failure. I should know how to get my hands on the code to find solutions to errors. But since I don't know how to do that I would say I give up. Sorry for all the time wasted. Thank you.
Me: I attach the log of an attempt with only the mainerror_gcc5.diff patch
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.. I started with a new "git clone" in order to have the system clean.
ffmpeg.git_internal_api.patch still doesn't work; probably due to my Arch linux having differences with your Slackware.
Trying to replace ffmpeg-4.3 with ffmpeg-4.4 I don't know how to do in a static build. But I guess that's beyond my poor skills as well.
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) 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)
On Sunday, May 2, 2021, Andrew Randrianasulu <[email protected]> wrote:
On Sunday, May 2, 2021, Andrea paz via Cin <[email protected]> wrote:
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4.
Me: Excluding patch5 we came close to completing the build. Now the errors are about bdwrite and lv2. Note: in Arch Linux lv2 are located in "usr/lib/lv2". (thanks for the help you're giving me!)
Andrew: Oh, this api hiding patch landed (it was reverted for 4.4 releases as far As i know)
Try additionally patch Cin with this: https://raw.githubusercontent.com/Randrianasulu/CinelerraGG- slackbuild/master/ffmpeg.git_internal_api.patch
And may be https://raw.githubusercontent.com/Randrianasulu/CinelerraGG- slackbuild/master/mainerror_gcc5.diff
Me: I am unable to patch the sources. I get the following error:
$ patch -p3 ffmpeg.C < ffmpeg.git_internal_api.patch patching file ffmpeg.C Hunk #3 succeeded at 4068 (offset 124 lines). patching file ffmpeg.C Hunk #1 FAILED at 89. 1 out of 1 hunk FAILED -- saving rejects to file ffmpeg.C.rej
(the same error exists also when I don't put -pX, or I put p0, p1, etc)
The contents of ffmpeg.C.rej are:
--- a/cinelerra-5.1/cinelerra/mainerror.h +++ b/cinelerra-5.1/cinelerra/mainerror.h @@ -89,7 +89,7 @@ private:
// format text to error dialog listbox
-static inline void eprint1(const char *func, const char *fmt, ...) +static void eprint1(const char *func, const char *fmt, ...) { char err_msg[1024], *cp = err_msg, *ep = cp + sizeof(err_msg)-1; va_list va;
I don't understand; first I patched mainerror.h and it seems OK. Then I patched ffmpeg.C and it gives me the error, but the error seems to refer to mainerror.h and not to ffmpeg.C.
I also tried to reverse the order of the patches but the result does not change.
I think working on the code is beyond my capabilities and I'm wasting your time unnecessarily.
Andrew: Try with git apply?
Me: Error, again:
$ git apply ffmpeg.git_internal_api.patch error: patch failed: cinelerra-5.1/cinelerra/mainerror.h:89 error: cinelerra-5.1/cinelerra/mainerror.h: patch does not apply
Andrew: May be this part already change by previous patching? I think i rolled two patches into one at some point.. Try to revert smaller patch first?
Me: I've tried the patch revert; I've tried re-downloading all the source and doing new tests. The result is always failure. I should know how to get my hands on the code to find solutions to errors. But since I don't know how to do that I would say I give up. Sorry for all the time wasted. Thank you.
Me: I attach the log of an attempt with only the mainerror_gcc5.diff patch
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..
I started with a new "git clone" in order to have the system clean.
ffmpeg.git_internal_api.patch still doesn't work; probably due to my Arch linux having differences with your Slackware.
Trying to replace ffmpeg-4.3 with ffmpeg-4.4 I don't know how to do in a static build. But I guess that's beyond my poor skills as well.
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)
And also update configure. Ac: http://git.cinelerra-gg.org/git/?p=goodguy/cinelerra.git;a=blob;f=cinelerra-... There is entry about ffmpeg-4.3, change it to 4.4, and rerun atutogen.sh Sorry for not mentioning this earlier Ps: Natron 2.4.0 is out.. They update their ffmpeg integration, so AV1 and CineformHD should work there.. https://github.com/NatronGitHub/Natron/releases/tag/v2.4.0 Ps2: for ffmpeg api changes mplayer-dev-end list might be useful as well: http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2021-May/thread.html#739...
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)
Andrea, I am starting to look at this also -- sorry I missed the conversation between you and Andrew and glad you included it here so I can try to follow. I can at least confirm: "patch4" can be for sure deleted -- the ffmpeg-4.3 patch 4 was deleted from GIT on about 15 October 2020 and ffmpeg.git.patch4 should have been deleted then also. I will update with progress as I get there but have not used the latest from Andrew yet and currently getting the following errors too: ffmpeg.C:410:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:416:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:421:35: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:723:11: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:723:46: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’ ffmpeg.C:2092:79: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2128:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2325:39: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2333:38: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2555:31: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive] ffmpeg.C:2762:47: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3008:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ ffmpeg.C:3008:10: error: ‘avcodec_copy_context’ was not declared in this scope; did you mean ‘avcodec_free_context’? ffmpeg.C:3654:77: error: cannot convert ‘int*’ to ‘size_t*’ {aka ‘long unsigned int*’} ffmpeg.C:3882:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3888:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3895:50: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:4070:19: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:4073:27: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’ fileffmpeg.C:162:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:193:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1849:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1887:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] On Sun, May 2, 2021 at 10:48 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
On Sunday, May 2, 2021, Andrea paz via Cin <[email protected]> wrote:
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4.
...
On Monday, May 3, 2021, Phyllis Smith via Cin <[email protected]> wrote:
Andrea, I am starting to look at this also -- sorry I missed the conversation between you and Andrew and glad you included it here so I can try to follow. I can at least confirm: "patch4" can be for sure deleted -- the ffmpeg-4.3 patch 4 was deleted from GIT on about 15 October 2020 and ffmpeg.git.patch4 should have been deleted then also. I will update with progress as I get there but have not used the latest from Andrew yet and currently getting the following errors too:
ffmpeg.C:410:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:416:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:421:35: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:723:11: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:723:46: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’ ffmpeg.C:2092:79: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2128:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2325:39: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2333:38: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2555:31: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive] ffmpeg.C:2762:47: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3008:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ ffmpeg.C:3008:10: error: ‘avcodec_copy_context’ was not declared in this scope; did you mean ‘avcodec_free_context’? ffmpeg.C:3654:77: error: cannot convert ‘int*’ to ‘size_t*’ {aka ‘long unsigned int*’} ffmpeg.C:3882:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3888:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3895:50: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:4070:19: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:4073:27: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’
fileffmpeg.C:162:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:193:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1849:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1887:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
For those in file ffmpeg try to add const in front of AVCodec at lines 162, 193, 1849 and 1887? For ffmpeg.C.. Try to add const to same AVCodec but obviously in some cases it will be at lines *before* indicated (where for example *dencoder of this type was declared. Like for line 3895 you will find declaration at line 3878.. Not sure about ffmpeg.C:3654:77: error: cannot convert ‘int*’ to ‘size_t*’ {aka ‘long unsigned int*’} May be try to change those int types in function to size_t or something?
On Sun, May 2, 2021 at 10:48 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
On Sunday, May 2, 2021, Andrea paz via Cin <[email protected]> wrote:
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4.
...
Hi, Phyllis. Sorry for the missing emails. Gmail of its own accord switches from mailing list to private automatically, and I never check the headers (sigh!). Great that we got to the same point in the compilation, it means that the errors are general and not of my system. I hope it can be solved because updating ffmpeg is essential. I didn't understand what I have to do with libavfilter_af_aformat.c Do I always have to delete patch2 and 4 and change patch3? Have you tried using ffmpeg.git_internal_api.patch. Does it work for you?
I tried to add 'const' keyword, it Will not fix All errors but hopefully reduce their amount? I installed termux on this Android tablet, and inside termux installed git and Midnight commander) On Tuesday, May 4, 2021, Andrew Randrianasulu <[email protected]> wrote:
On Monday, May 3, 2021, Phyllis Smith via Cin <[email protected]> wrote:
Andrea, I am starting to look at this also -- sorry I missed the conversation between you and Andrew and glad you included it here so I can try to follow. I can at least confirm: "patch4" can be for sure deleted -- the ffmpeg-4.3 patch 4 was deleted from GIT on about 15 October 2020 and ffmpeg.git.patch4 should have been deleted then also. I will update with progress as I get there but have not used the latest from Andrew yet and currently getting the following errors too:
ffmpeg.C:410:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:416:44: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:421:35: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:723:11: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:723:46: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’ ffmpeg.C:2092:79: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2128:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2325:39: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2333:38: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:2555:31: error: invalid conversion from ‘const AVInputFormat*’ to ‘AVInputFormat*’ [-fpermissive] ffmpeg.C:2762:47: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3008:35: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ ffmpeg.C:3008:10: error: ‘avcodec_copy_context’ was not declared in this scope; did you mean ‘avcodec_free_context’? ffmpeg.C:3654:77: error: cannot convert ‘int*’ to ‘size_t*’ {aka ‘long unsigned int*’} ffmpeg.C:3882:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3888:42: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:3895:50: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] ffmpeg.C:4070:19: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘nb_index_entries’ ffmpeg.C:4073:27: error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘index_entries’
fileffmpeg.C:162:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:193:71: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1849:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive] fileffmpeg.C:1887:53: error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’ [-fpermissive]
For those in file ffmpeg try to add const in front of AVCodec at lines 162, 193, 1849 and 1887?
For ffmpeg.C.. Try to add const to same AVCodec but obviously in some cases it will be at lines *before* indicated (where for example *dencoder of this type was declared. Like for line 3895 you will find declaration at line 3878.. Not sure about
ffmpeg.C:3654:77: error: cannot convert ‘int*’ to ‘size_t*’ {aka ‘long unsigned int*’}
May be try to change those int types in function to size_t or something?
On Sun, May 2, 2021 at 10:48 AM Andrew Randrianasulu via Cin < [email protected]> wrote:
On Sunday, May 2, 2021, Andrea paz via Cin <[email protected]> wrote:
Hi, regarding the attempt to use ffmpeg-4.4, I realized that from a certain point on the mails became private between Andrew and me and therefore they do not appear in the mailing list. I will report here the content of those mails, but I anticipate that I could not get CinGG to work with ffmpeg-4.4.
...
Andrea, I think I have caught up with you now. So far have done the same as recommended by Andrew): 1) move patch2 (for now) 2) delete patch4 (not needed anymore) 3) added ONLY the patch from Andrew as listed below (if you have trouble with this, I can send the 2 whole files instead). https://git.ffmpeg.org/gitweb/ffmpeg.git/blob_plain/HEAD:/libavfilter/af_afo...
4) am now at the bdwrite and lv2ui errors like you; will work on these tomorrow
participants (3)
-
Andrea paz -
Andrew Randrianasulu -
Phyllis Smith