Skip to main content

A tool to slice YouTube videos into smaller segments

Project description

Videoslice

PyPI - Version PyPI - Downloads GitHub Issues or Pull Requests GitHub License GitHub code size in bytes X (formerly Twitter) Follow

Videoslice is a Python package that provides a simple way to slice videos into smaller segments based on specified time intervals.

Use it to create clips from longer videos, making it easier to manage and share specific parts of your video content.

Installation

You can install Videoslice using pip:

pip install videoslice

Usage

Here's a basic example of how to use Videoslice:

[!NOTE] Make sure you have ffmpeg installed on your system, as Videoslice relies on it for video processing.

  1. Download video from a YouTube URL + slice it:
videoslice --url https://youtu.be/sLaxGAL_Pl0 \
--start 00:00:10 \
--end 00:00:20 \
--input input_video.mp4 \
--output output_video.mp4 \
--log
  1. Slice an existing video file:
videoslice --start 00:01:00 \
--end 00:01:30 \
--input existing_video.mp4 \
--output sliced_video.mp4 \
--log

Command Line Options

You can view the command line options and their descriptions by running:

videoslice --help
Command Line Options
usage: videoslice [-h] --start START --end END --input INPUT --output OUTPUT --url URL [--log]

Video slicing utility

options:
  -h, --help            show this help message and exit
  --start START, -s START
                        Start time in HH:MM:SS format
  --end END, -e END     End time in HH:MM:SS format
  --input INPUT, -i INPUT
                        Path to save the downloaded video file
  --output OUTPUT, -o OUTPUT
                        Path to save the sliced video
  --url URL, -u URL     URL of the video to download
  --log, -l             Enable logging of yt-dlp command and output

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

videoslice-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file videoslice-0.1.2.tar.gz.

File metadata

  • Download URL: videoslice-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for videoslice-0.1.2.tar.gz
Algorithm Hash digest
SHA256 9ebd79ed8ad23ae709bba51114cab2f7aa47578a23aee6ca7c2c9a07befaf16b
MD5 c8d556c530294f61381ed5ad734071c0
BLAKE2b-256 e8af97ca39d0cca9ab7e0d0585394872354d673f8db174a56da36f4c3bd14cf3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page