Ask Your Question
0

How to build OpenCV-2.4.4 with ffmpeg by Microsoft Visual Studio 2010

asked 2013-04-08 22:29:14 -0600

Diep gravatar image

Hi all ! I want to get stream video by OpenCV. I have a link stream ( [IP]:[Port]/videofeed ). I have builded OpenCV-2.4.4 on Ubuntu and get above link stream very good. Now, I want to build OpenCV-2.4.4 on Windows but some problems.After Building the end I run my project but it don't support my stream.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-04-09 02:18:22 -0600

Basically, a quick search in the search tool, would have given you the following pages:

http://answers.opencv.org/question/10949/error-streaming-video-from-server/

http://answers.opencv.org/question/8207/how-use-opencv-process-signal-input-is-stream/

Basically, the support for streaming media is very limited in OpenCV. It is not suggested using OpenCV purely for the functionality of streaming :)

edit flag offensive delete link more

Comments

My Android phone installed IP webcam apps. So I run it and have a stream [IP]:8080/videofeed I build Opencv244 on Ubuntu and get this stream very good. Now I want to programming on VS2010 ( Windows 7 64 bit). I have already builded Opencv244 ( http://docs.opencv.org/doc/tutorials/introduction/windows_install/windows_install.html ) but dont get my stream ?

Diep gravatar imageDiep ( 2013-04-10 03:16:36 -0600 )edit

I will repeat myself, do not use streaming for accessing your webcam. An android phone supports the access to the camera data directly. Take that approach...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-10 03:25:47 -0600 )edit

No no ! I have a stream video by my phone. On Laptop I install Opencv to get this stream ! On Ubuntu 11.10 I have got this stream Now I want to get stream on Windows 7 64bit? And I have some problems with build OpenCV-2.4.4

Diep gravatar imageDiep ( 2013-04-10 21:00:53 -0600 )edit

Then my first post still exists. If by stream you mean a single video file, then use the following library: http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html?highlight=video#VideoCapture. If this is not what you want to do and you actually want to stream between laptop and phone, again read the topics. Streaming is not well supported ...

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-11 05:02:39 -0600 )edit

Hi Steven ! On Ubuntu 11.10, I built OpenCV-2.4.4 successfully by Cmake-GUI ( I did it follow this link http://karytech.blogspot.com/2012/05/opencv-24-on-ubuntu-1204.html ). When I ran my project on Qt Creator, I had been got my stream. Now I built OpenCV on Windows 7 and VS2010, I think I build successfullly but it doesn't get my stream with some errors "Could not find codec parameters ( ../../modules/highgui/src/cap_ffmpeg_impl.hpp:540". Do I have to build FFMEPG for windows first? Thank for reading !

Diep gravatar imageDiep ( 2013-04-16 01:59:25 -0600 )edit

You have to get the latest ffmpeg version for windows and then build openCV with that version as far as I know of. However, I have never done this myself before.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-16 02:07:48 -0600 )edit

Hi Steven First I built FFmpeg on this link ( http://ffmpeg.mplayerhq.hu/download.html ) version 1.2 . Then I compile OpenCV-2.4.5 by Cmake-GUI. And I configure it same like that:

Video I/O:
    Video for Windows:           YES
    ***FFMPEG:                      YES (prebuilt binaries)***
      codec:                     YES (ver 53.61.100)
      format:                    YES (ver 53.32.100)
      util:                      YES (ver 51.35.100)
      swscale:                   YES (ver 2.1.100)
      gentoo-style:              YES
    OpenNI:                      YES (ver 1.5.4, build 0)

But I don't know link FFMPEG which I have built it.Can you help me or give me some suggestions? Thanks!

Diep gravatar imageDiep ( 2013-04-18 02:54:00 -0600 )edit

Question Tools

Stats

Asked: 2013-04-08 22:29:14 -0600

Seen: 4,612 times

Last updated: Apr 09 '13