Go to advanced search

by longo92
Tue Mar 17, 2020 9:56 am
Forum: OpenMAX
Topic: Restart the mmal h264 decoder
Replies: 1
Views: 364

Restart the mmal h264 decoder

Hi, Is there a way to restart (or re-initialize) the internal state of an active h264 mmal decoder? Sometime (not often) after a while the output frames seem corrupted (i.e., there are compression artifacts) but the decoder does not rise any kind of error (i check the buffer header "cmd" and "flags"...
by longo92
Sat Mar 14, 2020 11:17 am
Forum: Raspbian
Topic: brcmfmac issue
Replies: 6
Views: 402

Re: brcmfmac issue

Here, i have recorded the following log from dmesg...hope it helps. [Mar14 09:46] ------------[ cut here ]------------ [ +0.000127] WARNING: CPU: 0 PID: 13628 at ./include/linux/syscalls.h:267 addr_limit_check_failed+0x3c/0x94 [ +0.000010] Invalid address limit on user-mode return [ +0.000010] Modul...
by longo92
Mon Feb 24, 2020 1:47 pm
Forum: Raspbian
Topic: brcmfmac issue
Replies: 6
Views: 402

Re: brcmfmac issue

Upgrade to latest raspbian Buster, still having the issue :/
by longo92
Wed Feb 19, 2020 1:23 pm
Forum: Raspbian
Topic: Huge cpu load by kworker
Replies: 1
Views: 156

Huge cpu load by kworker

Hi, i downloaded the latest raspbian buster (Februrary 2020 release) and i'm exeperencig an high cpu load (around 15%) given by "kworker/u2:2-events_unbound". Do you know possible reasons?


Thanks,
Alessandro
by longo92
Fri Feb 14, 2020 10:24 am
Forum: Raspbian
Topic: brcmfmac issue
Replies: 6
Views: 402

brcmfmac issue

Hi, i'm using a raspberrry pi 0-w, using kernel "4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux" (Stretch release). After some time dmesg shows repetitively this log and the network connectivity stops working: [feb14 06:41] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg fai...
by longo92
Fri Jan 24, 2020 12:55 pm
Forum: OpenMAX
Topic: OMX_IndexConfigPowerDown equivalent in MMAL
Replies: 2
Views: 359

Re: OMX_IndexConfigPowerDown equivalent in MMAL

I have a battery sensitive camera streaming app, It is a constrain to maximize the energy-saving when the steraming is not required. The actual policy is to put the camera in "standby mode" using MMAL_PARAMETER_CAPTURE. I'm searching further methods to save power, this is why i'm asking about OMX_In...
by longo92
Fri Jan 24, 2020 10:20 am
Forum: OpenMAX
Topic: OMX_IndexConfigPowerDown equivalent in MMAL
Replies: 2
Views: 359

OMX_IndexConfigPowerDown equivalent in MMAL

Hi, i've seen that openMax exposes OMX_IndexConfigPowerDown in the camera component(http://www.jvcref.com/files/PI/documentation/ilcomponents/camera.html), which is the equivalent parameter in MMAL? If not present in MMAL, how can i set an OpenMax parameters through MMAL interface (i.e., access the ...
by longo92
Wed Jan 08, 2020 1:50 pm
Forum: OpenMAX
Topic: low light areas are too dark in h264 video
Replies: 9
Views: 604

Re: low light areas are too dark in h264 video

Thanks for your answer. Specifically the actual problem is the following: The camera component ([email protected] fps) si attached to a splitter: -the first output of the splitter renders to a video . -the second output encodes in h264 (profile main, 1Mbit of bitrate) and streams. Therefore starting camer...
by longo92
Wed Jan 08, 2020 10:22 am
Forum: OpenMAX
Topic: low light areas are too dark in h264 video
Replies: 9
Views: 604

low light areas are too dark in h264 video

Hi i'm performing an h264 video streaming with resolution 1280x960 at 10 fps. The encoder is set to profile main and bitrate set to 1Mbit. The issue is the following: the low light areas are too dark (the encoder "recognizes" them as black). If i run "raspivid -t 0" (preview mode with same resolutio...
by longo92
Tue Dec 17, 2019 10:05 am
Forum: Advanced users
Topic: Freezing with RT-patch (Pi 3)
Replies: 24
Views: 8989

Re: Freezing with RT-patch (Pi 3)

Giuiano, the link patch is not valid:
https://www.osadl.org/monitoring/patche ... patch.html
Can you send me, through private message, the patch?

Thanks,
Alessandro
by longo92
Wed Nov 27, 2019 10:04 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 356

Re: Timer interrupt per second limit

All my threads fail. As said the timer does not trigger inttetrupt, then everything is actually sleeping will sleep forever, also every command that use a sleep function will wait forever (command like top or a simple ping).
by longo92
Wed Nov 27, 2019 9:48 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 356

Re: Timer interrupt per second limit

I have 35 threads that sleeps using clock_nanosleep on CLOCK_MONOTONIC,in total i have 1200-1330 int/s.
by longo92
Wed Nov 27, 2019 9:33 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 356

Re: Timer interrupt per second limit

I have a set of periodic threads, which workload varies. My problem is that after a while the timer does not trigger interrupt (i check using cat /proc/interrupt). Has anything like this ever happened to you?
by longo92
Wed Nov 27, 2019 9:08 am
Forum: C/C++
Topic: Timer interrupt per second limit
Replies: 7
Views: 356

Timer interrupt per second limit

Hi,
is there a maximum limit on the number of interrupt per second which the system timer can handle?
by longo92
Fri Nov 15, 2019 1:37 pm
Forum: Advanced users
Topic: Freezing with RT-patch (Pi 3)
Replies: 24
Views: 8989

Re: Freezing with RT-patch (Pi 3)

Grazie mille Giuliano. I'm actually trying with your fix on cmdline.txt and seems working; i would like understand deeper the issue, do you know if there is a way to see (from linux command line) the last interrupt handler holding the cpu? Or to know if is Linux stalled on interrupt handler? Thanks
by longo92
Fri Nov 15, 2019 12:09 pm
Forum: Advanced users
Topic: Possible usb FIQ problem with system timer
Replies: 0
Views: 129

Possible usb FIQ problem with system timer

Hi, I'm discovering a similar problem in post: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=159170&p=1566453#p1566453 I'm using kernel 4.14 non-RT patched on a raspberry pi 0 W, i have the following issue: after some time the timer interrupts are not incremented (i check using "cat /proc/...
by longo92
Fri Nov 15, 2019 10:03 am
Forum: Advanced users
Topic: Freezing with RT-patch (Pi 3)
Replies: 24
Views: 8989

Re: Freezing with RT-patch (Pi 3)

Hi, i'm resuming this old post. I'm using kernel 4.14 non-RT patched on a raspberry pi 0 W, i have the following issue: after some time the timer interrupts are not incremented (i check using "cat /proc/interrupts"). i have a process in charge of recording, play and send/receive sound over network, ...
by longo92
Tue Oct 29, 2019 1:55 pm
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 2442

Re: Full KMS vs Fake KMS vs Legacy driver

I have two more questions about developing opengl application: 1) Regarding performance and power consumption: is better to use legacy or KMS? 2) Are those drivers transparent to the programmer (i.e., the executable is the same)? Or i must compile using different OpengGl library (instead of brcmGLES...
by longo92
Tue Oct 29, 2019 11:00 am
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 2442

Re: Full KMS vs Fake KMS vs Legacy driver

Ok, thanks for your explanation. can i found the source code of KMS drivers (both Fake and Full) here https://github.com/raspberrypi/linux/tree/rpi-4.19.y/drivers/gpu/drm/vc4, right? Instead is the legacy driver propetary closed-source (i.e., impossible to find the source code)? Thank you, Alessandro
by longo92
Mon Oct 28, 2019 3:13 pm
Forum: Graphics, sound and multimedia
Topic: Full KMS vs Fake KMS vs Legacy driver
Replies: 10
Views: 2442

Full KMS vs Fake KMS vs Legacy driver

Hi, i don't understand the differences between those drivers. Can you explain to me? AFAIK the Legacy driver is the one enabled by default. In https://github.com/raspberrypi/userland/tree/master/interface/khronos/glxx there is the implementation of Opengl ES, the opengl commands are sent by the clie...
by longo92
Tue Oct 15, 2019 1:21 pm
Forum: OpenGLES
Topic: Decoder and EGL image
Replies: 0
Views: 1675

Decoder and EGL image

Hi, i have two thread: -One is in charge of decoding an h264 stream. -The other is an opengl es 2.0 rendering thread. I set up the h264 decoder in order to have a mmal opaque buffers as output, then i pass them to a render thread (using an mmal queue) that transforms into textures rendered on a quad...
by longo92
Thu Aug 08, 2019 7:10 am
Forum: C/C++
Topic: Clock_nanosleep issues
Replies: 4
Views: 2737

Re: Clock_nanosleep issues

Sorry but the program is too compex (streaming video and audio app), the problem is that the timer doesn't trigger interrupts at some point in time (check /proc/interrupts), so my processes waiting in nanosleep cannot awake.
by longo92
Fri Jul 19, 2019 8:36 am
Forum: C/C++
Topic: sched: RT throttling activated
Replies: 3
Views: 1614

sched: RT throttling activated

Hi, I have a raspberry pi 0 that runs two application: the first a video-straming app. (takes video from the rpi camera, encodes in H264 and streams) and the second an audio streaming app (takes audio throug a microphone via usb card device, encodes it using opus and then streams), both through webs...
by longo92
Wed Jul 03, 2019 3:48 pm
Forum: C/C++
Topic: Clock_nanosleep issues
Replies: 4
Views: 2737

Clock_nanosleep issues

Hi, i have a multi-threaded program with a certain number of periodic threads. The typical periodic thread code is the following: static void time_add_ms(struct timespec *t, int ms) { t->tv_sec += ms/1000; t->tv_nsec += (ms%1000)*1000000; if (t->tv_nsec > 1000000000) { t->tv_nsec -= 1000000000; t->t...
by longo92
Mon Mar 11, 2019 6:32 pm
Forum: Graphics programming
Topic: set the decode parameters using sps
Replies: 5
Views: 953

Re: set the decode parameters using sps

I mean if you don't know the resolution of the incoming streaming and you want infer at run time. Is there a way? For inpurt port is passing the sps/pps but what options for the output port?

Go to advanced search