Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/remux.py failed on Mac #1707

Closed
4 of 6 tasks
b04505009 opened this issue Jan 11, 2025 · 0 comments
Closed
4 of 6 tasks

examples/remux.py failed on Mac #1707

b04505009 opened this issue Jan 11, 2025 · 0 comments

Comments

@b04505009
Copy link

b04505009 commented Jan 11, 2025

IMPORTANT: Be sure to replace all template sections {{ like this }} or your issue may be discarded.

Overview

{{ A clear and concise description of what the bug is. }}

Example remux.py failed

Expected behavior

Got remuxed video

Actual behavior

Traceback:

  File "/Users/xizhen.liu/Downloads/test2.py", line 10, in <module>
    out_stream = output.add_stream(template=in_stream)
  File "av/container/output.pyx", line 47, in av.container.output.OutputContainer.add_stream
TypeError: add_stream() takes at least 1 positional argument (0 given)

Investigation

I tried using add_stream_from_template(). It runs successfully but the output video is not playable

Reproduction

Versions

  • OS: {{ e.g. macOS 10.14.5 }}
  • PyAV runtime:
python3 -m av --version
PyAV v14.0.1
library configuration: --disable-static --enable-shared --libdir=/tmp/vendor/lib --prefix=/tmp/vendor --disable-alsa --disable-doc --disable-libtheora --disable-libfreetype --disable-libfontconfig --disable-libbluray --disable-libopenjpeg --disable-mediafoundation --enable-gmp --disable-gnutls --enable-libaom --enable-libdav1d --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libspeex --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwebp --disable-libxcb --enable-libxml2 --enable-lzma --enable-zlib --enable-version3 --enable-libx264 --disable-libopenh264 --enable-libx265 --enable-gpl --enable-videotoolbox --extra-ldflags='-Wl,-ld_classic'
library license: GPL version 3 or later
libavcodec     61. 19.100
libavdevice    61.  3.100
libavfilter    10.  4.100
libavformat    61.  7.100
libavutil      59. 39.100
libswresample   5.  3.100
libswscale      8.  3.100
  • I am/tried using the binary wheels
  • I compiled from source

Research

I have done the following:

Additional context

@PyAV-Org PyAV-Org locked and limited conversation to collaborators Jan 11, 2025
@WyattBlue WyattBlue converted this issue into discussion #1709 Jan 11, 2025

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant