fix some bugs

This commit is contained in:
deflax 2024-01-18 02:26:17 +02:00
parent bd8d57b6b0
commit 24d684564e
2 changed files with 1 additions and 2 deletions

View file

@ -152,7 +152,6 @@ async def query_database():
)
embed.set_thumbnail(url=thumb_url)
embed.add_field(name='Download MP4', value=f'[Download Video]({video_url})', inline=False)
embed.set_author(name='DeflaxTV', icon_url=bot.user.avatar_url)
# Sending the embed to the channel
await live_channel.send(embed=embed)

View file

@ -214,7 +214,7 @@ def exec_recorder(stream_id, stream_hls_url):
# Generate thumbnail image from the recorded mp4 file
ffmpeg_thumb = (
FFmpeg()
.input(video_output, thumb_skip_time)
.input(video_output, ss=thumb_skip_time)
.filter('scale', thumb_width, -1)
.output(thumb_output, vframes=1)
)