mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] support processing of (many) more media types (#3090)
* initial work replacing our media decoding / encoding pipeline with ffprobe + ffmpeg * specify the video codec to use when generating static image from emoji * update go-storage library (fixes incompatibility after updating go-iotools) * maintain image aspect ratio when generating a thumbnail for it * update readme to show go-ffmpreg * fix a bunch of media tests, move filesize checking to callers of media manager for more flexibility * remove extra debug from error message * fix up incorrect function signatures * update PutFile to just use regular file copy, as changes are file is on separate partition * fix remaining tests, remove some unneeded tests now we're working with ffmpeg/ffprobe * update more tests, add more code comments * add utilities to generate processed emoji / media outputs * fix remaining tests * add test for opus media file, add license header to utility cmds * limit the number of concurrently available ffmpeg / ffprobe instances * reduce number of instances * further reduce number of instances * fix envparsing test with configuration variables * update docs and configuration with new media-{local,remote}-max-size variables
This commit is contained in:
64
vendor/github.com/dsoprea/go-utility/v2/filesystem/README.md
generated
vendored
64
vendor/github.com/dsoprea/go-utility/v2/filesystem/README.md
generated
vendored
@ -1,64 +0,0 @@
|
||||
[](https://godoc.org/github.com/dsoprea/go-utility/filesystem)
|
||||
[](https://travis-ci.org/dsoprea/go-utility)
|
||||
[](https://coveralls.io/github/dsoprea/go-utility?branch=master)
|
||||
[](https://goreportcard.com/report/github.com/dsoprea/go-utility)
|
||||
|
||||
# bounceback
|
||||
|
||||
An `io.ReadSeeker` and `io.WriteSeeker` that returns to the right place before
|
||||
reading or writing. Useful when the same file resource is being reused for reads
|
||||
or writes throughout that file.
|
||||
|
||||
# list_files
|
||||
|
||||
A recursive path walker that supports filters.
|
||||
|
||||
# seekable_buffer
|
||||
|
||||
A memory structure that satisfies `io.ReadWriteSeeker`.
|
||||
|
||||
# copy_bytes_between_positions
|
||||
|
||||
Given an `io.ReadWriteSeeker`, copy N bytes from one position to an earlier
|
||||
position.
|
||||
|
||||
# read_counter, write_counter
|
||||
|
||||
Wrap `io.Reader` and `io.Writer` structs in order to report how many bytes were
|
||||
transferred.
|
||||
|
||||
# readseekwritecloser
|
||||
|
||||
Provides the ReadWriteSeekCloser interface that combines a RWS and a Closer.
|
||||
Also provides a no-op wrapper to augment a plain RWS with a closer.
|
||||
|
||||
# boundedreadwriteseek
|
||||
|
||||
Wraps a ReadWriteSeeker such that no seeks can be at an offset less than a
|
||||
specific-offset.
|
||||
|
||||
# calculateseek
|
||||
|
||||
Provides a reusable function with which to calculate seek offsets.
|
||||
|
||||
# progress_wrapper
|
||||
|
||||
Provides `io.Reader` and `io.Writer` wrappers that also trigger callbacks after
|
||||
each call. The reader wrapper also invokes the callback upon EOF.
|
||||
|
||||
# does_exist
|
||||
|
||||
Check whether a file/directory exists using a file-path.
|
||||
|
||||
# graceful_copy
|
||||
|
||||
Do a copy but correctly handle short-writes and reads that might return a non-
|
||||
zero read count *and* EOF.
|
||||
|
||||
# readseeker_to_readerat
|
||||
|
||||
A wrapper that allows an `io.ReadSeeker` to be used as a `io.ReaderAt`.
|
||||
|
||||
# simplefileinfo
|
||||
|
||||
An implementation of `os.FileInfo` to support testing.
|
Reference in New Issue
Block a user