opencv / opencv/opencv-python

AviSynth 3 Script files (.AVS) not supported (ffmpeg library not included)

Open
#1,070 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

Expected behaviour

AVS3 files (AviSynth Script) can be parsed (codec_id=192).

Actual behaviour

[ERROR:0@0.004] global cap_ffmpeg_impl.hpp:1268 open Could not find decoder for codec_id=192
[ERROR:0@0.004] global cap_ffmpeg_impl.hpp:1317 open VIDEOIO/FFMPEG: Failed to initialize VideoCapture

Probably libuavs3d is missing in the included ffmpeg binaries.
Would be great if you could please include it or if anyone could tell me how to do it manually.

Steps to reproduce
v_file = cv2.VideoCapture(file_path, cv2.CAP_FFMPEG)
v_hgt = v_file.get(cv2.CAP_PROP_FRAME_HEIGHT)
v_wdt = v_file.get(cv2.CAP_PROP_FRAME_WIDTH)
  • opencv-python-4.10.0.84 on Windows 10 (x64)
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the repository's automated build scripts and the packaging of the included FFmpeg binaries for Windows. Check how optional codec dependencies are selected, then verify that AVS3 files using codec_id=192 open through cv2.VideoCapture; done means the dependency is included in the published package and the reported reproduction succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.