# Monitoring process of ffmpeg in processing

**URL:** https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950
**Category:** Coding Questions
**Created:** [February 20, 2020, 9:08am UTC](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950 "2020-02-20T09:08:13Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![tribblesontoast](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@tribblesontoast](https://discourse.processing.org/u/tribblesontoast)
#### Post date: [February 23, 2020, 12:36am UTC](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950/3 "2020-02-23T00:36:17Z")

</div>

So upon second look at Hamoids’ example I saw that he was getting the stdInput and stdError using the code below.  
I’ve tried it and i get nothing at all once it prints the “# command output”, not even empty lines.  
I’m pretty sure this is what i need, it just doesn’t work.

Any ideas?  
@hamoid, are you kicking about?

Thanks,  
Toast

```auto
BufferedReader stdInput = new BufferedReader(new 
      InputStreamReader(proc.getInputStream()));

    BufferedReader stdError = new BufferedReader(new 
      InputStreamReader(proc.getErrorStream()));

    println("# Command output");
    String s = null;
    while ((s = stdInput.readLine()) != null) {
      println(s);
    }

    println("# Command errors");
    while ((s = stdError.readLine()) != null) {
      println(s);
    }
  } 

```

---

_[View the full topic](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950)._
