Fast detection of iframes in mpegts streams
Project description
iframes
Fast detection of iframes in mpegts streams
Install
- pip install iframes
python3 -mpip install iframes
Run
- local file
first video.ts
iframes video.ts
- https
first https://example.com/video.ts
iframes https://example.com/video.ts
- multicast
first udp://@227.5.5.5:1234
iframes udp://@227.5.5.5:1234
Output
- iframe pts
14648.092267
14648.342511
14648.509344
14648.7596
14649.009844
14649.2601
14649.426933
14649.6605
14649.910744
14650.161
14650.411244
14650.6615
14650.911744
14651.162
14651.412244
14651.6625
14651.912744
14652.163
14652.413244
14652.6635
14652.847011
14653.097267
14653.347511
14653.597767
14653.848011
14654.081578
14654.315144
14654.565389
14654.815644
14655.065889
14655.316144
14655.566389
14655.816644
14656.066889
14656.317144
14656.433933
14656.684178
14656.934433
14657.184678
14657.434933
programmatically
from iframes import IFramer
ifrmr = IFramer()
first_frame = ifrmr.first('a_video.ts')
from iframes import IFramer
ifrmr = IFramer(shush=True) # set IFramer.shush=True to suppress printing pts
all_iframes = ifrmr.do('https://example.com/coolvideo.ts')
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
iframes-0.0.7.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file iframes-0.0.7.tar.gz
.
File metadata
- Download URL: iframes-0.0.7.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bab29180504e62f68d27b24e324e2cbed72ffc9df6453017f302b40aba659406 |
|
MD5 | 595290d7b2c77559caebbf1f6cdf3c4f |
|
BLAKE2b-256 | 6f6f87bb41c9c2565791a84e8f89aa9c048e81cf7ec05726cbf9dc8204a5b020 |
File details
Details for the file iframes-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: iframes-0.0.7-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba2dc499b03b5b731c53b42ff8566d146e0ebadb56cd723b6e7e093fac453794 |
|
MD5 | 102b9d323343cc59ae2a0cb9b9536273 |
|
BLAKE2b-256 | 789166bf10ce4c04af6848f736f695057a5791e65619dcb7324a668add0078b5 |