popen to pass binary data between processes
问题 I am facing issue in passing binary data between processes. My program opens a pipe to ffmpeg using popen() and tries to capture the output and then stream it as HTTP server. I am doing something like this ffmpeg -i "input_video.avi" -ab 56 -ar 44100 -b 1500000 -r 25 -s 800x600 -f flv - (Output filename "-" diverts the output to stdout) After opening I am using fread() to read the pipe. I can read it and my program streams content, when I downloaded the file on my browser, it completed, but