Documentation
¶
Index ¶
- func DefaultArgs() []string
- type Command
- func (c Command) Args() []string
- func (c *Command) Run(ctx context.Context) error
- func (c *Command) Start(ctx context.Context) (<-chan progress.Progress, error)
- func (c *Command) Wait() error
- func (c *Command) WithAbortOn(a string) *Command
- func (c *Command) WithAccurateSeek() *Command
- func (c *Command) WithApad(a string) *Command
- func (c *Command) WithAspectRatio(aspect string) *Command
- func (c *Command) WithAttachment(filename string) *Command
- func (c *Command) WithAudioBitstreamFilters(filters string) *Command
- func (c *Command) WithAudioChannelLayout(layout string) *Command
- func (c *Command) WithAudioChannels(channels int) *Command
- func (c *Command) WithAudioCodec(codec string) *Command
- func (c *Command) WithAudioDriftThreshold(threshold int) *Command
- func (c *Command) WithAudioFilters(filters string) *Command
- func (c *Command) WithAudioFrames(frames int) *Command
- func (c *Command) WithAudioGuessLayoutMax(max int) *Command
- func (c *Command) WithAudioPad() *Command
- func (c *Command) WithAudioPreset(preset string) *Command
- func (c *Command) WithAudioProfile(profile string) *Command
- func (c *Command) WithAudioQuality(quality int) *Command
- func (c *Command) WithAudioRate(rate int) *Command
- func (c *Command) WithAudioSampleFormat(format string) *Command
- func (c *Command) WithAudioTag(tag string) *Command
- func (c *Command) WithAutoConversionFilters() *Command
- func (c *Command) WithBinPath(binPath string) *Command
- func (c *Command) WithBitexact() *Command
- func (c *Command) WithBitsPerRawSample(b string) *Command
- func (c *Command) WithBitstreamFilters(filters string) *Command
- func (c *Command) WithBsf(b string) *Command
- func (c *Command) WithChannel(channel string) *Command
- func (c *Command) WithChromaIntraMatrix(matrix string) *Command
- func (c *Command) WithCodec(codec string) *Command
- func (c *Command) WithCopyInitialNonKeyframes() *Command
- func (c *Command) WithCopyOrDiscardFramesBeforeStartTime() *Command
- func (c *Command) WithCopyTB(mode string) *Command
- func (c *Command) WithCopyTS() *Command
- func (c *Command) WithCopyUnknown() *Command
- func (c *Command) WithCopytb(m string) *Command
- func (c *Command) WithCopyts() *Command
- func (c *Command) WithDC(precision int) *Command
- func (c *Command) WithDTSDeltaThreshold(threshold int) *Command
- func (c *Command) WithDTSErrorThreshold(threshold int) *Command
- func (c *Command) WithDataFrames(number int) *Command
- func (c *Command) WithDebugTS() *Command
- func (c *Command) WithDeinterlace() *Command
- func (c *Command) WithDisableAudio() *Command
- func (c *Command) WithDisableData() *Command
- func (c *Command) WithDisableVideo() *Command
- func (c *Command) WithDiscard(d string) *Command
- func (c *Command) WithDiscardThreshold(discard int) *Command
- func (c *Command) WithDtsDeltaThreshold(d string) *Command
- func (c *Command) WithDtsErrorThreshold(d string) *Command
- func (c *Command) WithDump() *Command
- func (c *Command) WithDuration(duration string) *Command
- func (c *Command) WithEncTimeBase(e string) *Command
- func (c *Command) WithExtractAttachment(filename string) *Command
- func (c *Command) WithFilter(filter string) *Command
- func (c *Command) WithFilterComplex(f string) *Command
- func (c *Command) WithFilterComplexScript(f string) *Command
- func (c *Command) WithFilterComplexThreads(f string) *Command
- func (c *Command) WithFilterScript(filename string) *Command
- func (c *Command) WithFilterThreads(threads int) *Command
- func (c *Command) WithFixedQualityScale(q int) *Command
- func (c *Command) WithForceCodecTag(tag string) *Command
- func (c *Command) WithForceDataCodec(codec string) *Command
- func (c *Command) WithForceFPS() *Command
- func (c *Command) WithForceKeyFrames(timestamps string) *Command
- func (c *Command) WithFpsMode(v string) *Command
- func (c *Command) WithFrameDropThreshold(f string) *Command
- func (c *Command) WithFrameRate(rate string) *Command
- func (c *Command) WithFrameSize(size string) *Command
- func (c *Command) WithFrames(number int) *Command
- func (c *Command) WithHLSKeyInfoPath(path string) *Command
- func (c *Command) WithHLSSegmentFilename(filename string) *Command
- func (c *Command) WithHLSSegmentListSize(size int) *Command
- func (c *Command) WithHLSSegmentListType(typ string) *Command
- func (c *Command) WithHLSSegmentStartNumber(number int) *Command
- func (c *Command) WithHLSSegmentTime(seconds int) *Command
- func (c *Command) WithHWAccel(name string) *Command
- func (c *Command) WithHWAccelDevice(device string) *Command
- func (c *Command) WithHex() *Command
- func (c *Command) WithISync() *Command
- func (c *Command) WithIgnoreUnknown() *Command
- func (c *Command) WithInitialDemuxDecodeDelay(seconds int) *Command
- func (c *Command) WithInputPath(path string) *Command
- func (c *Command) WithInputPipe(r io.Reader) *Command
- func (c *Command) WithInputTsOffset(offset string) *Command
- func (c *Command) WithInputTsScale(scale string) *Command
- func (c *Command) WithInterMatrix(matrix string) *Command
- func (c *Command) WithIntraMatrix(matrix string) *Command
- func (c *Command) WithLavfi(l string) *Command
- func (c *Command) WithLimitFileSize(size int) *Command
- func (c *Command) WithMap(m string) *Command
- func (c *Command) WithMapChannel(m string) *Command
- func (c *Command) WithMapChapters(m string) *Command
- func (c *Command) WithMapMetadata(m string) *Command
- func (c *Command) WithMaxAlloc(bytes int) *Command
- func (c *Command) WithMaxBitrate(bitrate int) *Command
- func (c *Command) WithMaxErrorRate(m string) *Command
- func (c *Command) WithMaxMuxingQueueSize(m string) *Command
- func (c *Command) WithMaximumDemuxDecodeDelay(seconds int) *Command
- func (c *Command) WithMetadata(metadata string) *Command
- func (c *Command) WithMuxdelay(m string) *Command
- func (c *Command) WithMuxingQueueDataThreshold(m string) *Command
- func (c *Command) WithMuxpreload(m string) *Command
- func (c *Command) WithOutputFormat(format string) *Command
- func (c *Command) WithOutputPath(path string) *Command
- func (c *Command) WithOutputPipe(w io.Writer) *Command
- func (c *Command) WithPSNR() *Command
- func (c *Command) WithPass(pass int) *Command
- func (c *Command) WithPassLogFile(prefix string) *Command
- func (c *Command) WithPixelFormat(format string) *Command
- func (c *Command) WithPreset(preset string) *Command
- func (c *Command) WithPresetFile(filename string) *Command
- func (c *Command) WithQPHist() *Command
- func (c *Command) WithRateControlOverride(override string) *Command
- func (c *Command) WithReadInputAtNativeFrameRate() *Command
- func (c *Command) WithRecastMedia() *Command
- func (c *Command) WithReinitFilter() *Command
- func (c *Command) WithReport() *Command
- func (c *Command) WithSdpFile(s string) *Command
- func (c *Command) WithSeekTimestamp() *Command
- func (c *Command) WithShortest() *Command
- func (c *Command) WithShortestBufDuration(s string) *Command
- func (c *Command) WithStartAtZero() *Command
- func (c *Command) WithStartTimeOffset(offset string) *Command
- func (c *Command) WithStatsEncPost(s string) *Command
- func (c *Command) WithStatsEncPostFmt(s string) *Command
- func (c *Command) WithStatsEncPre(s string) *Command
- func (c *Command) WithStatsEncPreFmt(s string) *Command
- func (c *Command) WithStatsMuxPre(s string) *Command
- func (c *Command) WithStatsMuxPreFmt(s string) *Command
- func (c *Command) WithStopTime(time string) *Command
- func (c *Command) WithStreamID(s string) *Command
- func (c *Command) WithStreamLoop(number int) *Command
- func (c *Command) WithTVStandard(standard string) *Command
- func (c *Command) WithTag(t string) *Command
- func (c *Command) WithTarget(typ string) *Command
- func (c *Command) WithThreadQueueSize(t string) *Command
- func (c *Command) WithTimeCode(timecode string) *Command
- func (c *Command) WithTimeLimit(seconds int) *Command
- func (c *Command) WithTimecode(t string) *Command
- func (c *Command) WithTimelimit(t string) *Command
- func (c *Command) WithTimestamp(timestamp string) *Command
- func (c *Command) WithTop(top int) *Command
- func (c *Command) WithVStatsFile(file string) *Command
- func (c *Command) WithVideoBitrate(bitrate string) *Command
- func (c *Command) WithVideoBitstreamFilters(filters string) *Command
- func (c *Command) WithVideoCodec(codec string) *Command
- func (c *Command) WithVideoFilters(filters string) *Command
- func (c *Command) WithVideoFrames(frames int) *Command
- func (c *Command) WithVideoPreset(preset string) *Command
- func (c *Command) WithVideoProfile(profile string) *Command
- func (c *Command) WithVideoStats() *Command
- func (c *Command) WithVideoStatsFile(file string) *Command
- func (c *Command) WithVideoSync(v string) *Command
- func (c *Command) WithVideoTag(tag string) *Command
- func (c *Command) WithVolume(volume int) *Command
- func (c *Command) WithXError() *Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultArgs ¶
func DefaultArgs() []string
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func NewCommand() *Command
func (*Command) WithAbortOn ¶
WithAbortOn Stop and abort on various conditions. The following flags are available:
empty_output: No packets were passed to the muxer, the output is empty.
empty_output_stream: No packets were passed to the muxer in some of the output streams.
func (*Command) WithAccurateSeek ¶
WithAccurateSeek this option enables or disables accurate seeking in input files with the -ss option. It is enabled by default, so seeking is accurate when transcoding. Use -noaccurate_seek to disable it, which may be useful e.g. when copying some streams and transcoding the others.
func (*Command) WithApad ¶
WithApad pad the output audio stream(s). This is the same as applying -af apad. Argument is a string of filter parameters composed the same as with the apad filter. -shortest must be set for this output for the option to take effect.
func (*Command) WithAspectRatio ¶
WithAspectRatio set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)
func (*Command) WithAttachment ¶
WithAttachment adds an attachment to the output file.
func (*Command) WithAudioBitstreamFilters ¶
WithAudioBitstreamFilters sets the audio bitstream filters.
func (*Command) WithAudioChannelLayout ¶
WithAudioChannelLayout sets the channel layout.
func (*Command) WithAudioChannels ¶
WithAudioChannels sets the number of audio channels.
func (*Command) WithAudioCodec ¶
WithAudioCodec sets the audio codec.
func (*Command) WithAudioDriftThreshold ¶
WithAudioDriftThreshold sets the audio drift threshold.
func (*Command) WithAudioFilters ¶
WithAudioFilters creates a complex filtergraph.
func (*Command) WithAudioFrames ¶
WithAudioFrames sets the number of audio frames to record.
func (*Command) WithAudioGuessLayoutMax ¶
WithAudioGuessLayoutMax sets the maximum number of channels to try to guess the channel layout.
func (*Command) WithAudioPad ¶
WithAudioPad adds "padding" audio frames.
func (*Command) WithAudioPreset ¶
WithAudioPreset sets the audio options to the indicated preset.
func (*Command) WithAudioProfile ¶
WithAudioProfile sets the audio profile.
func (*Command) WithAudioQuality ¶
WithAudioQuality sets the audio quality.
func (*Command) WithAudioRate ¶
WithAudioRate sets the audio sampling rate.
func (*Command) WithAudioSampleFormat ¶
WithAudioSampleFormat sets the sample format.
func (*Command) WithAudioTag ¶
WithAudioTag sets the audio tag.
func (*Command) WithAutoConversionFilters ¶
WithAutoConversionFilters enable automatically inserting format conversion filters in all filter graphs, including those defined by -vf, -af, -filter_complex and -lavfi. If filter format negotiation requires a conversion, the initialization of the filters will fail. Conversions can still be performed by inserting the relevant conversion filter (scale, aresample) in the graph. On by default, to explicitly disable it you need to specify -noauto_conversion_filters.
func (*Command) WithBinPath ¶
WithBinPath sets the path to the ffmpeg binary.
func (*Command) WithBitexact ¶
WithBitexact enable bitexact mode for (de)muxer and (de/en)coder
func (*Command) WithBitsPerRawSample ¶
WithBitsPerRawSample declare the number of bits per raw sample in the given output stream to be value. Note that this option sets the information provided to the encoder/muxer, it does not change the stream to conform to this value. Setting values that do not match the stream properties may result in encoding failures or invalid output files.
func (*Command) WithBitstreamFilters ¶
WithBitstreamFilters sets bitstream filters for matching streams.
func (*Command) WithBsf ¶
WithBsf set bitstream filters for matching streams. bitstream_filters is a comma-separated list of bitstream filters. Use the -bsfs option to get the list of bitstream filters.
func (*Command) WithChannel ¶
WithChannel deprecated, use -channel
func (*Command) WithChromaIntraMatrix ¶
WithChromaIntraMatrix specify intra matrix coeffs
func (*Command) WithCodec ¶
WithCodec selects an encoder (when used before an output file) or a decoder (when used before an input file) for one or more streams. Codec is the name of a decoder/encoder or a special value copy (output only) to indicate that the stream is not to be re-encoded.
func (*Command) WithCopyInitialNonKeyframes ¶
WithCopyInitialNonKeyframes copies non-keyframes initially.
func (*Command) WithCopyOrDiscardFramesBeforeStartTime ¶
WithCopyOrDiscardFramesBeforeStartTime copies or discards frames before start time.
func (*Command) WithCopyTB ¶
WithCopyTB copies input stream time base when stream copying.
func (*Command) WithCopyUnknown ¶
WithCopyUnknown allow input streams with unknown type to be copied instead of failing if copying such streams is attempted.
func (*Command) WithCopytb ¶
WithCopytb specify how to set the encoder timebase when stream copying. mode is an integer numeric value, and can assume one of the following values:
func (*Command) WithCopyts ¶
WithCopyts do not process input timestamps, but keep their values without trying to sanitize them. In particular, do not remove the initial start time offset value.
func (*Command) WithDTSDeltaThreshold ¶
WithDTSDeltaThreshold sets the timestamp discontinuity delta threshold.
func (*Command) WithDTSErrorThreshold ¶
WithDTSErrorThreshold sets the timestamp error delta threshold.
func (*Command) WithDataFrames ¶
WithDataFrames set the number of data frames to record.
func (*Command) WithDebugTS ¶
WithDebugTS prints timestamp debugging info.
func (*Command) WithDeinterlace ¶
WithDeinterlace this option is deprecated, use the yadif filter instead
func (*Command) WithDisableAudio ¶
WithDisableAudio disables audio.
func (*Command) WithDisableData ¶
WithDisableData disable data
func (*Command) WithDisableVideo ¶
WithDisableVideo disable video
func (*Command) WithDiscard ¶
WithDiscard allows discarding specific streams or frames from streams. Any input stream can be fully discarded, using value all whereas selective discarding of frames from a stream occurs at the demuxer and is not supported by all demuxers.
func (*Command) WithDiscardThreshold ¶
WithIntra deprecated use -g 1
func (*Command) WithDtsDeltaThreshold ¶
WithDtsDeltaThreshold timestamp discontinuity delta threshold, expressed as a decimal number of seconds.
func (*Command) WithDtsErrorThreshold ¶
WithDtsErrorThreshold timestamp error delta threshold, expressed as a decimal number of seconds.
func (*Command) WithDuration ¶
WithDuration when used as an input option (before -i), limit the duration of data read from the input file. When used as an output option (before an output url), stop writing the output after its duration reaches duration. duration must be a time duration specification, see (ffmpeg-utils)the Time duration section in the ffmpeg-utils(1) manual. -to and -t are mutually exclusive and -t has priority.
func (*Command) WithEncTimeBase ¶
WithEncTimeBase set the encoder timebase. timebase can assume one of the following values:
func (*Command) WithExtractAttachment ¶
WithExtractAttachment extracts an attachment into a file.
func (*Command) WithFilter ¶
WithFilter sets stream filtergraph.
func (*Command) WithFilterComplex ¶
WithFilterComplex define a complex filtergraph, i.e. one with arbitrary number of inputs and/or outputs. For simple graphs – those with one input and one output of the same type – see the -filter options. filtergraph is a description of the filtergraph, as described in the “Filtergraph syntax” section of the ffmpeg-filters manual.
func (*Command) WithFilterComplexScript ¶
WithFilterComplexScript this option is similar to -filter_complex, the only difference is that its argument is the name of the file from which a complex filtergraph description is to be read.
func (*Command) WithFilterComplexThreads ¶
WithFilterComplexThreads defines how many threads are used to process a filter_complex graph. Similar to filter_threads but used for -filter_complex graphs only. The default is the number of available CPUs.
func (*Command) WithFilterScript ¶
WithFilterScript sets read stream filtergraph description from a file.
func (*Command) WithFilterThreads ¶
WithFilterThreads sets the number of non-complex filter threads.
func (*Command) WithFixedQualityScale ¶
WithFixedQualityScale sets fixed quality scale (VBR).
func (*Command) WithForceCodecTag ¶
WithForceCodecTag forces codec tag/fourcc.
func (*Command) WithForceDataCodec ¶
WithForceDataCodec forces data codec (‘copy’ to copy stream).
func (*Command) WithForceFPS ¶
WithForceFPS force the selected framerate, disable the best supported framerate selection
func (*Command) WithForceKeyFrames ¶
WithForceKeyFrames force key frames at specified timestamps
func (*Command) WithFpsMode ¶
WithFpsMode set video sync method.
func (*Command) WithFrameDropThreshold ¶
WithFrameDropThreshold set frame drop threshold, which specifies how much behind video frames can be before they are dropped. In frame rate units, so 1.0 is one frame. The default is -1.1. One possible usecase is to avoid framedrops in case of noisy timestamps or to increase frame drop precision in case of exact timestamps.
func (*Command) WithFrameRate ¶
WithFrameRate set frame rate (Hz value, fraction or abbreviation)
func (*Command) WithFrameSize ¶
WithFrameSize set frame size (WxH or abbreviation)
func (*Command) WithFrames ¶
WithFrames sets the number of frames to record.
func (*Command) WithHLSKeyInfoPath ¶
func (*Command) WithHLSSegmentFilename ¶
func (*Command) WithHLSSegmentListSize ¶
func (*Command) WithHLSSegmentListType ¶
func (*Command) WithHLSSegmentStartNumber ¶
func (*Command) WithHLSSegmentTime ¶
func (*Command) WithHWAccel ¶
WithHWAccel use HW accelerated decoding
func (*Command) WithHWAccelDevice ¶
WithHWAccelDevice select a device for HW accelerationdevicename
func (*Command) WithIgnoreUnknown ¶
WithIgnoreUnknown ignore input streams with unknown type instead of failing if copying such streams is attempted.
func (*Command) WithInitialDemuxDecodeDelay ¶
WithInitialDemuxDecodeDelay sets initial demux-decode delay.
func (*Command) WithInputPath ¶
WithInputPath sets the input path to the given path.
func (*Command) WithInputPipe ¶
WithInputPipe sets the input pipe reader (stdin).
func (*Command) WithInputTsOffset ¶
WithInputTsOffset set the input ts offset.
func (*Command) WithInputTsScale ¶
WithInputTsScale set the input ts scale.
func (*Command) WithInterMatrix ¶
WithInterMatrix specify inter matrix coeffs
func (*Command) WithIntraMatrix ¶
WithIntraMatrix specify intra matrix coeffs
func (*Command) WithLavfi ¶
WithLavfi define a complex filtergraph, i.e. one with arbitrary number of inputs and/or outputs. Equivalent to -filter_complex.
func (*Command) WithLimitFileSize ¶
WithOutputLimitFileSize sets the file size limit, expressed in bytes. No further chunk of bytes is written after the limit is exceeded. The size of the output file is slightly more than the requested file size.
func (*Command) WithMap ¶
WithMap creates one or more streams in the output file. This option has two forms for specifying the data source(s): the first selects one or more streams from some input file (specified with -i), the second takes an output from some complex filtergraph (specified with -filter_complex or -filter_complex_script).
func (*Command) WithMapChannel ¶
WithMapChannel creates an audio channel from a given input to an output. If output_file_id.stream_specifier is not set, the audio channel will be mapped on all the audio streams.
func (*Command) WithMapChapters ¶
WithMapChapters copy chapters from input file with index input_file_index to the next output file. If no chapter mapping is specified, then chapters are copied from the first input file with at least one chapter. Use a negative file index to disable any chapter copying.
func (*Command) WithMapMetadata ¶
WithMapMetadata sets metadata information of the next output file from infile. Note that those are file indices (zero-based), not filenames. Optional metadata_spec_in/out parameters specify, which metadata to copy. A metadata specifier can have the following forms:
func (*Command) WithMaxAlloc ¶
WithMaxAlloc sets the maximum size of a single allocated block.
func (*Command) WithMaxBitrate ¶
WithMaxBitrate sets the max bitrate in kbit/s.
func (*Command) WithMaxErrorRate ¶
WithMaxErrorRate set fraction of decoding frame failures across all inputs which when crossed ffmpeg will return exit code 69. Crossing this threshold does not terminate processing. Range is a floating-point number between 0 to 1. Default is 2/3.
func (*Command) WithMaxMuxingQueueSize ¶
WithMaxMuxingQueueSize when transcoding audio and/or video streams, ffmpeg will not begin writing into the output until it has one packet for each such stream. While waiting for that to happen, packets for other streams are buffered. This option sets the size of this buffer, in packets, for the matching output stream.
func (*Command) WithMaximumDemuxDecodeDelay ¶
WithMaximumDemuxDecodeDelay sets maximum demux-decode delay.
func (*Command) WithMetadata ¶
WithMetadata sets metadata information to the output file.
func (*Command) WithMuxdelay ¶
WithMuxdelay set the maximum demux-decode delay.
func (*Command) WithMuxingQueueDataThreshold ¶
WithMuxingQueueDataThreshold this is a minimum threshold until which the muxing queue size is not taken into account. Defaults to 50 megabytes per stream, and is based on the overall size of packets passed to the muxer.
func (*Command) WithMuxpreload ¶
WithMuxpreload set the initial demux-decode delay.
func (*Command) WithOutputFormat ¶
WithOutputFormat sets the output format to the given format.
func (*Command) WithOutputPath ¶
WithInputFormat sets the input format to the given format.
func (*Command) WithOutputPipe ¶
WithOutputPipe sets the output pipe writer to the given writer (stdout)
func (*Command) WithPassLogFile ¶
WithPassLogFile select two pass log file name prefix
func (*Command) WithPixelFormat ¶
WithPixelFormat set pixel format
func (*Command) WithPreset ¶
WithPreset sets the preset for matching stream(s).
func (*Command) WithPresetFile ¶
WithPresetFile sets the preset file for matching stream(s).
func (*Command) WithRateControlOverride ¶
WithRateControlOverride override rate control override for specific intervals
func (*Command) WithReadInputAtNativeFrameRate ¶
WithReadInputAtNativeFrameRate reads input at native frame rate.
func (*Command) WithRecastMedia ¶
WithRecastMedia forces a decoder of a different media type than the one detected or designated by the demuxer. Useful for decoding media data muxed as data streams.
func (*Command) WithReinitFilter ¶
WithReinitFilter reinit filtergraph on input parameter changes.
func (*Command) WithReport ¶
WithReport enables the ffmpeg report.
func (*Command) WithSdpFile ¶
WithSdpFile print sdp information for an output stream to file. This allows dumping sdp information when at least one output isn’t an rtp stream. (Requires at least one of the output formats to be rtp).
func (*Command) WithSeekTimestamp ¶
WithSeekTimestamp this option enables or disables seeking by timestamp in input files with the -ss option. It is disabled by default. If enabled, the argument to the -ss option is considered an actual timestamp, and is not offset by the start time of the file. This matters only for files which do not start from timestamp 0, such as transport streams.
func (*Command) WithShortest ¶
WithShortest finish encoding when the shortest output stream ends.
func (*Command) WithShortestBufDuration ¶
WithShortestBufDuration the -shortest option may require buffering potentially large amounts of data when at least one of the streams is "sparse" (i.e. has large gaps between frames – this is typically the case for subtitles).
func (*Command) WithStartAtZero ¶
WithStartAtZero when used with copyts, shift input timestamps so they start at zero.
func (*Command) WithStartTimeOffset ¶
WithStartTimeOffset when used as an input option (before -i), seeks in this input file to position. Note that in most formats it is not possible to seek exactly, so ffmpeg will seek to the closest seek point before position. When transcoding and -accurate_seek is enabled (the default), this extra segment between the seek point and position will be decoded and discarded. When doing stream copy or when -noaccurate_seek is used, it will be preserved. When used as an output option (before an output url), decodes but discards input until the timestamps reach position.
func (*Command) WithStatsEncPost ¶
WithStatsEncPost write per-frame encoding information about the matching streams into the file given by path.
func (*Command) WithStatsEncPostFmt ¶
WithStatsEncPostFmt specify the format for the lines written with -stats_enc_pre / -stats_enc_post / -stats_mux_pre.
func (*Command) WithStatsEncPre ¶
WithStatsEncPre write per-frame encoding information about the matching streams into the file given by path.
func (*Command) WithStatsEncPreFmt ¶
WithStatsEncPreFmt specify the format for the lines written with -stats_enc_pre / -stats_enc_post / -stats_mux_pre.
func (*Command) WithStatsMuxPre ¶
WithStatsMuxPre write per-frame encoding information about the matching streams into the file given by path.
func (*Command) WithStatsMuxPreFmt ¶
WithStatsMuxPreFmt specify the format for the lines written with -stats_enc_pre / -stats_enc_post / -stats_mux_pre.
func (*Command) WithStopTime ¶
WithStopTime stop writing the output or reading the input at position. position must be a time duration specification.
func (*Command) WithStreamID ¶
WithStreamID assign a new stream-id value to an output stream. This option should be specified prior to the output filename to which it applies. For the situation where multiple output files exist, a streamid may be reassigned to a different value.
func (*Command) WithStreamLoop ¶
WithStreamLoop sets number of times input stream shall be looped. Loop 0 means no loop, loop -1 means infinite loop.
func (*Command) WithTVStandard ¶
WithTVStandard deprecated, use -standard
func (*Command) WithTarget ¶
WithTarget sets the target file type.
func (*Command) WithThreadQueueSize ¶
WithThreadQueueSize for input, this option sets the maximum number of queued packets when reading from the file or device. With low latency / high rate live streams, packets may be discarded if they are not read in a timely manner; setting this value can force ffmpeg to use a separate input thread and read packets as soon as they arrive. By default ffmpeg only does this if multiple inputs are specified.
func (*Command) WithTimeCode ¶
WithTimeCode set initial TimeCode value.
func (*Command) WithTimeLimit ¶
WithTimeLimit sets the max runtime in seconds.
func (*Command) WithTimecode ¶
WithTimecode specify Timecode for writing. SEP is ’:’ for non drop timecode and ’;’ (or ’.’) for drop.
func (*Command) WithTimelimit ¶
WithTimelimit exit after ffmpeg has been running for duration seconds in CPU user time.
func (*Command) WithTimestamp ¶
WithTimestamp sets the recording timestamp in the container.
func (*Command) WithVStatsFile ¶
WithVStatsFile dumps video coding statistics to file.
func (*Command) WithVideoBitrate ¶
WithVideoBitrate set video bitrate (please use -b:v)
func (*Command) WithVideoBitstreamFilters ¶
WithVideoBitstreamFilters deprecated
func (*Command) WithVideoCodec ¶
WithVideoCodec force video codec (‘copy’ to copy stream)
func (*Command) WithVideoFilters ¶
WithVideoFilters set video filters
func (*Command) WithVideoFrames ¶
WithVideoFrames set the number of video frames to record
func (*Command) WithVideoPreset ¶
WithVideoPreset set the video options to the indicated preset
func (*Command) WithVideoProfile ¶
func (*Command) WithVideoStats ¶
WithVideoStats dump video coding statistics to file
func (*Command) WithVideoStatsFile ¶
WithVideoStatsFile dump video coding statistics to file
func (*Command) WithVideoSync ¶
WithVideoSync set video sync method.
func (*Command) WithVideoTag ¶
WithVideoTag force video tag/fourcc
func (*Command) WithVolume ¶
WithVolume sets the audio volume.