Read stream from OpenCV.

See original GitHub issue

Hello,

First, thanks for your great work. It worked like a charm, really easy to set up and quite simple to follow πŸ‘

However, I have a question - I would like to read the video stream that is produced by this Flask app using OpenCV.

I usually would use: VideoStream('http://127.0.0.1:5000/video_feed').start()

BUT this throws an error:

[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes
[mpjpeg @ 0x7f9494206400] Expected boundary '--' not found, instead found a line of 127 bytes

as (I think) there isn’t a specific file that VideoStream needs to start reading.

I would appreciate it a lot if you throw any ideas my way πŸ™

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
hyansupercommented, Jan 2, 2020
1reaction
alessandrogregolincommented, Apr 3, 2020

I found a solution without using VideoCapture https://github.com/hyansuper/picam-video-streaming/blob/master/receive.py

This is great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

is it possible to read video stream with opencv?
Yes and the nice feature is that the code is exactly the same as reading from a camera - see Reading and Writing...
Read more >
Getting Started with Videos
Learn to read video, display video, and save video. ... Often, we have to capture live stream with a camera. ... Just a...
Read more >
Read, Write and Display a video using OpenCV |
In OpenCV, a video can be read either by using the feed from a camera connected to a computer or by reading a...
Read more >
Live Streaming using OpenCV
Today we are going to create a live streaming app with help of OpenCV and socket programming we are going to develop code...
Read more >
Live video streaming over network with OpenCV and ...
In the first part of this tutorial, we'll discuss why, and under which situations, we may choose to stream video with OpenCV over...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found