leandromoreira / ffmpeg-libav-tutorial

FFmpeg libav tutorial - learn how media works from basic to transmuxing, transcoding and more. Translations: πŸ‡ΊπŸ‡Έ πŸ‡¨πŸ‡³ πŸ‡°πŸ‡· πŸ‡ͺπŸ‡Έ πŸ‡»πŸ‡³ πŸ‡§πŸ‡·
https://github.com/leandromoreira/ffmpeg-libav-tutorial
BSD 3-Clause "New" or "Revised" License
9.78k stars 937 forks source link

Encode video frame by frame #84

Open devildonkey1392 opened 3 years ago

devildonkey1392 commented 3 years ago

HI,

Can I encode a video frame by frame rather than whole video?

How can I do that?

Thanks!

leandromoreira commented 3 years ago

Hi @devildonkey1392 I don't know if I got your question right but here's the snippet doing exactly what you're asking for https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/master/3_transcoding.c#L233-L244

devildonkey1392 commented 3 years ago

I want to feed glbuffer as input instead of the file and then encode the glbuffer.

leandromoreira commented 3 years ago

@devildonkey1392 I think this might help you http://dranger.com/ffmpeg/