diff --git a/video/beta/src/test/java/com/example/video/DetectIT.java b/video/beta/src/test/java/com/example/video/DetectIT.java index 9e81648cadc..e1c6d943427 100644 --- a/video/beta/src/test/java/com/example/video/DetectIT.java +++ b/video/beta/src/test/java/com/example/video/DetectIT.java @@ -84,7 +84,8 @@ public void testTrackObjects() throws Exception { @Test public void testTrackObjectsGcs() throws Exception { - VideoAnnotationResults result = TrackObjects.trackObjectsGcs("gs://demomaker/cat.mp4"); + VideoAnnotationResults result = TrackObjects.trackObjectsGcs( + "gs://cloud-samples-data/video/cat.mp4"); boolean textExists = false; for (ObjectTrackingAnnotation objectTrackingAnnotation : result.getObjectAnnotationsList()) { diff --git a/video/cloud-client/README.md b/video/cloud-client/README.md index 3565429ce1f..20f71eeeef8 100644 --- a/video/cloud-client/README.md +++ b/video/cloud-client/README.md @@ -38,19 +38,19 @@ After you have authorized, you can analyze videos. Detect Labels ``` -mvn exec:java -DDetect -Dexec.args="labels gs://demomaker/cat.mp4" +mvn exec:java -DDetect -Dexec.args="labels gs://cloud-samples-data/video/cat.mp4" mvn exec:java -DDetect -Dexec.args="labels-file ./resources/cat.mp4" ``` Detect Explicit content annotations ``` -mvn exec:java -DDetect -Dexec.args="explicit-content gs://demomaker/gbikes_dinosaur.mp4" +mvn exec:java -DDetect -Dexec.args="explicit-content gs://cloud-samples-data/video/gbikes_dinosaur.mp4" ``` Detect Shots ``` -mvn exec:java -DDetect -Dexec.args="shots gs://demomaker/gbikes_dinosaur.mp4" +mvn exec:java -DDetect -Dexec.args="shots gs://cloud-samples-data/video/gbikes_dinosaur.mp4" ``` Transcribe Speech @@ -60,7 +60,7 @@ mvn exec:java -DDetect -Dexec.args="speech-transcription gs://python-docs-sample From Windows, you may need to supply your classpath differently, for example: ``` -mvn exec:java -DDetect -Dexec.args="labels gs://demomaker/cat.mp4" +mvn exec:java -DDetect -Dexec.args="labels gs://cloud-samples-data/video/cat.mp4" ``` or ``` diff --git a/video/cloud-client/src/main/java/com/example/video/QuickstartSample.java b/video/cloud-client/src/main/java/com/example/video/QuickstartSample.java index 24d9cafd1f5..86c22637153 100644 --- a/video/cloud-client/src/main/java/com/example/video/QuickstartSample.java +++ b/video/cloud-client/src/main/java/com/example/video/QuickstartSample.java @@ -39,7 +39,7 @@ public static void main(String[] args) throws Exception { // Instantiate a video intelligence client try (VideoIntelligenceServiceClient client = VideoIntelligenceServiceClient.create()) { // The Google Cloud Storage path to the video to annotate. - String gcsUri = "gs://demomaker/cat.mp4"; + String gcsUri = "gs://cloud-samples-data/video/cat.mp4"; // Create an operation that will contain the response when the operation completes. AnnotateVideoRequest request = AnnotateVideoRequest.newBuilder() diff --git a/video/cloud-client/src/test/java/com/example/video/DetectIT.java b/video/cloud-client/src/test/java/com/example/video/DetectIT.java index 37cc580845d..86a0530bd54 100644 --- a/video/cloud-client/src/test/java/com/example/video/DetectIT.java +++ b/video/cloud-client/src/test/java/com/example/video/DetectIT.java @@ -38,10 +38,10 @@ public class DetectIT { private ByteArrayOutputStream bout; private PrintStream out; - static final String LABEL_GCS_LOCATION = "gs://demomaker/cat.mp4"; + static final String LABEL_GCS_LOCATION = "gs://cloud-samples-data/video/cat.mp4"; static final String LABEL_FILE_LOCATION = "./resources/cat.mp4"; - static final String SHOTS_FILE_LOCATION = "gs://demomaker/gbikes_dinosaur.mp4"; - static final String EXPLICIT_CONTENT_LOCATION = "gs://demomaker/cat.mp4"; + static final String SHOTS_FILE_LOCATION = "gs://cloud-samples-data/video/gbikes_dinosaur.mp4"; + static final String EXPLICIT_CONTENT_LOCATION = "gs://cloud-samples-data/video/cat.mp4"; static final String SPEECH_GCS_LOCATION = "gs://java-docs-samples-testing/video/googlework_short.mp4"; private static final List POSSIBLE_TEXTS = Arrays.asList( @@ -106,7 +106,7 @@ public void testSpeechTranscription() throws Exception { @Test public void testTrackObjects() throws Exception { - VideoAnnotationResults result = TrackObjects.trackObjects("resources/cat.mp4"); + VideoAnnotationResults result = TrackObjects.trackObjects(LABEL_FILE_LOCATION); boolean textExists = false; for (ObjectTrackingAnnotation objectTrackingAnnotation : result.getObjectAnnotationsList()) { @@ -121,7 +121,7 @@ public void testTrackObjects() throws Exception { @Test public void testTrackObjectsGcs() throws Exception { - VideoAnnotationResults result = TrackObjects.trackObjectsGcs("gs://demomaker/cat.mp4"); + VideoAnnotationResults result = TrackObjects.trackObjectsGcs(LABEL_GCS_LOCATION); boolean textExists = false; for (ObjectTrackingAnnotation objectTrackingAnnotation : result.getObjectAnnotationsList()) {