Replies: 8 comments 2 replies
-
Attached debug trace after enabling trace level debugging. 2022-10-17T05:40:56.123Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. INFO:Camera:Stop capturing from camera.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING} |
Beta Was this translation helpful? Give feedback.
-
Hi @liugongqx, |
Beta Was this translation helpful? Give feedback.
-
Closing due to no response. Feel free to open a new issue in case of further issues / questions |
Beta Was this translation helpful? Give feedback.
-
Hey @niyatim23, sorry to bump this but I have a quick question about this comment. Is there a good way to close / terminate a stream from the producer side without terminating the GStreamer pipeline? Specifically, I am asking about a case where you want to start and stop the stream in an intermittent fashion. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@pwolfe1, you mean to say the pipeline will be open but you will start and stop the stream associated with the pipeline intermittently? |
Beta Was this translation helpful? Give feedback.
-
Yeah exactly. What I am currently doing is deleting and reconstructing the pipeline as needed. This is totally sufficient for our use case but I am curious if there is a better way to go about this. |
Beta Was this translation helpful? Give feedback.
-
Bumping this as I am still looking for a good way to implement intermittent streaming via |
Beta Was this translation helpful? Give feedback.
-
Here's a pending PR with intermittent kvssink functionality and sample. Feel free to try it out if this meets your use cases. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I integrated KVS with gi/GST framework and it works fine. However, even I sent out EOS, it can not terminate KVS properly.
** Logging **
2022-10-13T21:18:51.654Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postReadCallback()INFO:Camera:End of stream received. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:18:51.676Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. INFO:Camera:Stop capturing from camera.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:18:51.678Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. INFO:Camera:Saved timestamp file.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.148Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. : Wrote 14122 bytes to Kinesis Video. Upload stream handle: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.148Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] INFO - stopKinesisVideoStreamSync(): Synchronously stopping Kinesis Video Stream 0000558d2f4b93b0.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.148Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140643222574656] INFO - getStreamData(): Handle 0 waiting for last persisted ack with ts 16656959319170000. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.148Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postReadCallback(): Wrote 9857 bytes to Kinesis Video. Upload stream handle: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postReadCallback(): Pausing CURL read for upload handle: 0 waiting for last ack.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postWriteCallback(): Curl post body write function for stream with handle: c9cac44b-a1ed-4216-a938-683cedf37378 and upload handle: 0 returned: {"EventType":"RECEIVED","FragmentTimecode":1665695931917,"FragmentNumber":"91343852333181452392841337343644777997702132350"}. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - fragmentAckReceivedHandler invoked. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postWriteCallback(): Curl post body write function for stream with handle: c9cac44b-a1ed-4216-a938-683cedf37378 and upload handle: 0 returned: {"EventType":"PERSISTED","FragmentTimecode":1665695930584,"FragmentNumber":"91343852333181452387889577186503256687374790467"}. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - fragmentAckReceivedHandler invoked. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postReadCallback(): Pausing CURL read for upload handle: 0 waiting for last ack.. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postWriteCallback(): Curl post body write function for stream with handle: c9cac44b-a1ed-4216-a938-683cedf37378 and upload handle: 0 returned: {"EventType":"PERSISTED","FragmentTimecode":1665695931917,"FragmentNumber":"91343852333181452392841337343644777997702132350"}. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - fragmentAckReceivedHandler invoked. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] INFO - getStreamData(): Indicating an EOS after last persisted ACK is received for stream upload handle 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - streamClosedHandler invoked for upload handle: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - Reported streamClosed callback for stream handle 94064872231856. Upload handle 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] INFO - postReadCallback(): Reported end-of-stream for stream c9cac44b-a1ed-4216-a938-683cedf37378. Upload handle: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] DEBUG - postReadCallback(): Wrote 0 bytes to Kinesis Video. Upload stream handle: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140641650566720] INFO - Sending eos. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:51 [140643222574656] DEBUG - putStreamCurlHandler(): Network thread for Kinesis Video stream: c9cac44b-a1ed-4216-a938-683cedf37378 with upload handle: 0 exited. http status: 200. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:18:54 [140641650566720] WARN - putKinesisVideoFrame(): Failed to submit frame to Kinesis Video client. status: 0x52000052 decoding timestamp: 0 presentation timestamp: 0. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:19:12 [140643247941184] WARN - checkIntermittentProducerCallback(): Failed to submit auto eofr with 0x52000052, for stream name: c9cac44b-a1ed-4216-a938-683cedf37378. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:19:12 [140643247941184] ERROR - checkIntermittentProducerCallback(): operation returned status code: 0x52000052. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
2022-10-13T21:19:22.149Z [INFO] (Copier) com.amazon.CaptureComponent: stdout. 2022-10-13 14:19:12 [140643247941184] ERROR - timerQueueExecutor(): operation returned status code: 0x52000052. {scriptName=services.com.amazon.CaptureComponent.lifecycle.Run.Script, serviceName=com.amazon.CaptureComponent, currentState=RUNNING}
** Any design considerations/constraints **
We use Gst.parse_launch(command) to trigger command line. I didn't add any pad for prob when adding kvssink
How we add kvssink:
How we clean up:
** If you would not like to open an issue to discuss your solution in open-platform, please email your question to [email protected] **
Beta Was this translation helpful? Give feedback.
All reactions