ffmpeg

package
v1.9.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 3 Imported by: 0

README

FFplay output

FFplay 7.11 A-V: 0.003 fd= 1 aq= 21KB vq= 321KB sq= 0B f=0/0:

  • 7.11 - master clock, is the time from start of the stream/video
  • A-V - av_diff, difference between audio and video timestamps
  • fd - frames dropped
  • aq - audio queue (0 - no delay)
  • vq - video queue (0 - no delay)
  • sq - subtitle queue
  • f - timestamp error correction rate (Not 100% sure)

M-V, M-A means video stream only, audio stream only respectively.

Devices Windows

>ffmpeg -hide_banner -f dshow -list_options true -i video="VMware Virtual USB Video Device"
[dshow @ 0000025695e52900] DirectShow video device options (from video devices)
[dshow @ 0000025695e52900]  Pin "Record" (alternative pin name "0")
[dshow @ 0000025695e52900]   pixel_format=yuyv422  min s=1280x720 fps=1 max s=1280x720 fps=10
[dshow @ 0000025695e52900]   pixel_format=yuyv422  min s=1280x720 fps=1 max s=1280x720 fps=10 (tv, bt470bg/bt709/unknown, topleft)
[dshow @ 0000025695e52900]   pixel_format=nv12  min s=1280x720 fps=1 max s=1280x720 fps=23
[dshow @ 0000025695e52900]   pixel_format=nv12  min s=1280x720 fps=1 max s=1280x720 fps=23 (tv, bt470bg/bt709/unknown, topleft)

Devices Mac

% ./ffmpeg -hide_banner -f avfoundation -list_devices true -i ""
[AVFoundation indev @ 0x7f8b1f504d80] AVFoundation video devices:
[AVFoundation indev @ 0x7f8b1f504d80] [0] FaceTime HD Camera
[AVFoundation indev @ 0x7f8b1f504d80] [1] Capture screen 0
[AVFoundation indev @ 0x7f8b1f504d80] AVFoundation audio devices:
[AVFoundation indev @ 0x7f8b1f504d80] [0] Soundflower (2ch)
[AVFoundation indev @ 0x7f8b1f504d80] [1] Built-in Microphone
[AVFoundation indev @ 0x7f8b1f504d80] [2] Soundflower (64ch)

Devices Linux

# ffmpeg -hide_banner -f v4l2 -list_formats all -i /dev/video0
[video4linux2,v4l2 @ 0x7f7de7c58bc0] Raw       :     yuyv422 :           YUYV 4:2:2 : 640x480 160x120 176x144 320x176 320x240 352x288 432x240 544x288 640x360 752x416 800x448 800x600 864x480 960x544 960x720 1024x576 1184x656 1280x720 1280x960
[video4linux2,v4l2 @ 0x7f7de7c58bc0] Compressed:       mjpeg :          Motion-JPEG : 640x480 160x120 176x144 320x176 320x240 352x288 432x240 544x288 640x360 752x416 800x448 800x600 864x480 960x544 960x720 1024x576 1184x656 1280x720 1280x960

TTS

streams:
  tts: ffmpeg:#input=-readrate 1 -readrate_initial_burst 0.001 -f lavfi -i "flite=text='1 2 3 4 5 6 7 8 9 0'"#audio=pcma

Documentation

Index

Constants

View Source
const (
	Version50 = "59. 16"
	Version51 = "59. 27"
	Version60 = "60.  3"
	Version61 = "60. 16"
	Version70 = "61.  1"
)

correlation of libavformat versions with ffmpeg versions

Variables

This section is empty.

Functions

func ParseVersion added in v1.9.3

func ParseVersion(b []byte) (ffmpeg string, libavformat string)

Types

type Args

type Args struct {
	Bin     string   // ffmpeg
	Global  string   // -hide_banner -v error
	Input   string   // -re -stream_loop -1 -i /media/bunny.mp4
	Codecs  []string // -c:v libx264 -g:v 30 -preset:v ultrafast -tune:v zerolatency
	Filters []string // scale=1920:1080
	Output  string   // -f rtsp {output}
	Version string   // libavformat version, it's more reliable than the ffmpeg version

	Video, Audio int // count of Video and Audio params
}

func (*Args) AddCodec

func (a *Args) AddCodec(codec string)

func (*Args) AddFilter

func (a *Args) AddFilter(filter string)

func (*Args) HasFilters

func (a *Args) HasFilters(filters ...string) bool

func (*Args) InsertFilter

func (a *Args) InsertFilter(filter string)

func (*Args) String

func (a *Args) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL