22:11
I'm facing the error in the title which crashes my thread.
int decode(AVPacket* pPacket)
int count = 0;
int response = avcodec_send_packet(_pCodecContext, pPacket);
while(response >= 0)
AVFrame* pFrame = av_frame_alloc();
response = avcodec_receive_frame(_pCodecContext, pFrame);
This is the general structure of where I'm decoding the video into frames.
I do use seek_frame to change position around avstream to get different frames with this:
avformat_seek_file(_pFormat, -1, INT64_MIN, location, INT64_MAX, (...)
20:06
My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the code:
ⓐinteractions.slash_command(
name="press",
description="Press the button"
)
async def press(ctx: interactions.ComponentContext):
await ctx.send(f"ctx.author.mention has pressed the button")
vc = ctx.author.voice.channel
player = vc.create_ffmpeg_player('audiopath', after=lambda: print('done'))
player.start()
(...)