Closed dpasqualin closed 1 year ago
@guojiansheng0925 could you see if you can generate a patch for n6.0?
Seems the changes are
ladspa
and libaom
libx265_encoder_select="atsc_a53"
was added after libx265
enabled openal &&
was changedFirst three seems to be just simple moving around, the last one is a conflicting rename that can't easily be backported.
Hi @dpasqualin,
Could you use git am to apply the patch?
If you have to use patch command, try the parameter -p1:
$ patch -p1 < ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
@guojiansheng0925 could you see if you can generate a patch for n6.0?
If you don't mind I'll try to create PR, thanks for checking the changes :)
Hi @dpasqualin, Could you use git am to apply the patch? If you have to use patch command, try the parameter -p1:
$ patch -p1 < ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
Sorry that was a bad copy/paste from my side, I did use -p1
, description updated. Command git am
also fails with message below.
$ git am ../master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
Applying: lavc/svt_hevc: add libsvt hevc encoder wrapper
error: patch failed: configure:1763
error: configure: patch does not apply
error: patch failed: libavcodec/allcodecs.c:772
error: libavcodec/allcodecs.c: patch does not apply
Patch failed at 0001 lavc/svt_hevc: add libsvt hevc encoder wrapper
hint: Use 'git am --show-current-patch=diff' to see the failed patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
@1480c1 and @guojiansheng0925, please check whether this is acceptable :) PR https://github.com/OpenVisualCloud/SVT-HEVC/pull/643
Hi @dpasqualin
I have tried the patch for master branch can be used for n6.0.
I've no idea if there are some gaps,
the commit of ffmpeg n6.0 is:
commit ea3d24bbe3c58b171e55fe2151fc7ffaca3ab3d2 (grafted, tag: n6.0)
is it right?
Is anything wrong in this script? Can it work in your environment?
Hi @guojiansheng0925 , my PR only covers branch n6.0, not master. So when on ffmpeg repo do something like git checkout tags/n6.0 -b n6.0-branch
before applying the patch.
Apparently on FFmpeg master there were some additional breaking changes already. Tomorrow morning I'll update the MR adding a new master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
Hi @dpasqualin Not about your PR. My question is the current patch works well in my environment and I don't know which step went wrong...
gjs@guojians-dev:~/code/svt$ git clone https://git.ffmpeg.org/ffmpeg.git
Cloning into 'ffmpeg'...
remote: Enumerating objects: 6507, done.
remote: Counting objects: 100% (6507/6507), done.
remote: Compressing objects: 100% (4890/4890), done.
remote: Total 694571 (delta 4639), reused 2029 (delta 1611)
Receiving objects: 100% (694571/694571), 167.85 MiB | 6.87 MiB/s, done.
Resolving deltas: 100% (561830/561830), done.
Updating files: 100% (8138/8138), done.
gjs@guojians-dev:~/code/svt$
gjs@guojians-dev:~/code/svt$
gjs@guojians-dev:~/code/svt$ cd ffmpeg
gjs@guojians-dev:~/code/svt/ffmpeg$
gjs@guojians-dev:~/code/svt/ffmpeg$ git checkout tags/n6.0 -b n6.0-branch
Switched to a new branch 'n6.0-branch'
gjs@guojians-dev:~/code/svt/ffmpeg$
gjs@guojians-dev:~/code/svt/ffmpeg$ git am ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
Applying: lavc/svt_hevc: add libsvt hevc encoder wrapper
gjs@guojians-dev:~/code/svt/ffmpeg$
gjs@guojians-dev:~/code/svt/ffmpeg$
the commit of ffmpeg is
commit ea3d24bbe3c58b171e55fe2151fc7ffaca3ab3d2 (tag: n6.0)
Author: Michael Niedermayer <michael@niedermayer.cc>
Date: Fri Nov 2 01:36:21 2018 +0100
RELEASE_NOTES: Based on the version from 5.1
Name suggested by Niklas Haas
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
and the SVT-HEVC is
commit 6cca5b932623d3a1953b165ae6b093ca1325ac44 (HEAD -> master, origin/master, origin/HEAD)
Author: Jan Beich <jbeich@FreeBSD.org>
Date: Thu Apr 27 15:44:37 2023 +0000
ffmpeg_plugin: unbreak documentation patch after cc9b8bde85b2
error: corrupt patch at line 169
error: patch failed: doc/general.texi:243
Signed-off-by: Jan Beich <jbeich@FreeBSD.org>
Any gaps between us?
Oh, true. For some reason I only tried to apply SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
to FFmpeg master
branch, not n6.0
.
Still, If I update master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
to work with FFmpeg master
plus SVT-HEVC/ffmpeg_plugin/README.md
would you consider merging my PR? It might still be beneficial considering updates on FFmpeg API.
umm... the main branch also works...
gjs@guojians-dev:~/code/svt$ git clone https://git.ffmpeg.org/ffmpeg.git
Cloning into 'ffmpeg'...
remote: Enumerating objects: 6507, done.
remote: Counting objects: 100% (6507/6507), done.
remote: Compressing objects: 100% (4890/4890), done.
remote: Total 694571 (delta 4640), reused 2029 (delta 1611)
Receiving objects: 100% (694571/694571), 167.85 MiB | 3.33 MiB/s, done.
Resolving deltas: 100% (561831/561831), done.
Updating files: 100% (8138/8138), done.
gjs@guojians-dev:~/code/svt$
gjs@guojians-dev:~/code/svt$
gjs@guojians-dev:~/code/svt$ cd ffmpeg
gjs@guojians-dev:~/code/svt/ffmpeg$
gjs@guojians-dev:~/code/svt/ffmpeg$ git am ../SVT-HEVC/ffmpeg_plugin/master-0001-lavc-svt_hevc-add-libsvt-hevc-encoder-wrapper.patch
Applying: lavc/svt_hevc: add libsvt hevc encoder wrapper
gjs@guojians-dev:~/code/svt/ffmpeg$
The latest commit is
commit d51b0580e423f57d9957a0b4d29800a82389f4d3 (origin/master, origin/HEAD)
Author: Tong Wu <tong1.wu-at-intel.com@ffmpeg.org>
Date: Mon Jun 19 14:15:09 2023 +0800
lavu/hwcontext_qsv: fix memory leak for d3d9 impl
Signed-off-by: Tong Wu <tong1.wu@intel.com>
right?
What... the...
Yes, I can confirm that it worked for me now. No clue what I did on first try that made me spend my Sunday on it. Sorry about that too.
I tried applying the patch from master on FFmpeg 6.0 but I get an error:
Rejected files below:
configure.rej
libavcodec/allcodecs.c.rej