Gstreamer is unable to play videos - gstreamer

I ran the command. I have an ubuntu 18 running on arm64 with an external monitor connected to nvidia jetson xavier.
gst-launch-1.0 videotestsrc ! videoconvert ! autovideosink
However it doesn't do anything . neither does it play any video. Terminal return following line
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

Related

How do i install exiftool on heroku

i have tried the buildpack but non worked. i got these error when trying to install https://github.com/velizarn/heroku-buildpack-exiftool
Installing exiftool 11.36
Fetching https://123456.mycdn.org/downl/Image-ExifTool-11.36.tar.gz
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
! Push rejected, failed to compile exiftool app.
! Push failed
please can someone assist me. my django needs exiftool before it can work.

Put the webcam data to kinesis video stream

Im very new to Api and our use case is to stream the live data from webcam to kinesis video stream (kvs).
Steps Taken : Created the ubuntu server on aws and installed the CPP SDK.
created the kinesis video stream in aws
downloaded and installed the Gstreamer on my local.
I was trying to put the rtsp sample data to gstream which is on Ec2ubuntu server server i ran below query
$ gst-launch-1.0 rtspsrc location="rtsp://YourCameraRtspUrl" short-header=TRUE ! rtph264depay ! video/x-h264, format=avc,alignment=au ! kvssink stream-name="YourStreamName" storage-size=512 access-key="YourAccessKey" secret-key="YourSecretKey" aws-region="YourAWSRegion"
im getting attached error may be we need to open some port on ec2 ?
Suggestion required :how can i put my local webcam video to kinesis ?
thanks
If you use macOS, you can stream your webcam into Kinesis Video Stream like the command below setting fps 1;
AWS_ACCESS_KEY_ID=<YOUR_AWS_ACCESS_KEY_ID>
AWS_SECRET_ACCESS_KEY=<YOUR_AWS_SECRET_ACCESS_KEY>
AWS_REGION=<YOUR_AWS_REGION>
STREAM_NAME=<YOUR_STREAM_NAME>
gst-launch-1.0 -v avfvideosrc \
! clockoverlay font-desc="Sans bold 60px" \
! videorate \
! video/x-raw,framerate=1/1 \
! vtenc_h264_hw allow-frame-reordering=FALSE realtime=TRUE max-keyframe-interval=2 bitrate=512 \
! h264parse \
! video/x-h264,stream-format=avc,alignment=au \
! kvssink stream-name="${STREAM_NAME}" storage-size=512 \
access-key="${AWS_ACCESS_KEY_ID}" \
secret-key="${AWS_SECRET_ACCESS_KEY}" \
aws-region="${AWS_REGION}" \
frame-timecodes=true \
framerate=1
It's not immediately clear from your question what your scenario is. I assume if you refer to a webcam then it's attached to your computer. Depending of your use case, you could check out the producer libraries that will help integrating.
Java: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-java
C++: https://github.com/awslabs/amazon-kinesis-video-streams-producer-sdk-cpp
C: https://github.com/awslabs/amazon-kinesis-video-streams-producer-c
You could ask relevant questions and get support in GitHub by cutting an Issue in the appropriate repository

gstreamer won't play rtsp

I have this gstreamer command that plays stream from one Ubuntu 16.04 box but two others.
As far as I know I have same packages installed regarding gstreamer on all boxes because I ran sudo apt-get install gstreamer1-0* so that all gstreamer 1.0 packages are installed. I find it strange that it does not work on other
Following commands where used:
gst-launch-1.0 rtspsrc location=rtsp://<user>:<password>#<IP>/axis-media/media.amp user-id=root user-pw=xxxxxxxxxxc latency=150 ! decodebin max-size-time=30000000000 ! videoconvert ! autovideosink
or
gst-launch-1.0 playbin uri=rtsp://<user>:<password>#<IP>/axis-media/media.amp
This will open a stream of a Axis camera with h264. I don't understand why it does not work on two Ubuntu 16.04 boxes but works on one. All of these are the same Ubuntu 16.04 with same gstreamer packages installed.
Could there maybe be another package except gstreamer that is necessary in order for gstreamer to stream rtsp?
The error a get when it is not playing
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayX11\)\ gldisplayx11-0";
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://root:pass#172.26.134.166/axis-media/media.amp
(gst-launch-1.0:4036): GLib-GIO-WARNING **: Ignoring invalid ignore_hosts value '*]'
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(6795): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Found the command from this webpage:
http://gstreamer-devel.966125.n4.nabble.com/gstreamer-client-pipeline-to-view-video-from-AXIS-M1054-Network-Camera-td4667092.html
Well it seems that it was the proxy that caused the issue. When I disabled proxy I was able to stream with gstreamer on all boxes.
Best regards

Sidekiq logging to both terminal and log file

I'm using Sidekiq to queue up some jobs in my Rails server. As per the Logging wiki, it's as simple as adding the following in config/sidekiq.yml
---
:verbose: false
:pidfile: ./tmp/pids/sidekiq.pid
:logfile: ./log/sidekiq.log
:concurrency: 25
However, now this only logs to that log file, what if I do want to write out to STDOUT as well (atleast in development)?
Get rid of the logfile statement.
bundle exec sidekiq | tee ./log/sidekiq.log

error: failed to push some refs to 'git#heroku.com:dry-plains-3718.git'

Here what i am getting :
Counting objects: 10, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (10/10), 3.60 KiB, done.
Total 10 (delta 0), reused 0 (delta 0)
-----> Heroku receiving push
! Heroku push rejected, no Cedar-supported app detected
To git#heroku.com:dry-plains-3718.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:dry-plains-3718.git'
Earlier i thought it was problem of .gitignore file but that also working fine . I have ingnored my virutal env and *.pyc as given in documentation.
I tried :
heroku create --stack cedar
also I had to add my pub key to heroku.
heroku keys:add ~/.ssh/id_rsa.pub
this is also not able solve my problem.
I don't know much about the heroku implementation. Anything specific I should check or try?
Please help me as i referred many documents but still getting same error . Thanks in advance :)
I believe cedar recognizes django apps by the existance of a requirements.txt file.
Pleaee check is to be sure you have created 'requirements.txt' and 'Procfile' in the root of your source tree that is being pushed. The names are case sensitive.
This tutorial includes instructions on creating them:
https://devcenter.heroku.com/articles/django