Skip to content

Commit

Permalink
Changing libmp3lame to native aac audio codec
Browse files Browse the repository at this point in the history
  • Loading branch information
YpNo committed Apr 15, 2024
1 parent 6bcfb24 commit 547cafd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ async def _start_idle_stream(self):
self.stream = await asyncio.create_subprocess_exec(
*['ffmpeg', '-re', '-stream_loop', '-1', '-i', 'idle.mp4',
'-c:v', 'copy',
'-c:a', 'libmp3lame', '-ar', '44100', '-b:a', '8k',
'-c:a', 'aac', '-ar', '44100', '-b:a', '8k',
'-bsf', 'dump_extra', '-f', 'mpegts', 'pipe:'],
stdin=subprocess.DEVNULL,
stdout=self.proxy_writer,
Expand Down Expand Up @@ -191,7 +191,7 @@ async def _start_stream(self):

self.stream = await asyncio.create_subprocess_exec(
*['ffmpeg', '-i', stream, '-c:v', 'copy',
'-c:a', 'libmp3lame', '-ar', '44100',
'-c:a', 'aac', '-ar', '44100',
'-bsf', 'dump_extra', '-f', 'mpegts', 'pipe:'],
stdin=subprocess.DEVNULL,
stdout=self.proxy_writer,
Expand Down

0 comments on commit 547cafd

Please sign in to comment.