FastMOT: Unable to read video stream
Hi, I’m having this issue when running the main app.py I’ve tried with my webcam and external USB one and a path to a video everytime a get the same error. I’ve installed FastMOT on a Ubuntu 18.04 x86 machine and on a Jetson TX2 following the instructions provided here. I’ve checked that the camera works fine with a small script using python and opencv.
Here is the error that I recieve everytime:
python3 app.py --g --input_uri /dev/video0 --mot
Traceback (most recent call last):
File "app.py", line 108, in <module>
main()
File "app.py", line 36, in main
stream = fastmot.VideoIO(config['size'], config['video_io'], args.input_uri, args.output_uri)
File "/home/raiza/programming/FastMOT/fastmot/videoio.py", line 53, in __init__
raise RuntimeError('Unable to read video stream')
RuntimeError: Unable to read video stream
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 29 (10 by maintainers)
@ed-muthiah This might be an issue with GStreamer. You can play around with the GStreamer pipeline here (for example increase latency to 100): https://github.com/GeekAlexis/FastMOT/blob/d1d0fd994acbe3be6a15fef024d347943f2445ca/fastmot/videoio.py#L201
From my experience, if the URL works with VLC, you should use the exact same URL. As a last resort, you can always rebuild the Docker with ffmpeg and disable GStreamer.
That error occasionally occurs with --gui option. It is a known bug from GTK. Running the docker with
-e NO_AT_BRIDGE=1should make the error go away.@GeekAlexis Yes, I updated the code from your master branch. It works now! Thank you, the results were awesome!