Giuseppe Coviello
137456d41f
Opening http, https and rtsp streams
2024-01-31 16:03:15 -05:00
Giuseppe Coviello
afcc49ec6c
Fixed leak of goroutine and channel in Video.cleanup()
2024-01-23 13:37:58 -05: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
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
0677d357e2
ReadFrames no params validation added
2023-08-28 11:55:43 +02:00
Krzysztofz01
c53213a27f
ReadFrame and ReadFrames integrated into the Video struct
2023-08-28 11:44:32 +02: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
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
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
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
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
226b3efe8f
Removed pixfmt from Video
2022-07-23 15:23:26 -07:00
Alex Eidt
663a405ca6
Cleanup error messages
2022-07-20 13:43:02 -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
Alex Eidt
3f4ae6eb23
Added error returns, removed panics
2022-04-17 09:11:38 -07:00
Alex Eidt
3e62223de3
Buffered channel for signal interrupt
2022-04-16 11:47:41 -07:00
Alex Eidt
4fef48055a
Added getters for structs
2022-04-16 10:45:14 -07:00
Alex Eidt
b07339a04c
Check audio files for audio track
2022-04-08 15:26:09 -07:00
Alex Eidt
abdeecf6e4
Added checks for videos with no audio
2022-04-01 17:00:53 -07:00
Alex Eidt
b1fd41b75f
Added audio support for videos
2022-03-30 20:43:31 -07:00
Alex Eidt
204ed5b1b5
Fixed Typo
2022-01-10 16:27:46 -08:00
Alex Eidt
1062e2f4f8
Better documentation
2021-12-28 22:11:25 -08:00
Alex Eidt
c03552383a
Renamed videoio.go to video.go
2021-12-27 17:01:02 -08:00
Alex Eidt
3faf4aa9c8
Moved all to videoio.go for portability
2021-12-22 15:51:37 -08:00
Alex Eidt
ff24be3154
Fixed bitrate on VideoWriter
2021-12-02 10:44:42 -08:00
Alex Eidt
059f46f9ed
Initial commit
2021-11-22 19:14:37 -08:00