Alex Eidt
cf92b10b6b
Merge pull request #12 from lgaribaldi/rotate-tag
...
Add check for rotate tag
2024-01-07 09:53:36 -08:00
lgaribaldi
63cca29ce4
Add check for rotate tag
...
When a video has a "rotate" tag in metadata, the video player rotates when playing the video, giving it a portrait perspective.
Because of this, the width is still larger than height even in a portrait video. Which causes the stride to be off and the resulting frame to be scrambled.
This can be fixed by inverting the widht and height of the video when there is a rotation.
2024-01-07 10:51:10 -03:00
AlexEidt
2c6765173e
Added 'vidio: ' to error messages
2023-08-29 08:51:52 -07:00
Alex Eidt
6b8025301c
Merge pull request #7 from Krzysztofz01/frame-seeking-feature-implementation
...
Frame seeking feature implementation
2023-08-29 08:12:43 -07:00
Krzysztofz01
f6a2909ea3
ReadFrames updated to return RGBA image slice
2023-08-29 10:55:14 +02:00
Krzysztofz01
a1d63d0f9f
buildSelectExpression func moved from video to utils
2023-08-29 10:44:41 +02:00
Krzysztofz01
4fe8cad509
ReadFrame and ReadFrames added to README
2023-08-28 12:30:55 +02:00
Krzysztofz01
0677d357e2
ReadFrames no params validation added
2023-08-28 11:55:43 +02:00
Krzysztofz01
cf930a3eae
Missing testing image added
2023-08-28 11:50:13 +02:00
Krzysztofz01
6b9ccaa776
Separate GetVideoFrame code removed
2023-08-28 11:48:57 +02:00
Krzysztofz01
68378a0fde
ReadFrame and ReadFrames tests added
2023-08-28 11:46:16 +02:00
Krzysztofz01
c53213a27f
ReadFrame and ReadFrames integrated into the Video struct
2023-08-28 11:44:32 +02:00
Krzysztofz01
38101a377c
GetVideoFrame() nil frame buffer validation
2023-08-21 10:28:43 +02:00
Krzysztofz01
957b8dc191
GetVideoFrame() buffer param added
2023-08-21 09:55:12 +02:00
Krzysztofz01
1813715282
GetVideoFrame test for valid input, invalid path and out-of-range frame index
2023-08-19 14:54:59 +02:00
Krzysztofz01
fd5137064c
GetVideoFrame function implementation.
2023-08-19 14:52:18 +02:00
Alex Eidt
b1d35e0f81
Use io.ReadFull in Read()
2023-03-17 10:49:43 -07:00
Alex Eidt
05cff486bc
Merge pull request #3 from Jille/cleanups
...
Two minor cleanups
2023-03-17 10:47:35 -07:00
Jille Timmermans
71afd7b11a
cleanup: Use io.ReadAll to fully read the buffer
...
Also don't ignore errors other than io.EOF, but return false for them
too
2023-03-17 11:12:02 +01:00
Jille Timmermans
2e92f00374
cleanup: Don't use a pointer for Video.pipe, it's an interface
...
Interfaces can already store nil, so we don't need a pointer to
distinguish between unset and set.
2023-03-17 11:09:26 +01:00
Alex Eidt
68fe8618c6
Add example to README, copy buffer in Write
2022-10-01 11:35:47 -07:00
Alex Eidt
f1c7d31a29
Updated Documentation
2022-09-23 19:02:09 -07:00
Alex Eidt
f6eaee9f1f
rgb to rgba
2022-09-19 20:41:07 -07:00
Alex Eidt
2f07344cb8
Updated README
2022-09-16 08:32:45 -07:00
Alex Eidt
0bce47ccae
HasAudio() generalized to HasStreams()
2022-09-15 14:14:45 -07:00
Alex Eidt
bbbb23041a
Options.Audio adds all streams
2022-09-15 13:30:13 -07:00
Alex Eidt
c9bc141f27
Cleanup
2022-09-13 23:02:38 -07:00
Alex Eidt
538bcb7a83
Cleanup
2022-09-09 22:39:49 -07:00
Alex Eidt
b577495180
Added support for multiple Video streams
2022-09-09 22:14:40 -07:00
Alex Eidt
32f30850c4
Cleanup in utils
2022-09-06 15:26:47 -07:00
Alex Eidt
34c0e44380
NewVideo error when file contains no video
2022-09-03 13:22:19 -07:00
Alex Eidt
2c194879df
Cleanup
2022-08-24 13:37:18 -07:00
Alex Eidt
25fa3dd387
Updated README
2022-08-24 13:23:09 -07:00
Alex Eidt
47c1e37dbb
Updated README
2022-08-24 13:21:00 -07:00
Alex Eidt
54cfa7783a
Refactoring and Cleanup
2022-08-05 18:40:55 -07:00
Alex Eidt
af983f09e4
Added Format for VideoWriter
2022-08-03 16:12:07 -07:00
Alex Eidt
9e805e183b
SetFrameBuffer returns error
2022-08-02 19:54:28 -07:00
Alex Eidt
45952ddbd0
Updated README
2022-07-26 09:40:30 -07:00
Alex Eidt
3948f3dc37
Updated README
2022-07-25 23:03:34 -07:00
Alex Eidt
8afa8f63fb
Typo
2022-07-25 14:59:38 -07:00
Alex Eidt
e73f59496b
Added Audio() getter to VideoWriter
2022-07-25 14:43:28 -07:00
Alex Eidt
226b3efe8f
Removed pixfmt from Video
2022-07-23 15:23:26 -07:00
Alex Eidt
0e18bf49d1
Updated README
2022-07-20 16:28:19 -07:00
Alex Eidt
663a405ca6
Cleanup error messages
2022-07-20 13:43:02 -07:00
Alex Eidt
217b406617
Updated examples in README
2022-05-18 16:01:16 -07:00
Alex Eidt
34d7ee3c27
Cleanup up imageio
2022-04-23 20:19:15 -07:00
Alex Eidt
536e5a7d54
Updated README
2022-04-22 16:04:07 -07:00
Alex Eidt
84476c3206
Added optional buffer for image Read()
2022-04-22 14:17:39 -07:00
Alex Eidt
9f884aeec1
Added PixFmt() getter
2022-04-22 13:33:16 -07:00
Alex Eidt
2d72a27288
Added SetFrameBuffer for Video and Camera
2022-04-18 17:38:21 -07:00