[DEPRECATED] Return a list of FrameTimecodes of the detected scene changes/cuts. Unlike get_scene_list, the cutting list returns a list of FrameTimecodes representing the point in the input video where a new scene was detected, and thus the frame where the input should be cu
(
self,
show_warning: bool = True,
)
| 673 | # |
| 674 | |
| 675 | def get_cut_list( |
| 676 | self, |
| 677 | show_warning: bool = True, |
| 678 | ) -> CutList: |
| 679 | """[DEPRECATED] Return a list of FrameTimecodes of the detected scene changes/cuts. |
| 680 | |
| 681 | Unlike get_scene_list, the cutting list returns a list of FrameTimecodes representing |
| 682 | the point in the input video where a new scene was detected, and thus the frame |
| 683 | where the input should be cut/split. The cutting list, in turn, is used to generate |
| 684 | the scene list, noting that each scene is contiguous starting from the first frame |
| 685 | and ending at the last frame detected. |
| 686 | |
| 687 | Arguments: |
| 688 | show_warning: If set to False, suppresses the error from being warned. In v0.7, |
| 689 | this will have no effect and the error will become a Python warning. |
| 690 | |
| 691 | Returns: |
| 692 | List of FrameTimecode objects denoting the points in time where a scene change |
| 693 | was detected in the input video, which can also be passed to external tools |
| 694 | for automated splitting of the input into individual scenes. |
| 695 | |
| 696 | """ |
| 697 | if show_warning: |
| 698 | warnings.warn( |
| 699 | "get_cut_list() is deprecated and will be removed in a future release.", |
| 700 | DeprecationWarning, |
| 701 | stacklevel=2, |
| 702 | ) |
| 703 | return self._get_cutting_list() |
no test coverage detected