Skip to main content

DVD and other multimedia tools

Project description

https://img.shields.io/pypi/v/jaraco.media.svg https://img.shields.io/pypi/pyversions/jaraco.media.svg tests Ruff https://img.shields.io/badge/skeleton-2024-informational

concat

FFmpeg provides a routine to concatenate media files. Unfortunately, the UI for that routine is so bad that even ffmpeg provides multiple, platform-specific techniques to generate the input. jaraco.media.compat, in contrast, takes a number of input files and optionally an output file and input filter, creates the input file in its required syntax and then runs ffmpeg against that file. Example:

$ python -m jaraco.media.concat /Volumes/drone/DCIM/100MEDIA/DJI_*.MP4 -i '(17|18|19)' -o /Volumes/Public/Flights/2022-02-20.mp4

srt-concat

Concatenate SRT files, updating the offsets based on the durations of their associated media files. Example:

$ python -m jaraco.media.srt-concat /Volumes/Drone/DCIM/100MEDIA/DJI_00*.SRT -i '(17|18|19)' -o /Volumes/Public/Flights/2022-02-20.srt

splice

Extract timestamps from a video.

$ python -m jaraco.media.splice infile.mp4 outfile.mp4 00:00:00-01:32:46 01:47:20-01:49:17

Troubleshooting

If you see “libaacs not initialized!” or “aacs_open() failed”, remember that you have to re-register with the latest beta key each month.

See this blog for details.

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

jaraco_media-4.0.1.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

jaraco.media-4.0.1-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file jaraco_media-4.0.1.tar.gz.

File metadata

  • Download URL: jaraco_media-4.0.1.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for jaraco_media-4.0.1.tar.gz
Algorithm Hash digest
SHA256 ae52f6cc7bc5f775bfb4072edbeca9c886a53b3987f1d60602b41273729503e8
MD5 12aaf74a9d4cc965a244ef1ac89d40c7
BLAKE2b-256 3ed2d8be5b6bb27812238431c7976c5f680d3e1241839206fa1361dc9c20f9cd

See more details on using hashes here.

Provenance

File details

Details for the file jaraco.media-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: jaraco.media-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for jaraco.media-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb95c1d96d0731b690e46a967d59564364132b0e7dd8c2cfc9cf8d667d601b4
MD5 a3cd887a3a39370eb820ee7a83ede224
BLAKE2b-256 5fe3c2211e984327daca6929706c87b400a328b3afc7f326a1f767c151293c56

See more details on using hashes here.

Provenance

Supported by

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