This project designed to extract structure from video media elements, to construct scene and shot indices, and to build an interactive media player to explore the content in a more intuitive way.
The project runs with the following steps:
- building: build the interactive media player implemented in Java
- compressing: compress raw media into playable format
- analyzing: extract structure and construct indices for the media
This Project requires the following to run:
python
ffmpeg
maven
The following python packages are required to run the project, use the following command:
python3 -m pip install opencv-python librosa scenedetect
Installation on Windows can be done using chocolatey with the following steps:
- Install
chocolateyby following the instructions at https://chocolatey.org/install - Open a powershell window as administrator and run the following command:
choco install python3choco install ffmpegchoco install maven
Installation on Mac can be done using homebrew with the following steps:
- Install
homebrewby following the instructions at https://brew.sh/ - Open a terminal window and run the following command:
brew install python3 ffmpeg maven
Installation on Linux can be done using apt-get by running sudo apt-get install python3 ffmpeg maven
Please run MyProject.py in the project root directory:
python3 .\MyProject.py <input_video_file_path> <input_audio_file_path> -flags
The optional flags accepts any combination of the following, when you are running the project multiple times:
-bskip build-cskip media compress-askip analyze
Example:
-abcskip build, compress, and analyze
If you want to adjust the video display size, please change the SCALE_FACTOR variable in org.projmedia.domain.Dimensions.