# api\_message='Failed to assemble \`video\`... Detected runtime parameter \`video\` defined as \`WorkflowImage\` that is invalid. Failed on input validation. Details: NumPy image type is not supported in this configuration of \`inference\`

**URL:** <https://discuss.roboflow.com/t/api-message-failed-to-assemble-video-detected-runtime-parameter-video-defined-as-workflowimage-that-is-invalid-failed-on-input-validation-details-numpy-image-type-is-not-supported-in-this-configuration-of-inference/10935>\
**Category:** 🤝  Community Help\
**Created:** [August 15, 2025, 3:09pm UTC](https://discuss.roboflow.com/t/api-message-failed-to-assemble-video-detected-runtime-parameter-video-defined-as-workflowimage-that-is-invalid-failed-on-input-validation-details-numpy-image-type-is-not-supported-in-this-configuration-of-inference/10935 "2025-08-15T15:09:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erik\_Broberg](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/erik_broberg/32/8000_2.png) [@Erik\_Broberg](https://discuss.roboflow.com/u/Erik_Broberg)\
**Post date:** [August 15, 2025, 3:09pm UTC](https://discuss.roboflow.com/t/api-message-failed-to-assemble-video-detected-runtime-parameter-video-defined-as-workflowimage-that-is-invalid-failed-on-input-validation-details-numpy-image-type-is-not-supported-in-this-configuration-of-inference/10935/1 "2025-08-15T15:09:40Z")

</div>

_Describe your question/issue here! (delete this when you post)_

- **Project Type: Object Detection**
- **Operating System & Browser: MacOS / Chrome**
- **Project Universe Link or Workspace/Project ID: N/A**

I’m having some trouble running a video processing workflow. When I try to run a python file that uses client.run\_workflow on an mp4 file on my computer, it gives me the above error. I’m confused because the error is seemingly telling me that I gave it a NumpPy image when I actually gave it an mp4 video. My workflow is configured to handle video files, but this doesn’t seem to have to do with any of the blocks themselves, anyway. Is it because client.run\_workflow can’t pass a video to my workflow, so it instead gives it a single NumpPy image?

---

<div class="post-metadata">

**Author:** ![Ford](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/ford/32/7747_2.png) [@Ford](https://discuss.roboflow.com/u/Ford)\
**Post date:** [August 15, 2025, 8:30pm UTC](https://discuss.roboflow.com/t/api-message-failed-to-assemble-video-detected-runtime-parameter-video-defined-as-workflowimage-that-is-invalid-failed-on-input-validation-details-numpy-image-type-is-not-supported-in-this-configuration-of-inference/10935/2 "2025-08-15T20:30:53Z")

</div>

That is correct, when running inference on a video, I suggest implementing an Inference Pipeline, not client.run\_workflow, to decode the .mp4 into frames and send each frame to the workflow.

Here is the Roboflow how to guide: [Inference Pipeline](https://inference.roboflow.com/using_inference/inference_pipeline/?utm_source=chatgpt.com#how-to-provide-a-custom-inference-logic-to-inferencepipeline)

Happy building!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [August 22, 2025, 8:31pm UTC](https://discuss.roboflow.com/t/api-message-failed-to-assemble-video-detected-runtime-parameter-video-defined-as-workflowimage-that-is-invalid-failed-on-input-validation-details-numpy-image-type-is-not-supported-in-this-configuration-of-inference/10935/3 "2025-08-22T20:31:32Z")

</div>

Closed on August 22, 2025, 8:31pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
