Skip to content

Gource does not stop simulation when reading from STDIN #334

@Crown0815

Description

@Crown0815

I have a powershell script to generate a mp4 video using gource. The script looks like this:

$Command = @"
`$CombinedLog ``
| gource ``
    --load-config ./gource.config ``
    --path - ``
    --log-format custom ``
    --seconds-per-day $SecondsPerDay ``
    --output-ppm-stream - ``
| ffmpeg ``
    -i - ``
    -y ``
    -vcodec ppm ``
    -vcodec libx264 ``
    -preset veryfast ``
    -pix_fmt yuv420p ``
    -crf 1 ``
    -filter:v "setpts=PTS/2" ``
    -threads 0 ``
    -bf 0 ``
    $VideoOutput
"@

# Execute the command
if ($PSCmdlet.ShouldProcess($CombinedLog, "$Command")){
    Invoke-Expression $Command
}

Overall the script does what it should. The issue I have is that at the end of the $CombinedLog, the gource simulation does not terminate.
The reason I use a $CombinedLog is that I am merging multiple repositories.
Is there any way to tell gource that the stream is finished?
The stream currently consists of concatenated newline-separated lines in a single string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions