Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process video stream with php-opencv? #45

Open
scramatte opened this issue Dec 30, 2022 · 1 comment
Open

process video stream with php-opencv? #45

scramatte opened this issue Dec 30, 2022 · 1 comment

Comments

@scramatte
Copy link

scramatte commented Dec 30, 2022

Hi,

I'm trying to process a video with CV\VideoCapture , but I 'm unable to open stream.
I've tried with local mp4 and remote hls. Neither works.

What I'm doing wrong?

use CV\VideoCapture;

$url = 'http://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8';
$video=new VideoCapture($url);
var_dump($video->isOpened());
var_dump($video);

@scramatte
Copy link
Author

scramatte commented Jan 1, 2023

To get it working you need to rebuild opencv with ffmpeg librairies.
Finally, I've rebuilt manually OpenCV 4.7 with all these modules and php-opencv, and it works!

I've been able to detect objects by tensorflow model mobilenet from mp4 and hls stream
Currently, I've saved the frame as individual jpeg because Cv\VideoWriter is not implemented into php_opencv.

So, definitely we want to sponsor php-opencv to all these missing parts.

Regards

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

No branches or pull requests

1 participant