简体   繁体   中英

Is it possible to use Memory Stream how input file for FFMpeg?

I'm trying to work with ffmpeg in a .NET application. Is it possible to use a memory stream instead -i [string inputFilePath] to get some frames for example? Many thanks for any answer.

For this task will be good libvlc ( https://code.videolan.org/videolan/LibVLCSharp ), VLC (as I guess) use ffmpeg back-end, that's why for many task with stream media input file VLC will be perfect solution. For example to take snapshots or playing different video/audio streams from input memory-stream file. If you want to use ffmpeg with some stream input files, you must use Pipes, but if file cannot converting into pipes (eg .mp4 or.mkv), you must work directly with some libs (such as libavcodec etc). Hope this answer will help someone with the same problem. Good Luck.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM