ffmpeg

package
v1.9.7 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 22 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

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

func JPEGWithQuery added in v1.7.0

func JPEGWithQuery(b []byte, query url.Values) ([]byte, error)

func JPEGWithScale added in v1.7.0

func JPEGWithScale(b []byte, width, height int) ([]byte, error)

func NewProducer added in v1.9.3

func NewProducer(url string) (core.Producer, error)

NewProducer - FFmpeg producer with auto selection video/audio codec based on client capabilities

func Version added in v1.9.3

func Version() (string, error)

Types

type Producer added in v1.9.3

type Producer struct {
	core.Connection
	// contains filtered or unexported fields
}

func (*Producer) MarshalJSON added in v1.9.3

func (p *Producer) MarshalJSON() ([]byte, error)

func (*Producer) Start added in v1.9.3

func (p *Producer) Start() error

func (*Producer) Stop added in v1.9.3

func (p *Producer) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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