pyflink.multimodal.expression.VideoExpressionAccessor#
- class VideoExpressionAccessor(expression)[source]#
Video operations available on a DataFrame expression.
These methods use the expression on the left side as the video URI input. For example,
col("uri").video.metadata()is the expression-accessor form ofvideo_metadata(col("uri")).- Examples::
>>> from pyflink.dataframe import col >>> df = df.with_column("metadata", col("uri").video.metadata()) >>> df = df.with_column( ... "frames", col("uri").video.extract_frames(max_frames=16))
Methods
extract_frames(*[, frame_selector, ...])Extract selected frames from this expression as an array.
metadata(*[, on_error, container_options, ...])Probe video metadata for this expression.