Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
This repository was archived by the owner on May 22, 2025. It is now read-only.

ffprobe hangs #1089

@laggingreflex

Description

@laggingreflex

Version information

  • fluent-ffmpeg version: 2.1.2
  • ffmpeg version: 4.2
  • OS: Win10

Code to reproduce

await ffprobe('input.mp4')

This sometimes never resolves.

(note: if the problem only happens with some inputs, include a link to such an input file)

It's unpredictable. Sometimes it works with same files.

Expected results

Should work as usual.

Observed results

Sometimes ffprobe never resolves

Checklist

  • I have read the FAQ

  • I tried the same with command line ffmpeg and it works correctly (hint: if the problem also happens this way, this is an ffmpeg problem and you're not reporting it to the right place)

    running ffprobe.exe via command-line on same files works 100% of the time without fail. Only when running ffprobe() from fluent-ffmpeg does the problem ocurr

  • I have included full stderr/stdout output from ffmpeg

    Not sure how to get this but I'm guessing it's normal.

I think the issue is that the process (ffprobe.exe spawned from node) is for some reason not exiting (ever), and thus leaving the code in a hung state.

I've come up with a hacky solution that makes it work in the linked PR as a demo where problem exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions