Documentation ¶
Index ¶
Constants ¶
const ( // BufferSize - The amount of data read from disk before seeking to the next location in the file. BufferSize = 4096 // MaxSeekSize - The max size of a seek operation, this has the affect of reading 'BufferSize' amount of data for // every 'MaxSeekSize' until we reach the end of the file. MaxSeekSize = 64 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func ContainsString ¶
ContainsString - Returns a boolean indicating whether the provided slice contains the given element.
func PathExists ¶
PathExists - Returns a boolean indicating whether the provided path exists.
func ReplaceExtension ¶
ReplaceExtension - Replace the extension for the provided path with the given extension.
func TranscodeFile ¶
TranscodeFile - Use ffmpeg to transcode the file at the provided path, note that the resulting file will have the '.transcoding.mp4' extension.
Types ¶
type LoggingHandler ¶
type LoggingHandler struct {
// contains filtered or unexported fields
}
LoggingHandler - Handler with implements the apex logging handler interface.
func NewLoggingHandler ¶
func NewLoggingHandler() *LoggingHandler
NewLoggingHandler - Create a new LoggingHandler which will log to stdout.
type LoudnormStats ¶
type LoudnormStats struct { MeasuredI string `json:"input_i"` MeasuredTP string `json:"input_tp"` MeasuredLRA string `json:"input_lra"` MeasuredThreshold string `json:"input_thresh"` TargetOffset string `json:"target_offset"` }
LoudnormStats - Represents the raw stats from the first pass with the loudnorm filter which will be used in the second pass.