Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Providing Openh264 file on Windows and MacOS works but linux doesn't

Abierto
#650 3 comentarios 0 reacciones 1 asignado Ver en GitHub

@asenyaev ya está trabajando en esto.

Desde el 7/4/2022.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

Expected behaviour

Writing to VideoWriter with fourcc avc1 while providing a openh264 file should be able to use the file on Linux and output via h264

Providing openh264-1.8.0-win64.dll on Windows allows this without issue
Providing libopenh264-1.8.0-osx64.4.dylib on MacOS allows this without issue
Providing libopenh264-1.8.0-linux64.4.so on Linux provides the error below

Related: #100

Actual behaviour

[ERROR:0@11.944] global /io/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (2767) open Could not find encoder for codec_id=27, error: Encoder not found
[ERROR:0@11.944] global /io/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp (2839) open VIDEOIO/FFMPEG: Failed to initialize VideoWriter

Steps to reproduce
import cv2
video_out = cv2.VideoWriter('test.mp4', cv2.VideoWriter_fourcc(*'avc1'), 25.0, (640, 480))

5.16.0-kali1-amd64
OpenCV 4.5.5 installed via Pip

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
Lenguaje dominante
Python
Estrellas
5.4k
Forks
1k
Merge medio
22 h 17 min
PR fusionados (30 d)
3

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de opencv/opencv-python

Todos los issues de opencv/opencv-python

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.