Testing RVCamera - Video blurred

RVMedia support and discussion (components for displaying and controlling IP cameras, webcams, video conferencing, video chats, recording audio and video files)
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Testing RVCamera - Video blurred

Post 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
Attachments
kamera.jpg
kamera.jpg (114.43 KiB) Viewed 49989 times
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post 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.
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Re: Testing RVCamera - Video blurred

Post 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!
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post 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.
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Re: Testing RVCamera - Video blurred

Post by iMesSolutions »

Yes, tested with your program. Unfortunately same problem with TCP. Please see enclosed screenshots.
UDP.PNG
UDP.PNG (168.48 KiB) Viewed 49883 times
tcp.PNG
tcp.PNG (160.25 KiB) Viewed 49883 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 49883 times
As you reccomend, I will use FFmpeg.
Thanks for your help.
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko »

Try reducing "Frames/Second" in the camera settings. 50 fps is too much for sending via Inet, try 14
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Re: Testing RVCamera - Video blurred

Post 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 49815 times
pic-320x240.PNG
pic-320x240.PNG (132.87 KiB) Viewed 49815 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 49815 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)
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko »

Please test with higher resolution and lower bitrate and smaller GOP size.
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Re: Testing RVCamera - Video blurred

Post 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 49728 times
Parameters.png
Parameters.png (8.87 KiB) Viewed 49728 times
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko »

Please test the same with TCP protocol
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Re: Testing RVCamera - Video blurred

Post by iMesSolutions »

TCP doesn't change the result.
640x480TCP.jpg
640x480TCP.jpg (62.67 KiB) Viewed 49518 times
May you have any other ideas?
Sergey Tkachenko
Site Admin
Posts: 17236
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post 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.daniel10
Posts: 1
Joined: Tue Oct 24, 2017 7:36 pm

Re: Testing RVCamera - Video blurred

Post 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...
ya_vanka
Posts: 65
Joined: Tue Oct 22, 2019 6:24 pm

Re: Testing RVCamera - Video blurred

Post 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 37141 times
frame2.jpg
frame2.jpg (118.6 KiB) Viewed 37141 times
frame3.jpg
frame3.jpg (99.27 KiB) Viewed 37141 times
frame4.jpg
frame4.jpg (184.27 KiB) Viewed 37141 times
frame5.jpg
frame5.jpg (83.06 KiB) Viewed 37141 times
Post Reply