Skip to content

Allow passing -t / time limit parameter to FILE consumer #1690

@pyahmed

Description

@pyahmed

Description

Allow passing the -t parameter (as is used in ffmpeg) to the file consumer. It would allow recording precise durations, without having to send a REMOVE command at the right time. Right now starting a recording with the -t parameter (s. below) doesn't really work:
ADD 1 FILE "Output.mxf" -codec:v dnxhd -b:v 120M -flags:v +ilme+ildct -threads:v 4 -filter:v format=yuv422p,interlace -t 4

CasparCG warns you:
Unused option t=4

it will keep recording until you remove the consumer:
REMOVE 1 FILE "Output.mxf"

PS: there is also a hardcoded parameter when mov/mp4 container is used:
Unused option preset=veryfast:v

Solution suggestion

If possible pass the -t parameter to ffmpeg, so that it stops when the time limit is reached.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions