Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wanliAlex committed Oct 3, 2024
1 parent 82b246f commit cc02da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/marqo/tensor_search/streaming_media_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ def fetch_audio_chunk(url: str, start_time: float, duration: float, output_file:
ffmpeg_command = [
'ffmpeg', '-y' # Enable overwrite
'-v', 'error', # Suppress warnings and other output
'-i', url, # Input file
'-i', str(url), # Input file
'-ss', str(start_time), # Start time
'-t', duration, # Duration
'-t', str(duration), # Duration
'-acodec', 'pcm_s16le', # Audio codec
'-ar', '44100', # Audio sample rate
'-f', 'wav', # Output format
Expand Down
2 changes: 2 additions & 0 deletions tests/s2_inference/test_video_ffmpeg_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
class TestVideoFFmpegDecode(unittest.TestCase):
def setUp(self):
self.output_file = "/tmp/test.mp4"
if os.path.exists(self.output_file):
os.remove(self.output_file)

def tearDown(self):
if os.path.exists(self.output_file):
Expand Down

0 comments on commit cc02da4

Please sign in to comment.