# 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:** 7

<div class="post-metadata">

**Author:** ![hamoid](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/hamoid/32/58_2.png) [@hamoid](https://discourse.processing.org/u/hamoid)\
**Post date:** [February 24, 2020, 10:12am UTC](https://discourse.processing.org/t/monitoring-process-of-ffmpeg-in-processing/17950/7 "2020-02-24T10:12:06Z")

</div>

You’re welcome 🙂

Could you maybe print `commands` to verify that everything looks correct? Could it be that the paths need to be absolute because the current working directory is different when running Processing?

You could also use `ProcessBuilder` instead of `exec` which is what I use in the VideoExportLibrary. There I use `redirectOutput` with `ffmpeg` and it logs stuff to a file. See [https://github.com/hamoid/video\_export\_processing/blob/master/src/com/hamoid/VideoExport.java#L632](https://github.com/hamoid/video_export_processing/blob/master/src/com/hamoid/VideoExport.java#L632)

---

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