Go to advanced search

by luiscgalo
Sat Sep 01, 2018 8:12 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Continuing my investigation about the issue using deinterlacer of the image_fx component, I've found a previous post from 6by9 which may explain what's happening (back and forward movements when trying to convert 25i into 50p Full HD video, doubling the frame rate) (....) Advanced adds a fourth int ...
by luiscgalo
Wed Aug 29, 2018 9:36 am
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

I have been quite busy at work (not related with this RPi personal project), that's why my posts/comments are a little bit delayed... However, yesterday I had the opportunity to play around with the deinterlacer issue. From deeper analysis to the output data coming form the image_fx (deinterlacer), ...
by luiscgalo
Fri Aug 24, 2018 1:23 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Firstly I think I've tracked down the regression in rawcam. I'll post a test firmware in a bit. Sorry, I was so motivated with the fix that I did not even notice that statement. :D Thanks for providing a custom firmware for testing purposes. Now the application works without any crash on the VPU an...
by luiscgalo
Wed Aug 22, 2018 10:43 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi again 6by9, thanks for your valuable investigation and help. I've followed your suggestion (cloning your GIT branch and compiling/installing the latest version of userland libraries) and I was able to successfully compile your version of "rpi-video-recorder". However, when trying to run the appli...
by luiscgalo
Thu Aug 16, 2018 12:42 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Yesterday I've tried again some more attempts to enable functionality of my prototype application. However, after uploading the RPi firmware to its latest version I'm not able to run the app anymore. The deinterlacer crashes the RPi some moments after starting the app. It's so annoying because with ...
by luiscgalo
Sat Aug 11, 2018 11:15 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Today I've tried to debug and test again my prototype code using the latest version of RPi firmware. Now, I'm experiencing exactly the same problems as you and I cannot put the application running anymore... :? Here are the scenarios which I've tried (all unsuccessful): 1. When using MMAL_PARAM_IMAG...
by luiscgalo
Fri Aug 10, 2018 10:54 am
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi 6by9, probably you've been quite busy with other tasks. Without trying to put any pressure, do you had some time to take a look on my issues related with the deinterlacer (struggling with 1080p50 output since I cannot active the QPU) or with sporadic crash of the pipeline (it seems related with a...
by luiscgalo
Thu Aug 09, 2018 6:13 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 10111

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Looks like your code is doing raw_cam->image_fx->ISP->.... Well, my code is not working exactly like that. I have the following data processing chain: rawcam (capturing BGR24 bottom/top fields) -> interlaced frame merge (BGR24) -> ISP (converts BGR24 to I420) -> image_fx (deinterlacer, however in m...
by luiscgalo
Thu Aug 09, 2018 5:04 pm
Forum: Camera board
Topic: ADV7282 Analogue video to CSI chip with interlaced modes
Replies: 100
Views: 10111

Re: ADV7282 Analogue video to CSI chip with interlaced modes

Hi grimepoch, To complement 6by9 info about how to merge the individual top and bottom fields into a single frame, you can take a look to the "video_field_cb" function within the "rawcam.c" file of my prototype code available on the following post: https://www.raspberrypi.org/forums/viewtopic.php?f=...
by luiscgalo
Wed Aug 08, 2018 9:52 am
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Thanks again 6by9 for taking your time to check what's happening with the image_fx component (deinterlacer functionality) and the sporadic "crash" issue that we both have when running my prototype source code. I will wait for your feedback to point out what should be the problem and if I have to cha...
by luiscgalo
Mon Aug 06, 2018 10:02 am
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi again, I'm still experimenting and trying to understand why the deinterlacer is struggling to produce 1080p50 from 1080i50 video... (without success yet) By the way, another idea that comes to my mind (probably someone will say that it is quite stupid), will be to evaluate if the H264 encode bloc...
by luiscgalo
Fri Aug 03, 2018 6:22 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Today I've made some more trial and error tests following 6by9 suggestions: A definite point to improve are how you are setting buffer_num on various ports. The defaults tend to be minimise memory usage, which does not necessarily account for keeping the pipeline busy. eg video_encode only needs one...
by luiscgalo
Mon Jul 30, 2018 1:25 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi 6by9, Sorry for my delayed response... Thanks for testing my prototype application and for sharing valuable information and recommendations to improve performance of my video capture system. Sometimes, I also have the same dramatic behavior of "crashing" something, triggering the kernel panic LED...
by luiscgalo
Wed Jul 25, 2018 10:15 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi again 6by9, I've tried to follow your recommendation of using the ADV deinterlacer with QPUs. I tested multiple combinations, always without success (unable to send image data to the ISP input). Since you have a similar hardware setup, maybe it's easier if you try to compile and run my app on you...
by luiscgalo
Wed Jul 25, 2018 12:21 pm
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Thanks for the tip. Tonight I will run the "sudo vcdbg hist gnuplot" command to trace the usage of the VPU. (I didn't know that one ;) ) I'm assuming you are using the QPU deinterlace, as I'm fairly certain that is required for 1080i. Well, actually I'm not using the QPUs because when I've performed...
by luiscgalo
Wed Jul 25, 2018 11:44 am
Forum: Camera board
Topic: TC358743 and interlaced HDMI modes
Replies: 27
Views: 3898

Re: TC358743 and interlaced HDMI modes

Hi 6by9,
Yes, thanks for creating a new thread! ;)
It is the best option otherwise multiple and different topics were being discussed in the same thread, at the same time...
by luiscgalo
Wed Jul 25, 2018 9:29 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

One idea that comes to my mind (I don't know if it works) which may solve (or not!) the problem could be changing the way of using the image_fx deinterlacer component. Currently I'm setting "img_fx_param.effect_parameter[0] = 3" which means that the image_fx is expecting the reception of a full HD i...
by luiscgalo
Wed Jul 25, 2018 8:39 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Hi all, After some days of inactivity on my project, I finally had some time to continue investigating the issue with the deinterlacer. I've performed multiple tests and I think that the problem is indeed related with the deinterlacer, misuse and/or incorrect configuration on my side... Basically, i...
by luiscgalo
Mon Jul 16, 2018 2:06 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Sure, I can share my code with you. Currently I'm at workplace and I have no access to my latest version of the source code on my "cloud" share. However, I have some code from last week where the BGR24 to I420 conversion is made, including the deinterlacing. (top/bottom field merge -> ISP -> image_f...
by luiscgalo
Mon Jul 16, 2018 11:06 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Wrong field order? Hum, I don't think so because if I set the "img_fx_param.effect_parameter[2]=1" to half the frame rate of the deinterlacer (25fps instead of 50fps) the final video is smooth, without "back and forward" issues. Yesterday, I've performed some additional tests to exclude any potenti...
by luiscgalo
Sat Jul 14, 2018 11:25 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Today I've been performing some tests with some overclocking of the gpu and SDRAM and I'm able to encode 1080p50 without loosing frames. :) You're encoding to a raw H264 elementary stream. Of course, you are right! There is no info regarding framerate on the H264 file. Sorry, basic fault from my sid...
by luiscgalo
Thu Jul 12, 2018 9:13 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Thanks for the clarifications about the deinterlacing mechanism using the "image_fx" component. Finally I was able to understood the meaning of values for effect_parameter[0...3] of MMAL_PARAMETER_IMAGEFX_PARAMETERS_T :) Yesterday I've modified my source code and now the processing chain "rawcam" ->...
by luiscgalo
Wed Jul 11, 2018 9:26 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

6by9, your suspicion was right. My problem was setting a buffer length which does not corresponds to the expected data size (1920*10 80 *3 instead of the expected 1920*10 88 *3 ). Right now I've almost all components of my "data flow diagram" already working! (blocks in green on my diagram) :) "Rawc...
by luiscgalo
Mon Jul 09, 2018 12:16 pm
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

Thanks for your quick feedback and useful clarifications. It accepts a number of formats, including opaque. Opaque is an internal format where the buffer only contains a reference to an existing GPU image object. That is not the case for you. The raw pixel formats it accepts are I420, SAND (YUVUV128...
by luiscgalo
Mon Jul 09, 2018 9:14 am
Forum: Camera board
Topic: Raw sensor access / CSI-2 receiver peripheral
Replies: 532
Views: 170429

Re: Raw sensor access / CSI-2 receiver peripheral

I had very busy days at work and I only had some time for testing during this weekend. Your suggestion of setting a pattern on the callback buffers was the key to solve the problem of identifying packets containing image data. I'm now able to capture raw BGR24 data from a 1080i50 source. :) If someo...

Go to advanced search