RTSP library in Python or C/C++? - c++

I am trying to find any RTSP streaming library for Python or C/C++.
If not is there any other solutions for real time streaming?
How much easy or difficult it is to implement RTSP in Python or C/C++ and where to get started?

try live555. They have a lots of libraries and modules for implementing rtp and rtsp (as well as sip) into your c and c++ programs

With Python and Twisted, you could use this module.

Related

Backends to use for multimedia in Qt5

What are available and reliable multimedia backends to use with Qt5 for media playback on Linux?
I don't know about backends rather than gstreamer for linux, but you can try to integrate QmlVlc project into your code. You can find a demo here. It uses vlc for playing video. I successfully used this project for my purposes under Android. You can also try QtAV, it uses ffmpeg. From my experience it worked on Android as well, but there were issues with hanging UI. It might have needed more work to properly integrate though, but I didn't want to spend time on it, at least it was easy to try.
I know you were not asking for Android libs, but by using on Android I mean native (C++) code, so no Java was used.
you can use Gstreamer Qt bindings

Build libpcap for Python 2.7.x in windows 7

I've tried several different things and crawled around on lots of forums looking for an answer to this question.
My goal is to simply parse through a wireshark .pcap-ng trace file using Python. From what I can gather, it seems like I need a libpcap wrapper for Python or perhaps WinCap (PyCapy?)
I'm relatively new to Python, so if you all have any pointers on how to install this module please let me know. Earlier I had a 32bit version of Python installed and found a win32 installer and was able to parse through .pcap files but I really want to be able to parse through the .pcapng files. Thanks guys,
~Kyte
Sadly, this is Windows, so WinPcap won't help; libpcap 1.1.0 and later can read pcap-ng files, but there is currently no version of WinPcap based on a version of libpcap with pcap-ng support.
I.e., currently, the first piece of software to try would be VirtualBox, Parallels Workstation, or VMware Workstation, and the next piece of software to try would be some Linux distribution running on your Windows machine under the virtualization software. Sorry.
(Yes, I have to find the time to do some libpcap infrastructure work to make it easier for the WinPcap people to make their remote capture support work with newer versions of libpcap. Sadly, there are only 24 hours in a day, and a ton of other things to do competing for the hours that remain after such frivolities as eating and sleeping. :-))
A workaround for that particular issue would be either to save a capture from Wireshark in pcap format rather than pcap-ng format or to use Wireshark tools such as editcap (which can handle pcap-ng files on Windows, as they don't use libpcap/WinPcap to read capture files) to convert from pcap-ng to pcap.
There are a couple of Python wrappers for libpcap/WinPcap - python-libpcap and Pcapy. The python-libpcap page has a daemon and a penguin on it, so they're only advertising BSD and Linux support; it might work on other UN*Xes, as there shouldn't be major differences in the way you hook into libpcap, but might not work on Windows. Pcapy, however, explicitly mentions WinPcap and Win32 binaries.
Do try out the pcap binary that #dirkloss compiled for Python 2.7 | Windows.
Here
I tried it , but I'm getting this error- SO qn

How can i write socket based application using dlib c++ library?

i want to start socket programming with c++ language and dlib c++ library. but there is no complete guide in dlib.net website. is there someone can help me in socket programming in c++ with dlib library? i dont want to make my software with .net framework cause i want to write a portable app
There are a bunch of socket programming examples on the dlib website. These are complete example programs meant to introduce different programming concepts. Just click on any of the links to the right of "Example Programs:". There is also a whole page for the higher level networking tools in dlib at http://dlib.net/network.html.

Serial Communication in OpenCV

I am building an application involving identification of color of object and then sorting it with the help of a robotic hand manipulator. The code for Color Identification is ready in OpenCV, what I do not know is how to transfer this data to my Arduino UNO board connected by USB. I have made this kind of application previously in MATLAB, but have no idea how to do it in OpenCV. Do we have any way to send data over Serial port in OpenCV?
Have you considered using OpenFrameworks? I personally haven't played around with OpenCV but I have played around with serial communications to arduinos on OF. OF also includes the OpenCV library so you can link your work with it.
Prerequisites :Install opencv with python bindings.I usually work on Mac Os.Its pretty easy installing opencv with python bindings on mac using macports.I have no idea about windows and linux but there is no shortage of tutorials to do so.Just google.
And about python,don't worry,You can learn a lot of python in 2 days.Google python classes are definitely a good start.
Check this out for different python opencv methods.And this is a good site for starting opencv with python

Reading from the serial port from C++ or Python on windows

I need to read the serial port from windows, using either Python or C++. What API/Library should I use? Can you direct me to a tutorial? Thanks!
In python you've excellent package pyserial that should be cross-platform (I've used only in GNU/Linux environment).
Give it a look, it's very simple to use but very powerful!
Of course examples are provided!
By the way, if it can be useful here you can find a project of mine which use pyserial, as an extended example.
In C++:
CreateFile("\\\\.\\COM39", ...)
SetCommState
SetCommTimeouts
ReadFile, WriteFile
CloseHandle
There is also a full documentation on communication resources.
This is classic article about Win32 serial communications:
http://msdn.microsoft.com/en-us/library/ms810467.aspx
In python it is as simple as importing pyserial and use its open() method (if you are using quite standard system, otherwise you have to adjust a number of parameters to match your environment of course).
EDIT:
As pointed out by Enrico, pyserial is not a default package in many distributions, so you have to install it by your own.
I suggest to install and use easy-install, by setuptools to handle your python addons packages.