Skip to content

ffmpegwrapper fails to process files which starts with '-' #5

@lxylxy123456

Description

@lxylxy123456

from ffmpegwrapper import FFmpeg, Input, Output
When running FFmpeg('ffmpeg', Input('a.mp4'), Output('-b.mp4')), ffmpeg gives "Unrecognized option 'b.mp4'."
It seems that the command becomes ffmpeg -i a.mp4 -b.mp4
But the command should be ffmpeg -i a.mp4 -- -b.mp4 to prevent the issue (by adding --).

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