Skip to main content

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

Metadata

Release files for videoslice 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for videoslice 0.1.2
File Size Uploaded
videoslice-0.1.2.tar.gz 3.9 kB Details

Release files / videoslice-0.1.2.tar.gz

Download URL videoslice-0.1.2.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9ebd79ed8ad23ae709bba51114cab2f7aa47578a23aee6ca7c2c9a07befaf16b
BLAKE2b-256 checksum
How to use checksums
e8af97ca39d0cca9ab7e0d0585394872354d673f8db174a56da36f4c3bd14cf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.3

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page