Skip to content

Commit

Permalink
Encode audio to Opus (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
j0sh authored Feb 27, 2025
1 parent 609ddc6 commit 0485d6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runner/app/live/trickle/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def task_done(t: asyncio.Task):
live_tasks.remove(t)
task.add_done_callback(task_done)

encode_thread = threading.Thread(target=encode_av, args=(image_generator, sync_callback, get_metadata))
encode_thread = threading.Thread(target=encode_av, args=(image_generator, sync_callback, get_metadata), kwargs={"audio_codec":"libopus"})
encode_thread.start()
logging.debug("run_publish: encoder thread started")

Expand Down

0 comments on commit 0485d6c

Please sign in to comment.