getting mulitple images from a single stream piped from ffmpeg stdout
问题 I start a process to retrieve a few frames from a video file with ffmpeg, ffmpeg -i "<videofile>.mp4" -frames:v 10 -f image2pipe pipe:1 and pipe the images to stdout - var cmd = Process.Start(p); var stream = cmd.StandardOutput.BaseStream; var img = Image.FromStream(stream); Getting the first image this way works, but how do I get all of them? 回答1: OK this was gobspackingly easy, kind of embarrassed I asked here. I'll post the answer in case it will help anyone else. The first few bytes in