What is the best algorithm to process video images and display the video flawlessly [closed]

asked 2015-03-02 01:01:29 -0600

zms gravatar image

Hello there, I had been searching around the method of processing the video images but yet do not successful. I saw example from the internet shows that, when they process a video image, the final output also looks smoothly display at the monitor even after the extensive frame by frame of image processing. While the amateur like me, it looks like that, when i'm processing the image frame by frame, the final output of my video looks like the is pending the process one by one and not smoothly.

anyone can give me key point for me to look on? Currently Im looking on the multicore processing but I think the output still do not smooth as per normal video without processing..

TQ in advance

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-28 12:19:08.872881



Can you show something from your processing? or at least list the steps... maybe some steps are way to slow for that to work in real time... And what is the resolution you work on, too?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-02 06:11:08 -0600 )edit

Since the code is mix up if I put it here.. ok here is the step that I had work on

90 fps and dimension is 1920 X 1080

Loop 1) Open video files 2) Show the ori video in the window 3) Processing - Color Conversion, thresholding, eroding, canny detection, hough transform, frame by frame 4) Show the final result on the new window

The process will have to extensively process the frame by frame and causing the delay on the output thus the video will be not smoothly play on both original and final output windows.

I saw a lot of example in the youtube showing that their output result does not really got impacted and I wonder how the process is done.

zms gravatar imagezms ( 2015-03-02 21:32:02 -0600 )edit

So your problem is that your output does not have the same FPS? Your FPS is varying in time?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-03 02:15:13 -0600 )edit

yes, I mean, due to the processing, the both ori and output delay like showing frame by frame.. I understand that the processing cause it, but anyway is there any rules or method that I can make sure that the process is still working in the background and the output is still display smoothly to the user.

zms gravatar imagezms ( 2015-03-03 19:41:46 -0600 )edit

If you really want to do that, I think you can create a function for displaying the frames slower or as fast as the slowest process, but you'll have to stock the frames already processed, and that is going to grow a lot if you have a long video... Maybe it is better to save the processed video on disk and then play it at a fixed speed... Can you post a link from youtube where the displaying fps is not varying, maybe it is because it is playing the processed video?

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-04 02:44:36 -0600 )edit

this one quite flawlessly


wonder how the algorithm make it so fast ...

zms gravatar imagezms ( 2015-03-04 21:41:08 -0600 )edit

The video you mentioned, I think it is done as I have said: processed and saved as processed_video and it is uploaded on youtube, so it is always running at the same frame rate.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-03-05 02:15:22 -0600 )edit

owhh, I see, ok if it is the case, I'll use your keyword to do the same :) thanks!! appreciate it.

Rgds Zamani

zms gravatar imagezms ( 2015-03-05 02:41:39 -0600 )edit

Had worked on the processed video and it worked!! thanks thdrksdfthmn ...

refer to this youtube on how to save the processed video https://www.youtube.com/watch?v=OjNCl...

zms gravatar imagezms ( 2015-03-06 01:39:38 -0600 )edit