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()
(...)
18:32
Based on this article it seems that it is possible to use FFMPEG to detect scene change in videos:
http://www.luckydinosaur.com/u/ffmpeg-scene-change-detector
Now I have a video that displays a book text and when the text (word or sentence) is spoken it gets highlighted.
Something like this audio book: https://youtu.be/lA7L6ZNVKjc
I need to know the timestamp when the text gets highlighted (hence scene change), this will allow me to add timestamp tags on my youtube video, so it becomes easier for listeners to navigate through the audiobook.
What is (...)