Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

HEADLESS=True yet recieving GStreamer warnings #55

Open
ohioacer opened this issue Jan 13, 2021 · 5 comments
Open

HEADLESS=True yet recieving GStreamer warnings #55

ohioacer opened this issue Jan 13, 2021 · 5 comments

Comments

@ohioacer
Copy link

ohioacer commented Jan 13, 2021

@nicholaskajoh, I really appreciate your project.

An issue I am experiencing is I'm still receiving GStreamer warnings despite the HEADLESS=True setting in the .env file (I used the .env.example).

The error I received when I typed python3 -m main is as follows:

Opening in BLOCKING MODE
NvMMLiteOpen : Block : BlockType = 261
NVMEDIA: Reading vendor.tegra.display-size : status: 6
NvMMLiteBlockCreate : Block : BlockType = 261
[ WARN:0] global /tmp/pip-install-oxrr8sjq/opencv-contrib-python/opencv/modules/videoio/src/cap_gstreamer.cpp (1761) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module qtdemux0 reported: Internal data stream error.
[ WARN:0] global /tmp/pip-install-oxrr8sjq/opencv-contrib-python/opencv/modules/videoio/src/cap_gstreamer.cpp (888) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global /tmp/pip-install-oxrr8sjq/opencv-contrib-python/opencv/modules/videoio/src/cap_gstreamer.cpp (480) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[2021-01-13 16:12:27,023] ERROR   : Invalid video source ./data/videos/sample_traffic_scene.mp4 {'label': 'INVALID_VIDEO_SOURCE'}

The file sample_traffic_scene.mp4 is there though in the proper directory (I downloaded it from the Google Drive link given in README).

I'm running it on Ubuntu on a Jetson Nano. Python 3 version 3.6.9

@nicholaskajoh
Copy link
Owner

Please run find . in the project root and share the result here. I want to confirm the video file was placed in the path the code is using.

@ohioacer
Copy link
Author

Pasting results below.

.
./tracker.py
./object_counting.jpg
./requirements.txt
./counter.py
./.pylintrc
./pycache
./pycache/main.cpython-36.pyc
./pycache/settings.cpython-36.pyc
./pycache/tracker.cpython-36.pyc
./pycache/counter.cpython-36.pyc
./pycache/ObjectCounter.cpython-36.pyc
./pytest.ini
./.git
./.git/refs
./.git/refs/heads
./.git/refs/heads/master
./.git/refs/remotes
./.git/refs/remotes/origin
./.git/refs/remotes/origin/HEAD
./.git/refs/tags
./.git/index
./.git/hooks
./.git/hooks/pre-rebase.sample
./.git/hooks/update.sample
./.git/hooks/prepare-commit-msg.sample
./.git/hooks/pre-applypatch.sample
./.git/hooks/pre-receive.sample
./.git/hooks/pre-commit.sample
./.git/hooks/applypatch-msg.sample
./.git/hooks/fsmonitor-watchman.sample
./.git/hooks/post-update.sample
./.git/hooks/pre-push.sample
./.git/hooks/commit-msg.sample
./.git/description
./.git/config
./.git/branches
./.git/info
./.git/info/exclude
./.git/objects
./.git/objects/info
./.git/objects/pack
./.git/objects/pack/pack-d9fd2ee0dfc001e53a592e0aee5273d171a68cc0.idx
./.git/objects/pack/pack-d9fd2ee0dfc001e53a592e0aee5273d171a68cc0.pack
./.git/logs
./.git/logs/refs
./.git/logs/refs/heads
./.git/logs/refs/heads/master
./.git/logs/refs/remotes
./.git/logs/refs/remotes/origin
./.git/logs/refs/remotes/origin/HEAD
./.git/logs/HEAD
./.git/packed-refs
./.git/HEAD
./.env
./.coverage
./.gitignore
./test_video
./hanap.txt
./LICENSE
./pytest.env
./README.md
./tests
./tests/conftest.py
./tests/pycache
./tests/pycache/conftest.cpython-36-pytest-5.1.3.pyc
./tests/pycache/conftest.cpython-27-PYTEST.pyc
./tests/.coverage
./tests/util
./tests/util/test_debugger.py
./tests/util/pycache
./tests/util/pycache/test_bounding_box.cpython-36-pytest-5.1.3.pyc
./tests/util/pycache/test_job.cpython-36-pytest-5.1.3.pyc
./tests/util/pycache/test_blob.cpython-36-pytest-5.1.3.pyc
./tests/util/pycache/test_vehicle_info.cpython-36-pytest-5.1.3.pyc
./tests/util/pycache/test_logger.cpython-36-pytest-5.1.3.pyc
./tests/util/pycache/test_debugger.cpython-36-pytest-5.1.3.pyc
./tests/util/test_job.py
./tests/util/test_bounding_box.py
./tests/util/test_logger.py
./tests/util/test_blob.py
./tests/util/test_vehicle_info.py
./main.py
./util
./util/debugger.py
./util/pycache
./util/pycache/image.cpython-36.pyc
./util/pycache/logger.cpython-36.pyc
./util/pycache/debugger.cpython-36.pyc
./util/pycache/object_info.cpython-36.pyc
./util/pycache/job.cpython-36.pyc
./util/pycache/blob.cpython-36.pyc
./util/pycache/bounding_box.cpython-36.pyc
./util/pycache/init.cpython-36.pyc
./util/pycache/detection_roi.cpython-36.pyc
./util/object_info.py
./util/detection_roi.py
./util/blob.py
./util/init.py
./util/image.py
./util/job.py
./util/bounding_box.py
./util/logger.py
./wget-log
./.github
./.github/workflows
./.github/workflows/ivy.yml
./.pytest_cache
./.pytest_cache/v
./.pytest_cache/v/cache
./.pytest_cache/v/cache/nodeids
./.pytest_cache/v/cache/lastfailed
./.pytest_cache/v/cache/stepwise
./.pytest_cache/.gitignore
./.pytest_cache/CACHEDIR.TAG
./.pytest_cache/README.md
./settings.py
./detectors
./detectors/detector.py
./detectors/pycache
./detectors/pycache/detector.cpython-36.pyc
./detectors/haarcascade.py
./detectors/detectron2.py
./detectors/yolo.py
./detectors/tfoda.py
./ObjectCounter.py
./.env.example
./data
./data/.gitkeep
./data/videos
./data/videos/sample_traffic_scene.mp4
./data/logs
./data/logs/job_1610528981_718f35b5bdd341a2993541e1911bf3cc.log
./data/logs/job_1610524428_3963a7043b2f4128969a64e6145df1e5.log
./data/logs/job_1610525546_1af6c038dc494aa182da9312a2b319ad.log
./data/logs/job_123.log
./data/logs/job_1610616452_ed7f7147d4c4445187c78a832a825889.log
./data/logs/job_1610524376_1d302600550f4b1f80858cb55e77d8b8.log
./data/logs/job_1610529838_24900cee52af446db1754e0aac76843b.log
./data/logs/job_1610526073_2e3196f0157f4d1da4f552d137564628.log
./data/logs/job_1610529350_de860ef606ad4be99740465cd761567e.log
./data/logs/job_1610518973_2ddafa7d208f463c9da887ffa7214712.log
./data/logs/job_1610525532_f5c7255186354347a1ba8de9b91c12ad.log
./data/logs/job_1610616420_bd6ab41608824547bd2e14d1e9289214.log
./data/logs/job_1610519637_698e434842da4c34b1d23619a67c0336.log
./data/logs/job_1610525475_894e7b3e4a5944319d24680a341aeb49.log
./data/detectors
./data/detectors/classes.txt
./data/detectors/haarcascade
./data/detectors/haarcascade/car.xml
./data/detectors/yolo
./data/detectors/yolo/yolov3.weights
./data/detectors/yolo/yolov3.cfg
./data/detectors/tfoda
./data/detectors/tfoda/faster_rcnn_inception_v2_coco_2018_01_28.pbtxt
./data/detectors/tfoda/faster_rcnn_inception_v2_coco_2018_01_28.pb
./data/detectors/classes_of_interest.txt
./wget-log.1
./.coveragerc

@nicholaskajoh
Copy link
Owner

Does it work when HEADLESS is False?

@ohioacer
Copy link
Author

ohioacer commented Feb 4, 2021

Yup yup. Same result in both states of Headless.

@ahmadkammonah
Copy link

I have the same error:

Invalid video source /mnt/c/Users/Ahmad Kammonah/Desktop/Ahmad/Python Test/OpenCV/assets/inputVideo.mp4 {'label': 'INVALID_VIDEO_SOURCE'}

Did anyone find a solution?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants