Skip to content

Latest commit

 

History

History
112 lines (81 loc) · 2.18 KB

ffplay.md

File metadata and controls

112 lines (81 loc) · 2.18 KB

You can play any supported media with FFplay. These functions allow you to open and playback videos, images and audio and customize how it works.


def execplay(input: String, args: List[String] = List(), filters: List[String] = List(), quiet: Boolean = true, exec: String = "ffplay"): Int

Executes FFplay to play back the media located in the path input. The args that go here are the ones you generate with the functions seen here.

You can also pass common FFmpeg video and audio filters to FFplay through filters.


def setPlayVolume(volume: Byte): List[String]

Sets the volume ffplay will start at. The supported volume range goes from 0 to 100.


def disableBorder(): List[String]

Disables window border.


def disableDisplay(): List[String]

Disables the graphical FFplay display.


def setFullscreen(): List[String]

Sets fullscreen mode.


def setDimensions(x: Int, y: Int): List[String]

Sets the window size.


def setFrameDrop(): List[String]

Enables frame dropping to avoid desyncing the audio with the video.


def setLoop(times: Int): List[String]

Sets how many times ffplay loops the media. 0 means forever.


def setAutoExit(): List[String]

FFplay will exit after reaching the end of the media playback. This isn't recommended for image files (except animated GIFs), because FFplay will exit instantly.


def setExitOnMouse(): List[String]

FFscala stops media playback on any mouse press.


def setExitOnKey(): List[String]

FFscala stops media playback on any key press.


def setWindowTitle(title: String): List[String]

Sets the title of the window FFplay opens, in case it opens one.


def setShowMode(mode: String): List[String]

Sets what the FFplay graphical window displays.

Supported modes:

  • video (default)
  • waves
  • rdft

def setSeekInterval(interval: Float): List[String]

Sets the seek interval for when you seek using the left and right arrow keys.


def enableHWaccel(): List[String]

Enables hardware acceleration for playback.