Go to advanced search

by Ruuzis
Tue Feb 07, 2017 2:49 pm
Forum: Graphics, sound and multimedia
Topic: Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVELENGT
Replies: 5
Views: 668

Re: Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVEL

Hi 6by9,

thank you very much for the reply, very useful information as always:) Ok, I'll fall back to start codes then. Hope anyone else who stumbles upon this finds this useful.
by Ruuzis
Tue Feb 07, 2017 1:36 pm
Forum: Graphics, sound and multimedia
Topic: Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVELENGT
Replies: 5
Views: 668

Re: Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVEL

Hi 6by9, sorry for the late response. Basically you already answered my main question. I am streaming the video over rtsp (so yeah, I am not using raspivid) and I had corruptions although the rtp packetization seemed fine. So I will decrease the level to 4.0. As for the interleaved NAL lengths - the...
by Ruuzis
Tue Feb 07, 2017 12:13 am
Forum: Graphics, sound and multimedia
Topic: Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVELENGT
Replies: 5
Views: 668

Behavior of MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVELENGT

I was expecting that MMAL_VIDEO_NALUNITFORMAT_FOURBYTEINTERLEAVELENGTH would work in a similar manner as in mp4 where the 4 byte interleaved size states the size of a complete NAL unit. Thus I expected to get a first buffer header with the 4 byte size and then that amount of payload. However, when t...
by Ruuzis
Thu Jan 26, 2017 9:46 am
Forum: Compute Module
Topic: STICKY: Is CM3 compatbile with the CM1 development board?
Replies: 21
Views: 19090

Re: Is CM3 compatbile with the CM1 development board?

Thank you for the replies.
by Ruuzis
Thu Jan 26, 2017 9:20 am
Forum: Compute Module
Topic: STICKY: Is CM3 compatbile with the CM1 development board?
Replies: 21
Views: 19090

STICKY: Is CM3 compatbile with the CM1 development board?

Hi,

Is CM3 compatbile with the CM1 development board? I just got a the CM3 module (I was previously using CM1 and the CM1 development board for a stereo vision setup), and was wondering do I need to replace the develpoment board as well or are they compatible?
by Ruuzis
Mon May 16, 2016 12:04 pm
Forum: Graphics, sound and multimedia
Topic: video_render ignoring frames after reconfiguration
Replies: 5
Views: 846

Re: video_render ignoring frames after reconfiguration

Hi 6by9,

thank you very much for the code references. Indeed seems that my intuition was right and both ends should be cleared:) I'll do some more debugging to see why in my case it fails.
by Ruuzis
Mon May 16, 2016 9:40 am
Forum: Graphics, sound and multimedia
Topic: video_render ignoring frames after reconfiguration
Replies: 5
Views: 846

Re: video_render ignoring frames after reconfiguration

Hi 6by9, thank you very much for looking into this even though it was a stupid mistake from my side. Just out of curiosity - when I tear down the tunnel why do I need to create a new tunnel only on the output port of the video decoder (tunneling it to nowhere)? Shouldn't both ends be detached or doe...
by Ruuzis
Sun May 15, 2016 8:58 pm
Forum: Graphics, sound and multimedia
Topic: video_render ignoring frames after reconfiguration
Replies: 5
Views: 846

Re: video_render ignoring frames after reconfiguration

I happily tracked down the one line change (after 3 days of debugging :D) that introduced this and I honestly do not quite understand why it had such effect so if anyone can enlighten me that would be great:) So previously when I got the port settings changed event I only set up a new tunnel between...
by Ruuzis
Sun May 15, 2016 5:00 pm
Forum: Graphics, sound and multimedia
Topic: video_render ignoring frames after reconfiguration
Replies: 5
Views: 846

video_render ignoring frames after reconfiguration

Hi, after changing my H264 streaming pipeline my Raspberry Pi OMX based playback pipeline started to fail after a resolution change happened. I tried to understand what is failing from the video core log, but I see no errors. What happens is that after the resolution change video_render component pr...
by Ruuzis
Mon Dec 28, 2015 11:12 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

One more thing - if I use one video_decoder and set OMX_IndexConfigDisplayRegion before each new buffer is passed in would that result in a horrific slowdown? If so memcpy()'ing and providing full buffers would make most sense. If that still seems slow I will try glTexSubImage2D() on an egl surface ...
by Ruuzis
Sat Dec 26, 2015 9:05 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Hi 6by9, thanks for the info. Yeah when thinking about this I also came to the conclusion that I could just decode the small fragment and simply memcpy it to the needed region in the buffer for video_render if that does not consume too much resources (in case of many wide lines) - I'll give that a s...
by Ruuzis
Wed Dec 23, 2015 10:58 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

One more thing I wanted to ask since this is now working - if I am using a VNC style approach and rendering not entire JPEG frames but an initial full sized JPEG image that would correspond to a full frame and then smaller JPEGs that present the modified rectangles - what is my best bet to achieve t...
by Ruuzis
Tue Dec 22, 2015 10:33 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Yeah, that was it. Thank you both for your time - I would not have found this in a near future by myself:D
by Ruuzis
Tue Dec 22, 2015 8:24 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Hi dom,

thanks for pointing this out - total failure from my side to notice this flag. If this turns out to be the cause of all this evil I apologize to you and 6by9 for not being careful enough and wasting your time:)
by Ruuzis
Tue Dec 22, 2015 2:04 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

As strange as it may sound I was compiling on a raspberry - even though with gcc 4.8 instead of the default gcc. When I get come I'll reconfirm the flags and see where this is coming from but it could solve all the weird stuff I've been seing. Even though - it is very weird that H.264 worker even wi...
by Ruuzis
Tue Dec 22, 2015 12:17 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Ok for now I am totally puzzled - when I pass an empty buffer to OMX_UseBuffer the nSize field is set to 72, while compiling this: #include <OMX_Core.h> #include <stdio.h> int main(int argc, char** argv) { OMX_BUFFERHEADERTYPE BufferHeader; printf("sizeof(OMX_BUFFERHEADERTYPE) == %d", sizeof(BufferH...
by Ruuzis
Mon Dec 21, 2015 11:47 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Hi, thanks for pointing this out. Well if that is correct I am messing something up - but not sure what for now. It seems that what I am setting in flags goes to the input port - I am setting the right fields in my C++ code, I am never touching the output port field. What is weird the log shows the ...
by Ruuzis
Sat Dec 19, 2015 2:45 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Ok I finally got to something interresting - after queuing 29 frames the decoder spit out an error that it needs full frames - I am feeding it a full frame in each buffer plus setting the OMX_BUFFERFLAG_ENDOFFRAME flag on each one (I assume this is approved by the 16->130 value in each EmptyThisBuff...
by Ruuzis
Thu Dec 17, 2015 10:04 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Could this be related to extradata? Omxplayer uses ffmpeg and thus is able to pass in codec extradata extracted by ffmpeg, but I have no idea what is that in case of MJPEG - Huffmann tables, quantization tables or both? I'll try building omxplayer from sources and inspecting what exactly is it passi...
by Ruuzis
Wed Dec 16, 2015 12:20 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

I tried enabling the 204 log level but did not find anything valuable. Then to eliminate the possibilities of errors in defragmentation of the RTP stream I simply tried to load a JPEG file in a single memory buffer, set OMX_BUFFERFLAG_STARTTIME | OMX_BUFFERFLAG_ENDOFFRAME | OMX_BUFFERFLAG_SYNCFRAME ...
by Ruuzis
Tue Dec 15, 2015 1:19 pm
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Thanks for the info about additional logging - I'll definitely check that out.
by Ruuzis
Tue Dec 15, 2015 11:27 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

Hi 6by9, nice to hear from you, you already helped a lot with H.264. I am setting the flags - on the first buffer I set the start time flag and on the last the end of frame flag plus I insert an EOI marker. However I still see two things I can try out - adding the APP0 markers, and a second quantiza...
by Ruuzis
Tue Dec 15, 2015 10:33 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

Re: video_decode and MJPEG in OMX

I tried adding an explicit EOI marker that is not present in RTP but still not luck. As I read here - https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=19334&start=275#p269992 - it is said that only SD resolutions are supported? Is this still true? So 1920x1080 mjpeg picture is not supported? ...
by Ruuzis
Mon Dec 14, 2015 10:05 am
Forum: Graphics, sound and multimedia
Topic: video_decode and MJPEG in OMX
Replies: 23
Views: 4471

video_decode and MJPEG in OMX

Hi, previously I successfully made a client application that was able to decode H.264 from an RTP stream using video_decode. Now I have a need to implement dynamic payload switching between MJPEG and H.264. I simply used the existing pipeline and switched the codec to OMX_VIDEO_CodingMJPEG. The exis...
by Ruuzis
Mon Sep 01, 2014 6:59 pm
Forum: Graphics, sound and multimedia
Topic: video_decoder video_render tunnel dynamic reconfiguration
Replies: 21
Views: 3675

Re: video_decoder video_render tunnel dynamic reconfiguratio

First scenario, the OS is being "told" that it has 16 monitors, each of which is a 22" LCD + Raspberry Pi.

Go to advanced search