27 lines
577 B
Text
27 lines
577 B
Text
oxgt-tools
|
|
|
|
Tools
|
|
oxframe
|
|
get frame from movie, image can be resized by adding --width or --height
|
|
oxtimeline
|
|
create timeline from video
|
|
oxinfo
|
|
output information about video, output can in xml, json or cfg format
|
|
oxposter
|
|
render 0xdb poster
|
|
oxicon
|
|
extract icon from frame
|
|
|
|
Python API
|
|
import oxgst
|
|
|
|
video = oxgst.Video(videoFile)
|
|
video.frame(pos_in_nanoseconds)
|
|
>>> <PIL Image>
|
|
|
|
timeline = oxgst.Timeline(videoFile)
|
|
timeline.extract(timeline_prefix, width, height)
|
|
|
|
info = oxgst.Info(videoFile)
|
|
info.metadata
|
|
{videoCodec:..}
|