diff --git a/video-intelligence/analyze.js b/video-intelligence/analyze.js index 436859fd0a..1d62dbc949 100644 --- a/video-intelligence/analyze.js +++ b/video-intelligence/analyze.js @@ -594,14 +594,14 @@ async function main() { ) .example(`node $0 shots gs://cloud-samples-data/video/googlework_short.mp4`) .example(`node $0 labels-gcs gs://cloud-samples-data/video/cat.mp4`) - .example(`node $0 labels-file cat.mp4`) - .example(`node $0 safe-search gs://cloud-samples-data/video/cat.mp4`) + .example(`node $0 labels-file googlework_short.mp4`) + .example(`node $0 safe-search gs://cloud-samples-data/video/googlework_short.mp4`) .example(`node $0 transcription gs://cloud-samples-data/video/cat.mp4`) .example(`node $0 video-text ./resources/googlework_short.mp4`) .example( `node $0 video-text-gcs gs://nodejs-docs-samples/video/googlework_short.mp4` ) - .example(`node $0 track-objects ./resources/cat.mp4`) + .example(`node $0 track-objects ./resources/googlework_short.mp4`) .example(`node $0 track-objects-gcs gs://nodejs-docs-samples/video/cat.mp4`) .wrap(120) .recommendCommands() diff --git a/video-intelligence/system-test/analyze-streaming-annotation-to-storage.test.js b/video-intelligence/system-test/analyze-streaming-annotation-to-storage.test.js index 91c02ed973..b94c317272 100644 --- a/video-intelligence/system-test/analyze-streaming-annotation-to-storage.test.js +++ b/video-intelligence/system-test/analyze-streaming-annotation-to-storage.test.js @@ -21,7 +21,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-annotation-to-storage.js`; const project = process.env.GCLOUD_PROJECT; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; const outputUri = 'gs://' + project + '/VIDEO_STREAMING_OUTPUT'; describe('streaming annotation to storage', () => { diff --git a/video-intelligence/system-test/analyze-streaming-automl-classification.test.js b/video-intelligence/system-test/analyze-streaming-automl-classification.test.js index 4957938202..a17f7230cd 100644 --- a/video-intelligence/system-test/analyze-streaming-automl-classification.test.js +++ b/video-intelligence/system-test/analyze-streaming-automl-classification.test.js @@ -23,7 +23,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-automl-classification.js`; const modelId = `VCN3094808572840640512`; const project = process.env.GCLOUD_PROJECT; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; describe('streaming automl classification', () => { it('should classify the action in the streaming video', async () => { diff --git a/video-intelligence/system-test/analyze-streaming-labels.test.js b/video-intelligence/system-test/analyze-streaming-labels.test.js index f2571cc7d1..5365e1c4ff 100644 --- a/video-intelligence/system-test/analyze-streaming-labels.test.js +++ b/video-intelligence/system-test/analyze-streaming-labels.test.js @@ -21,7 +21,7 @@ const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-labels.js`; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; describe('streaming label', () => { it('should analyze labels in a streaming video', async () => { diff --git a/video-intelligence/system-test/analyze-streaming-object.test.js b/video-intelligence/system-test/analyze-streaming-object.test.js index a492c4f7ac..e115d07282 100644 --- a/video-intelligence/system-test/analyze-streaming-object.test.js +++ b/video-intelligence/system-test/analyze-streaming-object.test.js @@ -21,7 +21,7 @@ const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-object.js`; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; describe('streaming object', () => { it('should track an object in a streaming video', async () => { diff --git a/video-intelligence/system-test/analyze-streaming-safe-search.test.js b/video-intelligence/system-test/analyze-streaming-safe-search.test.js index 19559045c5..a193fd2925 100644 --- a/video-intelligence/system-test/analyze-streaming-safe-search.test.js +++ b/video-intelligence/system-test/analyze-streaming-safe-search.test.js @@ -20,7 +20,7 @@ const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-safe-search.js`; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; describe('streaming safe search', () => { it('should analyze explicit content in a streaming video', async () => { diff --git a/video-intelligence/system-test/analyze-streaming-shot-change.test.js b/video-intelligence/system-test/analyze-streaming-shot-change.test.js index 724349d48f..99d6b34e19 100644 --- a/video-intelligence/system-test/analyze-streaming-shot-change.test.js +++ b/video-intelligence/system-test/analyze-streaming-shot-change.test.js @@ -21,7 +21,7 @@ const {describe, it} = require('mocha'); const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = `node analyze-streaming-shot-change.js`; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; describe('streaming shot change', () => { it('should analyze shot changes in a streaming video', async () => { diff --git a/video-intelligence/system-test/analyze.test.js b/video-intelligence/system-test/analyze.test.js index d382aa3669..01853d77a0 100644 --- a/video-intelligence/system-test/analyze.test.js +++ b/video-intelligence/system-test/analyze.test.js @@ -24,7 +24,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = 'node analyze.js'; const catUrl = 'gs://cloud-samples-data/video/cat.mp4'; -const file = 'resources/cat.mp4'; +const file = 'resources/googlework_short.mp4'; const file2 = 'resources/googlework_short.mp4'; const possibleTexts = /Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/; @@ -32,7 +32,7 @@ describe('analyze samples', () => { // analyze_labels_local it('should analyze labels in a local file', async () => { const output = execSync(`${cmd} labels-file ${file}`); - assert.match(output, /Label whiskers occurs at:/); + assert.match(output, /Label/); assert.match(output, /Confidence: \d+\.\d+/); }); diff --git a/video-intelligence/system-test/analyze.v1p2beta1.test.js b/video-intelligence/system-test/analyze.v1p2beta1.test.js index fb418ceabb..893605768c 100644 --- a/video-intelligence/system-test/analyze.v1p2beta1.test.js +++ b/video-intelligence/system-test/analyze.v1p2beta1.test.js @@ -24,7 +24,7 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cmd = 'node analyze.v1p2beta1.js'; const url = 'gs://cloud-samples-data/video/cat.mp4'; -const file1 = 'resources/cat.mp4'; +const file1 = 'resources/googlework_short.mp4'; const file2 = 'resources/googlework_short.mp4'; const possibleTexts = /Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;