microsoft / FFmpegInterop

This is a code sample to make it easier to use FFmpeg in Windows applications.
Apache License 2.0
1.29k stars 310 forks source link

faststart and get output streams #191

Open freewalks opened 6 years ago

freewalks commented 6 years ago

Hello,

is this a right way to have the fast start in the header

Windows.Foundation.Collections.PropertySet ffmpegOptions = new Windows.Foundation.Collections.PropertySet(); ffmpegOptions.Add("movflags", "faststart");

FFmpegMSS = FFmpegInteropMSS.CreateFFmpegInteropMSSFromStream(readStream, false, false, ffmpegOptions);

also, instead of FFmpegMSS.GetMediaStreamSource(), how can i get the output stream and send byte packages through a network socket

I am looking at the Custom I/O .. I guess this is handling for input streams.

Thanks for your help.

lukasf commented 6 years ago

FFmpegInterop is basically a playback library. What is your scenario exactly? You want to transcode files and send on-the-fly? I do not know if this is the right library for you. Maybe use ffmpeg directly?

hieuvn commented 6 years ago

He want to send stream to socket, it's seem in UWP app for casting media.