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 Code style: Black https://img.shields.io/badge/skeleton-2022-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-3.7.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

jaraco.media-3.7.0-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file jaraco.media-3.7.0.tar.gz.

File metadata

  • Download URL: jaraco.media-3.7.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0rc2

File hashes

Hashes for jaraco.media-3.7.0.tar.gz
Algorithm Hash digest
SHA256 1a812486bcb039c7d5ae440185982da8be3df07fe86f58897043e6c9225fc910
MD5 83daf3cfc173b00098a6295d64f46c47
BLAKE2b-256 524500b79c882ccf3acbffeca027bf96eab6ef16ccf0649e9c555a8402e481e8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for jaraco.media-3.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85fc277f92832b416cf2be48caad7cc5e186c8e880745fe23e82841991500666
MD5 204b5a5b53bb3c27036f239a9f7c0794
BLAKE2b-256 3f23fd68f612ee326c5025edc304a0c620f1dc59d77580025e8b552fcc21bd30

See more details on using hashes here.

Supported by

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