This mini project was a result of my own curiosity. I wanted the youtube timestamps features available for oflline videos also but when you download videos from youtube they won't come pre-embeded.
So, i decided to do this.
If any issue occurs, i am more than happy to help you. Join this telegram group for any kind of reporting or support.
-
python-magic-bin python module is required for file validation. use the bellow command to install it.
pip3 install python-magic-bin
python-magic-bin is prefered because it comes pre configured with all required dlls and other stuff. python-magic module takes additional setups which is PIA.
-
linux users can install it using default package manager.
sudo apt install ffmpeg
mac and windows users might need to download and setup ffmpeg and ffprobe from this site.
Git clone the repo to your machine, cd into the chapter-embedding directory and follow the bellow steps.
hope you already satisfy the requirements.
-
start the execution of main.py through terminal as follows.
-
Enter the video file's path
-
Enter the timestamps text file's path.
Timestamps can be copied from youtube video description or can be created. They must be in the following shown format.
-
If everything goes fine you should end up with a chapters embeded video file in the directory of video's+output
Hope it was usefull in any way.