[PR #1479] [MERGED] fix: ffmpeg 5 and tesseract 5 compatibility #2208

Closed
opened 2026-01-29 17:20:50 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1479
Author: @prateekmedia
Created: 2/15/2023
Status: Merged
Merged: 3/8/2023
Merged by: @cfsmp3

Base: masterHead: master


📝 Commits (9)

  • 2a84999 fix: replace deprecated codec property with codecpar
  • 97af16c fix: replace deprecated method avcodec_decode_video2 with avcodec_receive_frame and avcodec_send_packet
  • cfbbc49 Update CHANGES.TXT
  • 4526eef fix: remove deprecated av_register_all function
  • 66423c7 fix: formatting
  • 2371de6 fix: add support for tesseract 5
  • 98856bf fix: tesseract v5
  • 5832e14 fix: hardsubx codec context error
  • b11430f fix: lint const warning

📊 Changes

5 files changed (+47 additions, -59 deletions)

View changed files

📝 docs/CHANGES.TXT (+1 -0)
📝 src/lib_ccx/ffmpeg_intgr.c (+3 -4)
📝 src/lib_ccx/hardsubx.c (+17 -8)
📝 src/lib_ccx/hardsubx_decoder.c (+10 -17)
📝 src/lib_ccx/ocr.c (+16 -30)

📄 Description

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.
  • I have mentioned this change in the changelog.

My familiarity with the project is as follows (check one):

  • I have never used CCExtractor.
  • I have used CCExtractor just a couple of times.
  • I absolutely love CCExtractor, but have not contributed previously.
  • I am an active contributor to CCExtractor.

CCExtractor build fails when using build_hardsubx with ffmpeg 5.0 and tesseract 5.0, This PR is for fixing the build of hardsubx with ffmpeg 5.x and tesseract 5.x.

  • For FFmpeg, Basically codec is now deprecated in favor of codecpar and av_register_all is deprecated in many places
  • For Tesseract, now the tessdata is located in /usr/share/tesseract-ocr/5/
  • For Hardsubx. I have changed the code for getting the codec to fix 0x0 widthxheight error.

Resolves: #1418


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1479 **Author:** [@prateekmedia](https://github.com/prateekmedia) **Created:** 2/15/2023 **Status:** ✅ Merged **Merged:** 3/8/2023 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (9) - [`2a84999`](https://github.com/CCExtractor/ccextractor/commit/2a84999a0c5ddde3b16d6796b191685b979edfed) fix: replace deprecated `codec` property with `codecpar` - [`97af16c`](https://github.com/CCExtractor/ccextractor/commit/97af16ce2ec2ed9d7bc0bf057e52c717732b3b25) fix: replace deprecated method `avcodec_decode_video2` with `avcodec_receive_frame` and `avcodec_send_packet` - [`cfbbc49`](https://github.com/CCExtractor/ccextractor/commit/cfbbc49648e05be79fcf3b30517da5ec22b3162b) Update CHANGES.TXT - [`4526eef`](https://github.com/CCExtractor/ccextractor/commit/4526eefa234d3f8d1731858296f8695cb45f9ff9) fix: remove deprecated `av_register_all` function - [`66423c7`](https://github.com/CCExtractor/ccextractor/commit/66423c7985ea11096293bbd1bf266f30b631fd8e) fix: formatting - [`2371de6`](https://github.com/CCExtractor/ccextractor/commit/2371de6139a80a5d9c7c5242f826bbff6dd9ed8e) fix: add support for tesseract 5 - [`98856bf`](https://github.com/CCExtractor/ccextractor/commit/98856bf42324889535029ea880efe9d434af13a2) fix: tesseract v5 - [`5832e14`](https://github.com/CCExtractor/ccextractor/commit/5832e14aa775b03451c64ed9f2145db73a046e02) fix: hardsubx codec context error - [`b11430f`](https://github.com/CCExtractor/ccextractor/commit/b11430f986584841f369a14e1c937680389f1365) fix: lint const warning ### 📊 Changes **5 files changed** (+47 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `docs/CHANGES.TXT` (+1 -0) 📝 `src/lib_ccx/ffmpeg_intgr.c` (+3 -4) 📝 `src/lib_ccx/hardsubx.c` (+17 -8) 📝 `src/lib_ccx/hardsubx_decoder.c` (+10 -17) 📝 `src/lib_ccx/ocr.c` (+16 -30) </details> ### 📄 Description <!-- Please prefix your pull request with one of the following: **[FEATURE]** **[FIX]** **[IMPROVEMENT]**. --> **In raising this pull request, I confirm the following (please check boxes):** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that another pull request for this purpose does not exist. - [x] I have considered, and confirmed that this submission will be valuable to others. - [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [x] I give this submission freely, and claim no ownership to its content. - [x] **I have mentioned this change in the [changelog](https://github.com/CCExtractor/ccextractor/blob/master/docs/CHANGES.TXT).** **My familiarity with the project is as follows (check one):** - [ ] I have never used CCExtractor. - [x] I have used CCExtractor just a couple of times. - [ ] I absolutely love CCExtractor, but have not contributed previously. - [ ] I am an active contributor to CCExtractor. --- CCExtractor build fails when using build_hardsubx with ffmpeg 5.0 and tesseract 5.0, This PR is for fixing the build of hardsubx with ffmpeg 5.x and tesseract 5.x. - For FFmpeg, Basically `codec` is now deprecated in favor of `codecpar` and `av_register_all` is deprecated in many places - For Tesseract, now the tessdata is located in /usr/share/tesseract-ocr/5/ - For Hardsubx. I have changed the code for getting the codec to fix 0x0 widthxheight error. Resolves: #1418 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:20:50 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2208