Skip to content

Adjust volume does not work? #418

Closed as not planned
Closed as not planned
@edwardlee23

Description

@edwardlee23

The filename is *.mp4, and the volume is set to 0.0:
When I use ffmpeg.input(filename).audio.volume(volume=volume), the final output seems to retain the original volume. However, after setting the volume as a string: "0.0", it mutes as expected.

I noticed the ignore_default comment: Convert the values of the dictionary to strings., but it actually converts them to a tuple of objects.

def ignore_default(
kwargs: dict[str, str | int | float | bool | Default]
) -> tuple[tuple[str, str | int | float | bool | LazyValue], ...]:
"""
Convert the values of the dictionary to strings.
"""
return tuple((k, v) for k, v in kwargs.items() if not isinstance(v, Default))

Is this a bug, or am I misusing it? Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions