I have a proVisionISR IP camera which I am trying to connect through openCV.videoCapture().
I have inserted RTSP URL like this: "rtsp://user:password#IP:port/", I also tried to add different ending after the port in the URL, such as profile2 which indicate on the sub stream (pic below),
H264?ch=1&subtype=0 and more results I found while searching.
The code uses cv2.CAP_FFMPEG, but tried also with GSTREAMER pipeline.
I changed some values in the camera dashboard configuration, such as resolution that fit the code, the encoding also was changed to h264, and disabling the audio as well. (The bitrate type is: CBR)
I open the stream in VLC, and it is work just fine. And 2 more IP cameras with RTSP streaming was able to connect with: cv2.videocapture(RTSP URL, cv2.CAP_FFMPEG)
Python version: 3.8
OpenCV version : 4.6.0-dev (installed from source)
ffmpeg version 4.2.7
ubuntu version (If necessary) 20.04
enter image description here
HI
Here u have a working example to connect to a rtsp stream via pyav and show it on a opencv window.
Example
The code is testet with an axis camera and hikvision camera.
If the not work send the error for deeper investigation.
Related
I downloaded Libvlcsharp-3.x and ran the Uwp sample(Vs2017) and it worked. However when I changed the media source to a local file and the 'FromType' to FromType.FromPath it runs but no video and no sound. My Solution Configuration=Debug and Solution Platform=x86. What am I missing. Thanks.
Suddenly, sketch data upload(SPIFFS) fails over serial although the sketch itself can be uploaded normally. No settings in the Arduino IDE Tools have been changed and the serial port is the same. Here is the output from the attempt(not much help):
esptool: error: unrecognized arguments: --end
SPIFFS Upload failed!"
The only thing that has changed since I last uploaded SPIFFS was my router was reset and it renumbered the IPs of both the NodeMCU and the client PC. Suspiciously, the web page receiving the NodeMCU data now hangs but there nothing in the sketch or the HTML/Javascript that has hardcoded IP addresses.
Why would this impact SPIFF data upload over serial?
There was a recent bug in the SPIFFs plugin related to transitioning from Python 2 to Python 3 that caused this issue.
Update your plugin to the latest version.
https://github.com/esp8266/arduino-esp8266fs-plugin/releases
I have successfully installed Semafor on Linux Mint 18.1 and I can run it. But the results I get from my version differs drastically from the online demo. I realized that online demo uses TurboParser, not MaltPraser. I tried A LOT to download TurboParser's model, but the remote host is sending data on 100 KB/s which is so lousy while I can download from other web sites at about 1 MB/s! But I kept on downloading and finally received a corrupted file. Now I have a request and a question:
Can any one upload the model on a better host? Maybe a Google drive or so?
How can TurboParser be incorporated in Semafor? I could not figure it out because I failed to download the model.
I'm attempting to read files stored in Raspberry Pi (Raspbian) directly to Windows 7 using R.
To be specific, here are what I've done so far.
1. Install R 3.1.2 on Windows 7
2. Install Raspbian on Raspberry Pi, stored some text data files in Raspberry Pi.
3. Attempt to read text file stored in Raspberry Pi to Windows 7 through R 3.1.2.
I've Google on this topic for some time and RCurl package seems to be the answer. However, I keep getting error says "Authentication failure"
Here is the code i use in R # Windows 7 and the error message i get:
library(RCurl)
table1 <- scp(host="192.168.XXX.XXX",path="~/Desktop/Parallel/test.txt",key="D:\\Temp\\id_dsa_win1",user="pi",keypasswd="")
Error in function (type, msg, asError = TRUE) : Authentication failure
I've generated a public/private key pair using PuttyGen in Windows 7 (without passphrase), added the public key into Raspberry Pi and export the private key in OpenSSH format under Windows 7's "D:\Temp\id_dsa_win1". I confirm i can login to my Raspberry Pi using Putty without password. However, R was not able to login to my Raspberry Pi using the generated private key.
I'm out of idea, am i doing this right? Appreciate if someone can help me on this.
Thank you.
I think i found a way to do this. I use a little help from plink.exe from putty site. Just need to download it and place it on your window local drive.
Use pipe command from R and send the "cat" command to Raspberry Pi with the help of plink.exe and read the csv content to R data frame directly. Here is the command i used:
data <- read.table(pipe(
"C:\\~path to plink\\plink.exe -v -ssh -P PORTNUMBER username#IPADDRESS -pw
\"password\" \"cat ~/Your Data File.csv\"")
,header=TRUE,sep=",",stringsAsFactors=FALSE)
Working great when reading log files inside your Raspberry Pi from Window. Hope this helps others with similar interest.
PS: Some of my window machine not able to read the csv file using the same command, i suspect due to firewall setting in window or router. No time to check on that yet.
Thanks.
I am uploading a recorded mp3 file using phonegap and php
Recording - Using Media object (media.startRecord/ media.stopRecord) - Successful
Uploading -
ft.upload(fileURI, encodeURI("http://some.server.com/upload.php"), win, fail, options);
In options, I am using options.mimeType = "audio/mpeg";
-This is also successful
Playing - But when I try to play it in browser as http://some.server.com/media_uploaded.mp3 - It tries to play but fails after sometime. I tried playing the same file with http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_audio_all as well, but couldn't succeed.
When I download the same file - it gets played without any error in any media player in my computer.
When I upload any mp3 song at same place - it gets played successfully with - http://some.server.com/song_uploaded.mp3
What can be possible problem(s) with my recorded audio?
Update
Just noticed that problem has nothing to do with 'Upload'. The saved mp3 (when copied to PC) seems to run fine on my computer but not on browser (Even locally - I checked with Audio tag as well). So there is something wrong with the recorded mp3. Not sure what is the solution.
Not working - http://xpertvisions.com/test/media_recorded.mp3
Working - http://xpertvisions.com/test/media_song.mp3
I found a solution to this that I answered here --> https://stackoverflow.com/a/23140836/902630
This is, however, a .Net solution. But looking at it may help lead you in the right direction.