title: Output of ffmpeg into HDFS directly
body: <p>I have a requirement in which I have to convert a RTSP stream into mp4 video or frames (as the case may be) &amp; want to save them in HDFS (Hadoop Filesystem).   </p>
  
  <p>For this I have tried using ffmpeg to convert the RTSP stream into mp4 video/frames &amp; saving the video/frames in local filesystem. Like below -<br>
  <code>ffmpeg -i rtsp://10.0.37.150:8554/big_bunny.mkv -r 1 -f image2 frames/big_frame-%3d.bmp</code><br>
  <code>ffmpeg -i rtsp://10.0.37.150:8554/big_bunny.mkv big_bunny.mp4</code>    </p>
  
  <p>And then saving the video/frames (stored in local filesystem) into hdfs using put command -<br>
  <code>hadoop fs -put frames/ /user/maddy/</code><br>
  <code>hadoop fs -put big_bunny.mp4 /user/maddy/</code>    </p>
  
  <p>This is working. But I want to do this directly (that is in one step without saving the required files in local filesystem)</p>
  
  <p>I tried something (like below command) but it is not working<br>
  <code>ffmpeg -i rtsp://10.0.37.150:8554/big_bunny.mkv hdfs://localhost:9000/user/maddy/big_bunny.mp4</code>     </p>
  
  <p>I get this error -<br>
  <code>hdfs://localhost:9000/user/maddy/big_bunny.mp4: Protocol not found</code>    </p>
  
  <p>So is there any way in which using ffmpeg I can directly save these files into hdfs without first saving in my local filesystem.<br>
  Or is there any other tool through which I can achieve this?</p>
  
  <p>EDIT : </p>
  
  <p>Tried <code>ffmpeg -i rtsp://10.0.37.150:8554/big_bunny.mkv - | hadoop fs -put - /user/maddy/</code><br>
  as suggested by @incBrain    </p>
  
  <p>But received this error -<br>
  <code>[NULL @ 0xce37a0] Unable to find a suitable output format for 'pipe:'
  pipe:: Invalid argument</code></p>