gcloud beta ml video detect-explicit-content Stay organized with collections Save and categorize content based on your preferences.
- NAME
- gcloud beta ml video detect-explicit-content - detect explicit content in videos
- SYNOPSIS
gcloud beta ml video detect-explicit-contentINPUT_PATH[--async][--output-uri=OUTPUT_URI][--region=REGION][--segments=[SEGMENTS,…]][GCLOUD_WIDE_FLAG …]
- DESCRIPTION
(BETA)Detect adult content within a video. Adult content iscontent generally appropriate for 18 years of age and older, including but notlimited to nudity, sexual activities, and pornography (including cartoons oranime).The response includes a bucketized likelihood value, from VERY_UNLIKELY toVERY_LIKELY. When Explicit Content Detection evaluates a video, it does so on aper-frame basis and considers visual content only (not audio).
- EXAMPLES
- To detect explicit content in a video file named'gs://my_bucket/input_file.mp4', run the following command.:
gcloudbetamlvideodetect-explicit-contentgs://my_bucket/input_file.mp4 - POSITIONAL ARGUMENTS
INPUT_PATH- Path to the video to be analyzed. Must be a local path or a Google Cloud StorageURI.
- FLAGS
--async- Return immediately, without waiting for the operation in progress to complete.
--output-uri=OUTPUT_URI- Location to which the results should be written. Must be a Google Cloud StorageURI.
--region=REGION- Optional Cloud region where annotation should take place. If no region isspecified, a region will be determined based on video file location.
REGIONmust be one of:asia-east1,europe-west1,us-east1,us-west1. --segments=[SEGMENTS,…]- Segments from the video which you want to analyze (by default, the entire videowill be treated as one segment). Must be in the formatSTART1:END1[,START2:END2,…] (inclusive). START and END of segments mustbe a properly formatted duration string of the form
HhMmSswhere:*Histhenumberofhoursfrombeginningofvideo*Misthenumberofminutesfromthebeginningofvideo*Sisthenumberofsecondsfromthebeginningofthevideo
H, M and S can be specified as ints or floats for fractional units (tomicrosecond resolution). Unit chars (e.g.
h,mors) are required. Microseconds can be specified using fractionalseconds e.g. 0.000569s == 569 microseconds.Examples:
0s:23.554048s,24s:29.528064s
0:1m40s,3m50s:5m10.232265s
- GCLOUD WIDE FLAGS
- These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$gcloud helpfor details. - API REFERENCE
- This command uses the
videointelligence/v1API. The fulldocumentation for this API can be found at:https://cloud.google.com/video-intelligence/docs/ - NOTES
- This command is currently in beta and might change without notice. Thesevariants are also available:
gcloudmlvideodetect-explicit-contentgcloudalphamlvideodetect-explicit-content
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-22 UTC.