Page 1 of 2

Testing RVCamera - Video blurred

Posted: Thu Jul 20, 2017 1:51 pm
by iMesSolutions
Hi!
I'm testing TRVCamera component for delphi seattle, using RVMedia 501 - unregistered version yet.
I am able to stream a live video from a camera (product of dallmeier in germany) by using rtsp protocoll. This works fine. But if I move the camera, i get blurred sections in the bottom area of my picture. The same effect occurs on displaying the video stream and doing nothing. It seems like picture "runs away". Please see the attached screenshot.
Thanks, Heike

Re: Testing RVCamera - Video blurred

Posted: Thu Jul 20, 2017 6:07 pm
by Sergey Tkachenko
As I understand, you use FFmpeg.

Please test this compiled demo:
It uses newer version of RVMedia (unreleased yet) allowing to configure FFmpeg parameters:
http://www.trichview.com/support/files/ ... ffmpeg.zip

Try changing protocol in this demo.

Re: Testing RVCamera - Video blurred

Posted: Fri Jul 21, 2017 8:31 am
by iMesSolutions
Yes, I use FFmpeg.
On testing with your program, I found out, that the problem only occurs, if I use h.264 encoding format for the camera stream, whatever protocol is selected. If I chance encoding format to MJPG, everything works fine. Ofcourse the quality is worse.
It's my first time handling with video stream in my programs, I didn't really unterstand the difference between FFmpeg an GStreamer. Maybe I have to use GStreamer to show h.264 quality?
Thanks a lot for your help!

Re: Testing RVCamera - Video blurred

Posted: Fri Jul 21, 2017 9:02 am
by Sergey Tkachenko
Did you try the demo in my previous reply? I am quite sure that the problem must gone away if you will use TCP instead of UDP.

As for GStreamer. Please note that, unlike FFmpeg, it has a huge size. And, unfortunately, gstreamer.com is no longer available (it contained Windows version of GStreamer supported by RVMedia).
You can download that version of GStreamer from our web site:
http://www.trichview.com/resources/thir ... 2013.6.msi (for 32-bit projects)
http://www.trichview.com/resources/thir ... 2013.6.msi (for 64-bit projects).
But I still recommend to play with FFmpeg parameters.

Re: Testing RVCamera - Video blurred

Posted: Thu Jul 27, 2017 1:13 pm
by iMesSolutions
Yes, tested with your program. Unfortunately same problem with TCP. Please see enclosed screenshots.
UDP.PNG
UDP.PNG (168.48 KiB) Viewed 62230 times
tcp.PNG
tcp.PNG (160.25 KiB) Viewed 62230 times
Maybe I should change some parameter in the stream configuration on the camera? Would you take a look on them and give me your opinion?
camera-parameters.PNG
camera-parameters.PNG (7.65 KiB) Viewed 62230 times
As you reccomend, I will use FFmpeg.
Thanks for your help.

Re: Testing RVCamera - Video blurred

Posted: Fri Jul 28, 2017 8:47 am
by Sergey Tkachenko
Try reducing "Frames/Second" in the camera settings. 50 fps is too much for sending via Inet, try 14

Re: Testing RVCamera - Video blurred

Posted: Mon Jul 31, 2017 9:00 am
by iMesSolutions
Tested with 6.25 Frames/sec and changed resolution to 320 x 240 -> works fine
parameters-320x240.PNG
parameters-320x240.PNG (7.77 KiB) Viewed 62162 times
pic-320x240.PNG
pic-320x240.PNG (132.87 KiB) Viewed 62162 times
changed resolution to 640 x 480 (Frames/sec still 6.25) - in camera settings and in your program -> bad Picture
pic-640x480.PNG
pic-640x480.PNG (134.23 KiB) Viewed 62162 times
Further tests with resolution and frames/sec: only resolution 320x240 works, independently from the other parameters like frames/sec, bitrate, bitrate mode (camera settings) or protocol (your program)

Re: Testing RVCamera - Video blurred

Posted: Mon Jul 31, 2017 10:02 am
by Sergey Tkachenko
Please test with higher resolution and lower bitrate and smaller GOP size.

Re: Testing RVCamera - Video blurred

Posted: Tue Aug 08, 2017 6:07 am
by iMesSolutions
Tested with higher Resolution and lower Bitrate and smaller GOP size => picture is worse than before
640x480.jpg
640x480.jpg (59.31 KiB) Viewed 62075 times
Parameters.png
Parameters.png (8.87 KiB) Viewed 62075 times

Re: Testing RVCamera - Video blurred

Posted: Tue Aug 08, 2017 6:29 am
by Sergey Tkachenko
Please test the same with TCP protocol

Re: Testing RVCamera - Video blurred

Posted: Mon Aug 21, 2017 5:12 am
by iMesSolutions
TCP doesn't change the result.
640x480TCP.jpg
640x480TCP.jpg (62.67 KiB) Viewed 61865 times
May you have any other ideas?

Re: Testing RVCamera - Video blurred

Posted: Thu Aug 24, 2017 12:57 pm
by Sergey Tkachenko
Try using the latest available version of FFmpeg DLLs, download it from http://ffmpeg.zeranoe.com/builds/
(choose 32-bit / shared)
There are two versions there, try both.

Re: Testing RVCamera - Video blurred

Posted: Tue Oct 24, 2017 7:48 pm
by Re.daniel10
Hello, im a developer system in Brazil . Using DELPHI Berlin 10.1 ... :D

Someone can help me, how can i use the methods RVCamera1.GetSnapShot to take a photo.

Im trying to do the typeCast but is not working. :(

Help me please, and sorry some words wrongs rs

thanks... i ll wait a help

Syntax
function GetSnapShot: TRVImageWrapper;

returns:

Unit MRVImg;
Syntax
TRVImageWrapper = class(TObject);

returs:

Unit MRVBitmap;
Syntax
TRVMBitmap = class(TPersistent);
hmtoggle_arrow1 Hierarchy
TObject
TPersistent

I want get the photo, but dont have idea... :?: :?: :?:

SEE YOU...

Re: Testing RVCamera - Video blurred

Posted: Tue Oct 22, 2019 7:25 pm
by ya_vanka
Hi!

I have the same problem with rtsp and ffmpeg.
I am able to get streaming video from vlc (playing file and streaming it) by using rtsp protocoll. But if some scene changes quickly, I get blurred or corrupted sections in the bottom area of frames. ffmpeg libraries are up to date.

Video is in the following coedc: H264 - MPEG-4 AVC (part 10) (avc1)
Video resolution: 1280x720
Frame rate: 23.976023

I wanted to try GStreamer, but I failed to open rtsp://:8554/stream.sdp with gstreamer (I have a full installation and it works fine without any corruption via gst-play-1.0.exe rtsp://:8554/stream.sdp). But using RVMedia I can't play video stream via gstreamer version 1.0

Can you help me get rid of this problem using ffmpeg and explain how to open it via gstreamer?

Thanks a lot!

frame1.jpg
frame1.jpg (93.59 KiB) Viewed 49488 times
frame2.jpg
frame2.jpg (118.6 KiB) Viewed 49488 times
frame3.jpg
frame3.jpg (99.27 KiB) Viewed 49488 times
frame4.jpg
frame4.jpg (184.27 KiB) Viewed 49488 times
frame5.jpg
frame5.jpg (83.06 KiB) Viewed 49488 times

Re: Testing RVCamera - Video blurred

Posted: Wed Oct 23, 2019 5:59 am
by Sergey Tkachenko
RVMedia supports GStreamer 0.1, not 1.0:
https://www.trichview.com/forums/viewto ... =17&t=9285