Skip to content

Support of input type "std input" #434

Closed

Description

@theojk1

Problem/Use Case

PySceneDetect is designed to process one input file only. Most of the files I want to process are splited in 1GB chunks (vob files).

Solutions

Other programs can be called with an input type std-input. Which means the frames of the video input are read from the std input and this is filled by a pipe by another program (in my case it would be vaporSynth).

Proposed Implementation:

I use this for the finale encoding of the videos with x265. This encoder program has a command "--input -" which tells it, to read from std input pipe instead of an input file

Alternatives:

Alternative would be the direct support of AviSynth-API. So the inputfile would be a AviSynth-Script file.

Examples:
https://www.videolan.org/developers/x265.html
https://www.vapoursynth.com/

Activity

  1. Breakthrough commented on Oct 18, 2024

    @Breakthrough
    Owner

    This is possible with the Python API if you use the PyAV backend. How do you specify the pixel format when working with videos like this?

    I'm open to integrating this into the command-line but I'm not that familiar with processing videos this way. It should be possible to create a new backend with the AviSynth Python API.

  2. Breakthrough commented on Feb 1, 2025

    @Breakthrough
    Owner

    Quick update: the latest version of the opencv-python package seems to support input from a byte stream now, so theoretically tthis should be possible with more backends soon.

    For the time being input via stdin is not supported by the command-line. However, it is possible using the Python API and the PyAV backend using the path_or_io argument.

  3. EnesSoydan commented on Nov 8, 2026

    @EnesSoydan
    Contributor

    I'd like to take this on, staged #598 for this.

  4. added a commit that references this issue on Nov 10, 2026
    4605bc2
  5. added this to the 0.8 milestone on Nov 10, 2026
  6. modified the milestones: 0.8, 0.7.4 on Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions