How to take image from rtsp?
See original GitHub issuepreviusly I used Http IP camera, for that I used following code
URL myUrl = new URL("http://192.168.15.999/axis-cgi/jpg/image.cgi");
BufferedImage bufferedImage;
bufferedImage = ImageIO.read(myUrl);
java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();
ImageIO.write(bufferedImage, "jpg", baos);
but now they are providing stream of RTSP. How I can used RTPS for above code
Issue Analytics
- State:
- Created 5 years ago
- Comments:30 (12 by maintainers)
Top Results From Across the Web
How to grab a single image from RTSP stream using FFMPEG
Try ffmpeg -y -i rtsp://admin:admin@192.168.10.113:554/live -vframes 1 do.jpg.
Read more >Capture single frame image from RTSP stream
I can get a single jpeg image by entering the following url in the RPi CLI: http://192.168.xxx.yyy/cgi-bin/snapshot.cgi?1, however it takes ...
Read more >grabbing an image from an rtsp stream
==> Every 5 minutes: The RPI will run a script that will grab a JPG frame from a remote (Hosafe) rtsp stream. Name...
Read more >How to capture frames from a video stream or RTSP camera
Install FFMPEG according to the directions of your current OS: Windows: Use a program like 7-Zip to unpack the files to your preferred...
Read more >Grab a snapshot from an RTSP video stream every 1 second.
The first few frames mostly come through properly, but then the images start to just have the two part of the image filled...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
your code is working Big Buck Bunny video is playing
but for my RTSP not working
Hi @sandipJava,
Sorry for hanging with this for so long. I had some other important to do first. I did a quick look into the code to check VLCJ args in accordance to the code provided in #355 (thanks @jaysentang for pointing this out).
After these changes provided RTPS endpoints (at least the ones I tested) work fine.
I also prepared small example based on your code:
After I run it:
IMPORTANT!!!
Please note that this fix has not been released yet and is available in SNAPSHOT version only!!! You need to download 0.3.13-SNAPSHOT version of webcam-capture-driver-vlcj from here:
https://oss.sonatype.org/service/local/artifact/maven/redirect?r=snapshots&g=com.github.sarxos&a=webcam-capture-driver-vlcj&v=0.3.13-SNAPSHOT
Please make sure to update all webcam-capture JARs to 0.3.12 in case you are using older version.