cirosantilli/cpp-cheat

ffmpeg/encode.c doest not work with ffmpeg 4.1.3 and platform android, only the first frame is encoded correctly

Opened this issue · 2 comments

Hi Ciro:
With ffmpeg 4.1.3 and platform android, method encode_example in encode.c seems to work wrong, it only encode first frame successfully.
Log of write frames as following:
image

Hi Charlie,

Sorry but I don't know :-(

I have just tried it out on Ubuntu 19.04 adm64 which happens to have the exact same ffmpeg 4.1.3, and it sill worked on master 68fec32

But most likely I'm doing some undefined behaviour in my naive code.

I would try to first search for any official in-tree examples that might work, and then also try asking the mailing list / stack overflow.

Do let me know if you find something out.

st235 commented

@charliecha do u have any updates here? I have the same issues with ffmpeg.