smasherprog / screen_capture_lite

cross platform screen/window capturing library
MIT License
638 stars 156 forks source link

How to use the data which received from callback onFrameChanged() to feed to ffmpeg to generate a h.264 video? #80

Open xfirefly opened 4 years ago

xfirefly commented 4 years ago

How to use the data which received from callback onFrameChanged() to feed to ffmpeg to generate a h.264 video? Is this possible? Any suggestions are welcome. Thanks.

smasherprog commented 4 years ago

I havent used ffmeg but it should be simple to implement.

smasherprog commented 4 years ago

If you create a demo on this I can add it to the examples :)

xfirefly commented 4 years ago

OK, I will create a demo.

mtunahansarioglu commented 3 years ago

Are there any improvements in using ffmpeg? A demo would have been quite helpful. I'm wondering how to save in video format using this library. I run the examples, and I get the screenshots. But my goal is to capture these data as video files without saving them as images. Could you please show me a way? @xfirefly @smasherprog

flowerlove commented 3 years ago

I am creating a demo to feed data to ffmpeg to generate a h.264 video.

flowerlove commented 3 years ago

https://github.com/flowerlove/qt_screen_capture_lite I use screen_capture_lite,ffmpeg 4.4 and my personal lib rtspserver, capture the desktop to an rtsp stream.