You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-26Lines changed: 1 addition & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,32 +44,7 @@ To use the notebooks, two options :
44
44
- Use Jupyter directly in its web browser interface : from the terminal, activate the conda environment :`conda activate ffd`, then launch Jupyter :`jupyter lab /path/to/the/notebooks/notebook.ipynb`
45
45
46
46
## Using the video_cutter script
47
-
This script (`/scripts/video_cutter.py`) is used to cut long recording containing multiple stimulations into single-stimulation clips.
48
-
49
-
It uses the video file and a corresponding stimulation trace stored as a text or binary file.
50
-
51
-
To use it, first install required dependencies following steps 1-5 in the [Quick start](#quick-start) section.
52
-
Then, you need to install ffmpeg on your system. If it is not the case already you can follow this for Windows :
53
-
1. Download the latest "essential" build from [here](https://www.gyan.dev/ffmpeg/builds/). Unzip it somewhere relevant (in a "Programs" directory or something), and copy the path to the `bin` folder (making sure it contains both 'ffmpeg.exe' and 'ffprobe.exe').
54
-
2. Paste this path in the `FFMPEG_BIN_DIR` variable. In the event ffmpeg is added to your PATH (eg. `ffmpeg` is recognised in a terminal), you can leave `FFMPEG_BIN_DIR` set to an empty string (`""`).
55
-
3. Fill in the parameters according to your need.
56
-
3. From the terminal with the ffd environment activated, browse to the script location :
57
-
```bash
58
-
conda activate ffd
59
-
cd path/to/features-from-dlc/scripts/
60
-
```
61
-
62
-
And run the script on your videos :
63
-
```bash
64
-
python video_cutter.py path/to/your/videos
65
-
```
66
-
67
-
The script is built as a command line interface (cli), for detailed usage, use :
68
-
```bash
69
-
python video_cutter --help
70
-
```
71
-
72
-
The script processes all videos found in the input directory that have a txt/csv/bin file with the same name. The latter is read to determine the stimulation onsets. Extracted clips are created in {video-name}-cropped folder and are numbered from 0 to the number of stimulations found in the stimulation file.
47
+
This moved in a standalone package, see [here](https://github.com/TeamNCMC/videocutter).
73
48
74
49
### Notes
75
50
- The format of txt files exported from Labscribe depends on its version... Sometimes the values are separated by commas (`,`), sometimes tabulations. To be sure, open the file with a text editor and see if there are "," or big spaces between values on a row. Edit the `SEP` parameter accordingly in the script.
0 commit comments