Capturing Video from Video Capture Card using Qt
I am looking for an API/library in Qt which helps to capture video/streaming video from connected video capture card like Black Magic Pro ? I may need to capture individual video frames also at later point. 1. Does QMediaPlayer class of Qt have this provision ? 2. Or OpenCV have this support ?
See also questions close to this topic
QString replace characters outside of quotes
I'm currently reading in a json file to a QJsonDocument and then converting it to a QString such that it looks like:
"thing1":"thing1value", "thing2":"thing2,value", "thing3":"thing3value",
Each line ends with a comma and I would like to try and format it a bit to show to the user without the quotations and a new line after each line. I was attempting use the replace function to replace any commas with a new line. The problem is that just using the replace function to replace all commas with \n also means that anything inside the quotes is altered too like:
Is there any easy way to alter the values exterior of quotes without touching the insides? Is there perhaps a better approach to the overall formatting I could be doing instead? I have a feeling this is asking a bit much of Qt and I may just have to write some function that indexOf finds the first quote and tracks it to the next etc.
Here's what I have so far essentially
QString jDoc = file.readAll(); file.close(); QJsonParseError parserError; QJsonDocument jsonInit = QJsonDocument::fromJson(jDoc.toUtf8(), &parserError); qDebug() << parserError.errorString(); QString strJson(jsonInit.toJson(QJsonDocument::Indented));
Blowfish Algorithm in Java and C++
I have a requirement to use BlowFish Algorithm into my project. I need a same Blowfish Algorithm in Java and C++ (C or QT). For example: 1) If i give any input suppose input:abc to encode() method of Java then output would be something suppose Output:@$# 2) Then same in C++, If i give input:abc to encode() method of C++ then output should be same as Java encode() method Output:@$# 3) So, If i pass response value of encode() method input:@$# to decode() method of java or C++ then output should be Output:abc
I need this Blowfish Algorithm in Java and C++ with Linux 64-bit.
My Efforts: I am trying... but not getting the same output from encode() method of Java/C++. So unable to get the same output, when i pass input into encode() method of C++ and decode it with the decode() method of Java. So, Alternative solution i am using is Java Native Interface (JNI), where i am calling C++ native method. So finally using only C++ Blowfish Algorithm. But i would be good if i get any help to get the same output with Java and C++ Blowfish algorithm.
So, if someone has faced same type of problem or any idea then please reply. Thanks in advance for your valuable time and efforts.
Qt application cannot find a 3rd party DLL and crashes
I am trying to build an application in QT that uses the libmodbus library. I am using MinGW 5.3 (Windows 7). The application will build without an error, but crashes when it attempts to run. The debug message says:
During startup program exited with code 0xc0000135
If I double-click the created executable file, there is an error that says:
libmodbus-5.dll is missing
from my computer.
Libmodbus was built with the same compiler. The include files are located in
../../codelibrary/MinGW63/libmodbus-master/srcand the linker files are located in
.libsfolder has both
If I add this library with Qt's 3rd party library wizard, then I get the following in my
win32: LIBS += -L$$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src/.libs/ -llibmodbus.dll INCLUDEPATH += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src DEPENDPATH += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src win32:!win32-g++: PRE_TARGETDEPS += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src/.libs/libmodbus.dll.lib else:win32-g++: PRE_TARGETDEPS += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src/.libs/liblibmodbus.dll.a
This gives me the error:
-1: error: No rule to make target '../../codelibrary/MinGW63/libmodbus-master/src/.libs/liblibmodbus.dll.a', needed by 'debug\QTRosemount.exe'. Stop.
I then tried changing the
LIBS += -L$$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src/.libs/libmodbus-5.dll INCLUDEPATH += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src DEPENDPATH += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src PRE_TARGETDEPS += $$PWD/../../codelibrary/QtMinGW53/libmodbus-master/src/.libs/libmodbus.dll.a
This is when it will build without error and crash right away with code 0xc0000135 and a missing
libmodbus-5.dll. I have tried many variations of the
.propaths that get this same error.
Note: I have been able to run console applications in Codeblocks with this library, not sure what I am running into with Qt.
How to fix this?
Video Streaming using SSL on Alibaba ECS
I have an ECS instance on Alibaba using LetsEncrypt for SSL configuration but i have an issue with PHP Video Streaming that is not working when SSL is used where Video Link gives 404 when the streaming begins but It works fine on http.
This is the used package for streaming: http://codesamplez.com/programming/php-html5-video-streaming-tutorial
And also this Package i already used and worked fine on another servers on https
Can anyone advice what should i do?
IPTV Stalker Portal Mirror Servers
I have one physical server A (207.XXX.XX.XXX) for stalker panel connected properly to two physical storage servers Storage1 (198.X.XX.XXX) & Storage2 (198.X.XX.XXX) . on the same network. Storage1 for VOD Storage2 for recording.
I have another server B (74.XXX.XX.XX) for stalker panel also on different network, I want to connect it to the same storages Storage1 & Storage2 as a mirror to server A and how can i sync. channel list between the 2 stalker servers (207.. & 74...) automatically. Is there any solution? Thanks for your help.
NodeJS Streaming de vídeo usando torrent
Olá gostaria de saber o seguinte, tenho um filme, que nele irei fazer um Streaming, porém faço o Streaming parte por parte, más gostaria de saber o seguinte ex: o filme tem cerca de 1GB, como saber quantos MB ele terá quando tiver em 10 min de filme? e assim por em diante sem menos ter baixado ele por completo, ou até mesmo através de Buffer saber qual vai ser o Buffer em questão vai ser o que vai ta no minuto em questão
Me desculpe pela pergunta, não sei como elaborar ela de outro jeito melhor.
- How can I open android video camera only HD mode?
How to create image finger point when record video?
I have a problem. I want record video that have finger point each when I touch on screen. I used to Camtasia to which create point when record video, but it's arrow point, not finger point. I don't know that have what software support this problem?
Android, how to put watermark a video
I know it wasn't possible back in the days, but I have heard that it's possible now. How would one do it? I am not even sure where to start.
Right now I can save a video locally with mediarecorder, how do I add a watermark to it? I can't seem to find a library that lets me do that.