Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Support for "-to" for inputs #420

Open
Speiger opened this issue Nov 10, 2024 · 2 comments
Open

No Support for "-to" for inputs #420

Speiger opened this issue Nov 10, 2024 · 2 comments

Comments

@Speiger
Copy link

Speiger commented Nov 10, 2024

Describe the issue
FFmpeg has no "-to" support, which is an absolute "end" position of where a stream should be cut.
"-t" is relative to the starting position, which can be useful but it requires knowledge of start and end position.

Expected behavior
To support "-to" argument :)

@Speiger Speiger changed the title No Support for "-to" No Support for "-to" for inputs Nov 10, 2024
@kokorin
Copy link
Owner

kokorin commented Nov 12, 2024

Thank you for reporting.
AFAIK -to is output option and BaseOutput has setOutputPosition method.

Did you mean that -to is also input option?

@Speiger
Copy link
Author

Speiger commented Nov 12, 2024

@kokorin according to the FFMpeg documentation it is for both input/output.
And i used it already for the input before.

-to position (input/output)
Stop writing the output or reading the input at position. position must be a time duration specification, see [(ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual](https://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax).

-to and -t are mutually exclusive and -t has priority.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants