google / visionai

BSD 3-Clause "New" or "Revised" License
43 stars 12 forks source link

vaictl error when streaming example file Error parsing metadata #10

Closed thientn closed 1 year ago

thientn commented 1 year ago

Hi team. I run a vaictl command to stream from local example file street_vehicles_people.mp4 following the tutorial Vertex AI Create Stream. This run fine for weeks until last few days.

export LOCAL_FILE=street_vehicles_people.mp4
export LOCATION_ID=us-central1
export PROJECT_ID=why-research-01
vaictl -v -p $PROJECT_ID     -l $LOCATION_ID     -c application-cluster-0     --service-endpoint visionai.googleapis.com send video-file to streams 'office-stream' --file-path $LOCAL_FILE --loop

Now it returns error starting with "Error parsing metadata"

E0510 07:31:56.331582751  114273 hpack_parser.cc:1216]       Error parsing metadata: error=invalid value key=content-type value=text/html
E20230510 07:31:57.092234 114281 gstreamer_runner.cc:85] Error from gstreamer element qtdemux2: This file contains no playable streams.
E20230510 07:31:57.092674 114281 gstreamer_runner.cc:88] Additional debug info: third_party/gstreamer/subprojects/gst_plugins_good/gst/isomp4/qtdemux.c(501): gst_qtdemux_post_no_playable_stream_error (): /GstPipeline:pipeline2/GstQTDemux:qtdemux2:
no known streams found

Try without the "--loop" param and it returns slightly different error message, here is full log:


$ vaictl -v -p why-research-01 -l us-central1 -c application-cluster-0 --service-endpoint visionai.googleapis.com send video-file to streams office-stream --file-path street_vehicles_people.mp4 
ingest_policy:{continuous_mode:true} capture_config:{name:"FileSourceCapture" source_urls:"street_vehicles_people.mp4" attr:{key:"loop" value:"false"}} filter_config:{name:"NoopFilter"} event_writer_config:{name:"StreamsEventWriter" attr:{key:"encoded" value:"false"} attr:{key:"sender_name" value:""} attr:{key:"stream_id" value:"office-stream"} cluster_selection:{service_endpoint:"visionai.googleapis.com:443" project_id:"why-research-01" location_id:"us-central1" cluster_id:"application-cluster-0"}}
I20230510 07:37:28.778043 114426 event_manager.cc:62] Generated event-id: uv5z8vlb
I20230510 07:37:28.778661 114429 streams_event_writer.cc:45] An empty sender name was supplied; assigning the generated name "CVs3dzWV".
GstMotionMetaAPI register.
E0510 07:37:30.073294688  114429 hpack_parser.cc:1216]       Error parsing metadata: error=invalid value key=content-type value=text/html
E20230510 07:37:31.802548 114420 ingester.cc:241] UNIMPLEMENTED: Received http2 header with status: 404; while checking if a stream exists in the cluster; while opening event "uv5z8vlb"; while writing a packet into an event sink; while handling a packet filtered element
E20230510 07:37:31.803083 114420 ingester_app.cc:71] UNKNOWN: The dataflow encounterd an error. See logs for more details.; while stopping modules

I also got similar error "Error parsing metadata" & "no known stream" when running vaictl with my rtsp feed.

Not sure if this error is because of same root cause as #9

dchao34 commented 1 year ago

That's correct; the fix in rolling out and should land around Friday.

dchao34 commented 1 year ago

This should be fixed now. You can reopen if it is not resolved; thanks!