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.
Release files for jaraco.media 4.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jaraco_media-4.1.0.tar.gz | 36.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jaraco_media-4.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:70.3 kB
Release files / jaraco_media-4.1.0.tar.gz
| Download URL | jaraco_media-4.1.0.tar.gz |
|---|---|
| Size | 36.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6400fb6aa7611ea2a73fd3241c903fc4ee82968f9a6f965715316cfd9d68746
|
|
BLAKE2b-256 checksum How to use checksums |
18cf8d74cdba411eb329efd298b29a6b2493640adadda54dc6c5e833f6702fe6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / jaraco_media-4.1.0-py3-none-any.whl
| Download URL | jaraco_media-4.1.0-py3-none-any.whl |
|---|---|
| Size | 33.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d4ad46dff790d800850e73524df2b596bd6354029ee8370de7f1b5e152fcc743
|
|
BLAKE2b-256 checksum How to use checksums |
cd90a8a967c21b5a2f91665a089153cad4f26bf0b76dca0bdc7a36a899ead879
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|