Skip to content

examples/remux.py failed on Mac #1707

@b04505009

Description

@b04505009

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions