Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ All contributors (by number of commits):
* Gemfield <gemfield@civilnet.cn>
* henri-gasc <henri.gasc@eurecom.fr>
* Jonathan Martin <homerunisgood@hotmail.com>
* HotariTobu <hotari24tools@gmail.com>
* Joshua <jbree@users.noreply.github.com>
* Johan Jeppsson Karlin <johjep@gmail.com>
* Kian-Meng Ang <kianmeng@cpan.org>
* Philipp Klaus <klaus@physik.uni-frankfurt.de>
Expand Down
7 changes: 4 additions & 3 deletions tests/test_remux.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
import av
import av.datasets

from .common import fate_suite
from .common import fate_suite, sandboxed


def test_video_remux() -> None:
input_path = av.datasets.curated("pexels/time-lapse-video-of-night-sky-857195.mp4")
output_path = sandboxed("remuxed.mkv")
input_ = av.open(input_path)
output = av.open("remuxed.mkv", "w")
output = av.open(output_path, "w")

in_stream = input_.streams.video[0]
out_stream = output.add_stream_from_template(in_stream)
Expand All @@ -24,7 +25,7 @@ def test_video_remux() -> None:
input_.close()
output.close()

with av.open("remuxed.mkv") as container:
with av.open(output_path) as container:
# Assert output is a valid media file
assert len(container.streams.video) == 1
assert len(container.streams.audio) == 0
Expand Down
Loading