title: fork() and pipes() in c
body: <p>What is <code>fork</code> and what is <code>pipe</code>?
  Any scenarios explaining why their use is necessary will be appreciated.
  What are the differences between <code>fork</code> and <code>pipe</code> in C? 
  Can we use them in C++?</p>
  
  <p>I need to know this is because I want to implement a program in C++ which can access live video input, convert its format and write it to a file.
  What would be the best approach for this?
  I have used x264 for this. So far I have implemented the part of conversion on a file format.
  Now I have to implement it on a live stream.
  Is it a good idea to use pipes? Capture video in another process and feed it to the other?</p>