File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import av
44import av .datasets
55
6- from .common import fate_suite
6+ from .common import fate_suite , sandboxed
77
88
99def test_video_remux () -> None :
1010 input_path = av .datasets .curated ("pexels/time-lapse-video-of-night-sky-857195.mp4" )
11+ output_path = sandboxed ("remuxed.mkv" )
1112 input_ = av .open (input_path )
12- output = av .open ("remuxed.mkv" , "w" )
13+ output = av .open (output_path , "w" )
1314
1415 in_stream = input_ .streams .video [0 ]
1516 out_stream = output .add_stream_from_template (in_stream )
@@ -24,7 +25,7 @@ def test_video_remux() -> None:
2425 input_ .close ()
2526 output .close ()
2627
27- with av .open ("remuxed.mkv" ) as container :
28+ with av .open (output_path ) as container :
2829 # Assert output is a valid media file
2930 assert len (container .streams .video ) == 1
3031 assert len (container .streams .audio ) == 0
You can’t perform that action at this time.
0 commit comments