Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evgenii-m committed Oct 28, 2024
1 parent 513846c commit fd4f87a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ RUN apt-get install --fix-missing -y curl ffmpeg libavformat-dev libavdevice-dev
#Updating pip
RUN python3 -m pip install -U pip

MKDIR radio_data

COPY . .

RUN python3 -m pip install -U -r requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ async def start_radio_by_stream_url(self, station_stream_url):
group_call.input_filename = f'radio_data/radio-{CHAT_ID}.raw'
if not group_call.is_connected:
await self.start_call()
ffmpeg_log = open("logs/ffmpeg.log", "w+")
ffmpeg_log = open("ffmpeg.log", "w+")
command=["ffmpeg", "-y", "-i", station_stream_url, "-f", "s16le", "-ac", "2",
"-ar", "48000", "-acodec", "pcm_s16le", group_call.input_filename]

Expand Down

0 comments on commit fd4f87a

Please sign in to comment.