Skip to content

Instantly share code, notes, and snippets.

@salamanders
Last active August 21, 2019 20:37
Show Gist options
  • Select an option

  • Save salamanders/2b15ff27ca230f3ae08d703c13e05cd9 to your computer and use it in GitHub Desktop.

Select an option

Save salamanders/2b15ff27ca230f3ae08d703c13e05cd9 to your computer and use it in GitHub Desktop.

Revisions

  1. salamanders revised this gist Aug 21, 2019. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion split_videos.sh
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,11 @@ brew update && brew upgrade
    pip install --upgrade pip
    pip install scenedetect[opencv,progress_bar]
    mkdir out

    # Optionally tune the threshold, using the content_val column
    scenedetect -i clip1.mov -o ./out --stats my_video.stats.csv detect-content

    # Write the files
    scenedetect -i clip1.mov [...-i clip2.mov] -o ./out detect-content split-video --copy
    # or 1 video without the --copy

    # or for larger chunks: scenedetect -i clip1.mov -o ./out detect-content -m 120 -t 90 split-video --high-quality
  2. salamanders created this gist Aug 21, 2019.
    6 changes: 6 additions & 0 deletions split_videos.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    brew update && brew upgrade
    pip install --upgrade pip
    pip install scenedetect[opencv,progress_bar]
    mkdir out
    scenedetect -i clip1.mov [...-i clip2.mov] -o ./out detect-content split-video --copy
    # or 1 video without the --copy