radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
357 stars 56 forks source link

Encode/Decode without putting/taking from a file #21

Closed slymatt closed 3 years ago

slymatt commented 4 years ago

Hello,

Do you have a way to encode and decode without having the data in a file. I am trying to send the encoded byte data over a network. I have the bitmap data stored in a ImageData but dont know how to move on from there.

Thanks

Dzoge commented 4 years ago

I have a similar issue, I am reading raw camera output in RaspberryPI using MMALSharp library and want to read frames in Bitmap format for further processing.

radek-k commented 4 years ago

Currently, only local files and decoding from a web URL are supported, but I want to implement the following features in the future:

@Dzoge Why do you want to use FFMediaToolkit to get frames from Raspberry PI camera? You should use an existing OutputCaptureHandler from MMALSharp or write a new one to get the bitmaps for processing.