Skip to content

Commit

Permalink
add option cache
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemia committed May 14, 2024
1 parent cdd582c commit 8d09197
Show file tree
Hide file tree
Showing 4 changed files with 1,717 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/ffmpeg/common/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,3 +306,7 @@ def is_global_option(self) -> bool:
@property
def is_support_stream_specifier(self) -> bool:
return bool(self.flags & FFMpegOptionFlag.OPT_SPEC)

@dataclass(frozen=True, kw_only=True)
class FFMpegOptionList:
options: tuple[FFMpegOption, ...]
9 changes: 9 additions & 0 deletions src/ffmpeg/parser.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import shlex


def parse(cmd: str):
arguments = shlex.split(cmd)

assert arguments[0] == "ffmpeg"


Loading

0 comments on commit 8d09197

Please sign in to comment.