mcopy/app/lib/ffmpeg
Matt McWilliams 4dc988c5bb Resolves #83; Adds the -hwaccel auto flag to all ffmpeg output commands. May not be used unless the source video is an accelerated format. 2024-05-24 15:43:52 -04:00
..
Readme.md Correct lib jsdocs in modules. Update tests to catch new error in mscript. 2024-05-24 15:23:58 -04:00
index.d.ts Correct lib jsdocs in modules. Update tests to catch new error in mscript. 2024-05-24 15:23:58 -04:00
index.js Resolves #83; Adds the -hwaccel auto flag to all ffmpeg output commands. May not be used unless the source video is an accelerated format. 2024-05-24 15:43:52 -04:00
index.js.map Resolves #83; Adds the -hwaccel auto flag to all ffmpeg output commands. May not be used unless the source video is an accelerated format. 2024-05-24 15:43:52 -04:00
package.json Install libs from intval_go_node project 2019-02-08 12:46:58 -05:00

Readme.md

Modules

ffmpeg
lib/ffmpeg

ffmpeg

lib/ffmpeg

lib/ffmpeg~Creates an ffmpeg class

Kind: inner class of lib/ffmpeg

new Creates an ffmpeg class(sys)

Param Type Description
sys object System object to be used to get temp directory

lib/ffmpeg~FFMPEG

Class representing all ffmpeg features.

Kind: inner class of lib/ffmpeg

ffmpeG.init()

Async method to call async functions from constructor

Kind: instance method of FFMPEG

ffmpeG.padded_frame(i) ⇒ string

Add padding to a number to 5 places. Return a string.

Kind: instance method of FFMPEG
Returns: string - Padded string

Param Type Description
i integer Integer to pad

ffmpeG.parseStderr(line)

Parse the stderr output of ffmpeg

Kind: instance method of FFMPEG

Param Type Description
line string Stderr line

ffmpeG.frame(state, light) ⇒ string

Render a single frame from a video or image to a png.

Kind: instance method of FFMPEG
Returns: string - Path of frame

Param Type Description
state object State object containing file data
light object Object containing color information for frame

ffmpeG.frames(video, obj) ⇒ ?

Render all frames in a video to the temp directory. Not in use.

Kind: instance method of FFMPEG

Param Type Description
video string Path to video
obj object Not sure

ffmpeG.clear(frame) ⇒ boolean

Clears a specific frame from the tmp directory

Kind: instance method of FFMPEG
Returns: boolean - True if successful, false if not

Param Type Description
frame integer Integer of frame to clear

ffmpeG.clearAll()

Deletes all frames in temp directory.

Kind: instance method of FFMPEG

ffmpeG.checkDir()

Checks if mcopy temp directory exists. If it doesn't, creates it.

Kind: instance method of FFMPEG