Skip to main content

A tool to slice YouTube videos into smaller segments

Project description

Videoslice

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.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

videoslice-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: videoslice-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f91ba6ac45f66d82914bea9a3963ce2ff75015b9b960b39c08710a72894fb292
MD5 10f9e99c47bc809006a6758730bed26e
BLAKE2b-256 6f1f1f26acf28d22340901ee1afc834f5512575d9bce76812b72144c8a638239

See more details on using hashes here.

File details

Details for the file videoslice-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for videoslice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 192dff24de7b8fe1601559b08524d4eb8a9c1d6ce6b61b2a7a493ff913bd1493
MD5 6dd3a9e503bc286b3d94f8a9ede5b190
BLAKE2b-256 c0c1ff6df8c719601518af75afd2026b41484d510ba4b98a0f6bdd6346b27263

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