Testing RVCamera - Video blurred

New product: VCL components for displaying and controlling IP cameras, webcams, video conferencing, video chats
Post Reply
iMesSolutions
Posts: 6
Joined: Mon Jul 17, 2017 10:02 am

Testing RVCamera - Video blurred

Post by iMesSolutions » Thu Jul 20, 2017 1:51 pm

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 1137 times

Sergey Tkachenko
Site Admin
Posts: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Thu Jul 20, 2017 6:07 pm

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 » Fri Jul 21, 2017 8:31 am

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: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Fri Jul 21, 2017 9:02 am

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 » Thu Jul 27, 2017 1:13 pm

Yes, tested with your program. Unfortunately same problem with TCP. Please see enclosed screenshots.
UDP.PNG
UDP.PNG (168.48 KiB) Viewed 1031 times
tcp.PNG
tcp.PNG (160.25 KiB) Viewed 1031 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 1031 times
As you reccomend, I will use FFmpeg.
Thanks for your help.

Sergey Tkachenko
Site Admin
Posts: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Fri Jul 28, 2017 8:47 am

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 » Mon Jul 31, 2017 9:00 am

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 963 times
pic-320x240.PNG
pic-320x240.PNG (132.87 KiB) Viewed 963 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 963 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: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Mon Jul 31, 2017 10:02 am

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 » Tue Aug 08, 2017 6:07 am

Tested with higher Resolution and lower Bitrate and smaller GOP size => picture is worse than before
640x480.jpg
640x480.jpg (59.31 KiB) Viewed 876 times
Parameters.png
Parameters.png (8.87 KiB) Viewed 876 times

Sergey Tkachenko
Site Admin
Posts: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Tue Aug 08, 2017 6:29 am

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 » Mon Aug 21, 2017 5:12 am

TCP doesn't change the result.
640x480TCP.jpg
640x480TCP.jpg (62.67 KiB) Viewed 666 times
May you have any other ideas?

Sergey Tkachenko
Site Admin
Posts: 13468
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Re: Testing RVCamera - Video blurred

Post by Sergey Tkachenko » Thu Aug 24, 2017 12:57 pm

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.

Post Reply