Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

BeastImran/chapter-embedding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chapter embedding

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.

Requirments

  1. python3

    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.

  2. ffmpeg

    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.

Steps to perform

Git clone the repo to your machine, cd into the chapter-embedding directory and follow the bellow steps.

hope you already satisfy the requirements.

  1. start the execution of main.py through terminal as follows.

    python3 main.py

  2. Enter the video file's path

    Enter videos path

  3. 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.

    timestamps format example

    text file path

  4. If everything goes fine you should end up with a chapters embeded video file in the directory of video's+output

    final output



Final thoughts

Hope it was usefull in any way.

About

Did for my self :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages