GithubHelp home page GithubHelp logo

Comments (6)

MushMal avatar MushMal commented on July 4, 2024

@dpmcgarry, the sample application tries to allocate 512MB of storage which apparently is not available on your system. The code throws an exception which is not caught as it's a sample app and we haven't yet hardened it for these types of failures. Generally, in a real-life application, one would try to determine how much storage would be needed and will handle the failures gracefully.

In this case I would recommend changing the allocation from 512MB to a much smaller (single stream PI with limited bandwidth and good networking would require far less storage).

instead of
device_info.storageInfo.storageSize = 512 * 1024 * 1024;

please specify
device_info.storageInfo.storageSize = 128 * 1024 * 1024;

We will, however, take a note and update the sample application to have more dynamic allocation.
We will also document the best practice on determining how much storage one would need and how to configure the StreamDefinition better for your needs.

from amazon-kinesis-video-streams-producer-sdk-cpp.

dpmcgarry avatar dpmcgarry commented on July 4, 2024

Hmmm that doesn't make sense...I have 24G free for my root partition:
pi@pi-dev:~/amazon-kinesis-video-streams-producer-sdk-cpp/kinesis-video-native-build $ df -h

Filesystem Size Used Avail Use% Mounted on
/dev/root 30G 4.3G 24G 16% /
devtmpfs 182M 0 182M 0% /dev
tmpfs 186M 0 186M 0% /dev/shm
tmpfs 186M 2.7M 183M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 186M 0 186M 0% /sys/fs/cgroup
/dev/mmcblk0p1 41M 21M 21M 52% /boot
tmpfs 38M 0 38M 0% /run/user/1000

from amazon-kinesis-video-streams-producer-sdk-cpp.

MushMal avatar MushMal commented on July 4, 2024

The available storage is on eMMC - read file system. The current implementations of the heap are all RAM based. We will be adding a hybrid storage which would utilize the file-backed storage as a spill-over later.

This said, for your PI you will hardly need that large of the storage anyway.

from amazon-kinesis-video-streams-producer-sdk-cpp.

dpmcgarry avatar dpmcgarry commented on July 4, 2024

Ok now i am getting an error stating unable to set the pipeline to the playing state:

getStreamingEndpointResultEvent(): Get streaming endpoint result event.DEBUG - streamingTokenHandler invoked
INFO - Refreshing credentials. Force refreshing: 1 Now time is: 28023 Expiration: 30422
INFO - New credentials expiration is 30423

getStreamingTokenResultEvent(): Get streaming token result event.DEBUG - Kinesis Video stream demo-stream is Ready.
DEBUG - Stream is ready
Unable to set the pipeline to the playing state.
INFO - Freeing Kinesis Video Stream demo-stream

freeKinesisVideoStream(): Freeing Kinesis Video stream.DEBUG - streamDataAvailableHandler invoked
DEBUG - streamClosedHandler invoked

from amazon-kinesis-video-streams-producer-sdk-cpp.

dpmcgarry avatar dpmcgarry commented on July 4, 2024

Disregard. Was able to get it working by running modprobe

from amazon-kinesis-video-streams-producer-sdk-cpp.

ohlr avatar ohlr commented on July 4, 2024

I had the same issue on Raspberry Pi 3B
Changing from device_info.storageInfo.storageSize = 512 * 1024 * 1024; to
device_info.storageInfo.storageSize = 128 * 1024 * 1024 in
kinesis-video-gst-demo/kinesis_video_gstreamer_sample_app.cpp line 126 worked for me.

from amazon-kinesis-video-streams-producer-sdk-cpp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.