File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,15 @@ for frame in extractor:
1919 process(frame)
2020```
2121
22- ## Development
22+ ## Installation
23+
24+ > ** PyPI package coming very soon!**
25+
26+ ``` bash
27+ git clone https://github.com/codeSamuraii/viteo
28+ cd viteo
29+ pip install -v -e .
30+ ```
2331
2432Building/rebuilding the package in editable mode:
2533``` bash
Original file line number Diff line number Diff line change @@ -99,6 +99,11 @@ bool setupReader(int64_t startFrame) {
9999 (id )kCVPixelBufferPixelFormatTypeKey : @(kCVPixelFormatType_32BGRA ),
100100 (id )kCVPixelBufferMetalCompatibilityKey : @YES ,
101101 (id )kCVPixelBufferIOSurfacePropertiesKey : @{},
102+ // Add VideoToolbox hardware acceleration hints
103+ AVVideoDecompressionPropertiesKey: @{
104+ (id )kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder : @YES ,
105+ (id )kVTDecompressionPropertyKey_PropagatePerFrameHDRDisplayMetadata : @NO ,
106+ },
102107 };
103108
104109 output = [[AVAssetReaderTrackOutput alloc ]
Original file line number Diff line number Diff line change @@ -29,25 +29,25 @@ def video_files(test_data_dir):
2929 "path" : test_data_dir / "video_4k.mp4" ,
3030 "width" : 3840 ,
3131 "height" : 2160 ,
32- "min_fps" : 220 .0 # Minimum expected extraction speed
32+ "min_fps" : 60 .0 # Minimum expected extraction speed
3333 },
3434 "1080p" : {
3535 "path" : test_data_dir / "video_1080p.mp4" ,
3636 "width" : 1920 ,
3737 "height" : 1080 ,
38- "min_fps" : 630 .0
38+ "min_fps" : 120 .0
3939 },
4040 "720p" : {
4141 "path" : test_data_dir / "video_720p.mp4" ,
4242 "width" : 1280 ,
4343 "height" : 720 ,
44- "min_fps" : 1080 .0
44+ "min_fps" : 240 .0
4545 },
4646 "480p" : {
4747 "path" : test_data_dir / "video_480p.mp4" ,
4848 "width" : 854 ,
4949 "height" : 480 ,
50- "min_fps" : 1700 .0
50+ "min_fps" : 480 .0
5151 }
5252 }
5353
You can’t perform that action at this time.
0 commit comments