Go to advanced search

by ejarosek
Sat Jun 29, 2019 1:42 pm
Forum: Media centres
Topic: RPi4: 4k60 video on one hdmi, audio pass through on other?
Replies: 1
Views: 563

RPi4: 4k60 video on one hdmi, audio pass through on other?

So, I ran out and grabbed the new Raspberry PI 4 when they came into stock at Microcenter to enable 4k HEVC content on my 4k TV. In the process of setting it up I ran into an issue. Apparently my receiver, even though it will output 4k, will not allow a 4k input. If I plug the RPi directly into the ...
by ejarosek
Sat Mar 22, 2014 2:23 am
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 19744

Re: Full FOV preview, 60 and 90fps modes released

Thanks for the summary Jamesh. One note, it appears the bitrate calculation is based on 30fps. So, if I set the bitrate to 4Mbps for 1280p at 49fps it actually produces a bitrate of 6.4Mbps (4Mbps * 49/30). Not sure if that is the expected behavior, just something I observed. OK, fix for this here....
by ejarosek
Sun Mar 16, 2014 6:52 pm
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 19744

Re: Full FOV preview, 60 and 90fps modes released

Thanks for the summary Jamesh.

One note, it appears the bitrate calculation is based on 30fps. So, if I set the bitrate to 4Mbps for 1280p at 49fps it actually produces a bitrate of 6.4Mbps (4Mbps * 49/30). Not sure if that is the expected behavior, just something I observed.
by ejarosek
Sun Mar 16, 2014 6:21 pm
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 19744

Re: Full FOV preview, 60 and 90fps modes released

Ah, found it. Sorry, when I read the post here about VGA at 90fps I made the assumption that the 720p at 60fps was also supported. I see how in the V4L thread where you say it is limited to 49fps.

Thank you much.
by ejarosek
Sun Mar 16, 2014 6:01 pm
Forum: Camera board
Topic: Full FOV preview, 60 and 90fps modes released
Replies: 65
Views: 19744

Re: Full FOV preview, 60 and 90fps modes released

So, I am also seeing what I think Chris is talking about although my test is a bit different. When I run this command: ./raspivid -t 30000 -fps 30 -w 1280 -h 720 -b 2000000 -o 720p-30fps-light.h264 Things look good...same as always. https://www.dropbox.com/s/mwpgyq2b7jrvdlt/720p-30fps-light.h264 Whe...
by ejarosek
Wed Jan 15, 2014 12:28 am
Forum: OpenMAX
Topic: Where would I start?
Replies: 2
Views: 2589

Re: Where would I start?

When I first started I definitely had some issues finding things but there are resources there if you look for them. The base PI image comes with documentation for the IL Components (think it is under /opt/vc). Here is a copy online: https://github.com/raspberrypi/firmware/tree/master/documentation/...
by ejarosek
Tue Jan 14, 2014 11:41 pm
Forum: OpenMAX
Topic: Encoding USB webcam input
Replies: 6
Views: 5524

Re: Encoding USB webcam input

As a followup I pulled up the MJPEG output from my Logitech C920.

At 720p, 30fps you are looking at ~25Mbps
At 1080p, 30fps you are looking at ~45Mbps.

Both should be fine over the PI USB. How easy it would be to chain them all together is a different issue.
by ejarosek
Tue Jan 14, 2014 8:36 pm
Forum: OpenMAX
Topic: Encoding USB webcam input
Replies: 6
Views: 5524

Re: Encoding USB webcam input

It will probably not work. Let's see if my calculations are right: YUV420 = 12bits / pixel 720p = 921600 pixels / frame 30fps = 331,776,000 bits/sec Although the USB2 spec is 480Mbps the Raspberry Pi, in my experience, can't do anything close to that number. In the past when I tried it I had a certa...
by ejarosek
Mon Oct 28, 2013 5:03 am
Forum: Camera board
Topic: is there a way to get from mmal to opengl texture
Replies: 47
Views: 13729

Re: is there a way to get from mmal to opengl texture

If you look over in the Graphics Programming / OpenMAX forum area there are a few people who have captured from the camera using the OpenMAX framework instead of MMAL. ..I think.. that if you work in that framework it is much easier to send the video over into the OpenGL framework.
by ejarosek
Thu Oct 24, 2013 2:27 am
Forum: OpenMAX
Topic: accessing usb camera using omx il API failure
Replies: 1
Views: 1530

Re: accessing usb camera using omx il API failure

Others can correct me if I am wrong but I believe you will need to use V4L2 to access a USB webcam. OpenMAX will only work with the CSI based camera module.
by ejarosek
Sun Oct 20, 2013 2:24 am
Forum: OpenMAX
Topic: OpenMAX IL demos
Replies: 14
Views: 15555

Re: OpenMAX IL demos

Out of curiosity, was there a limitation to the MMAL libraries that caused you to use OpenMAX IL instead or was it just to do as a learning experience?
by ejarosek
Thu Aug 29, 2013 4:14 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

Yeah, network packet loss. I haven't had time to see whether the video sync loss on the decoder side is an issue with how I am sending / timestamping the packets or if it is something else. I am setting up the encoder to do baseline but I haven't actually checked the output to ensure that it is acce...
by ejarosek
Tue Aug 27, 2013 6:36 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

Yeah, it was my plan to open source it at some point. I got to the point where I was able to establish sessions and see video but packet loss was causing some major issues (video would lock until the next iframe). I had not yet implemented the decode side. I haven't had a lot of time to play with it...
by ejarosek
Sun Aug 11, 2013 10:36 pm
Forum: Camera board
Topic: [FIXED] libmmal_core.so: cannot open shared object file
Replies: 9
Views: 12518

Re: libmmal_core.so: cannot open shared object file

Do a:
readelf -h ./libmmal.so

It sounds like the library was compiled for the wrong architecture. See if things check out (ARM platform).
by ejarosek
Fri Aug 09, 2013 9:19 pm
Forum: Camera board
Topic: [FIXED] libmmal_core.so: cannot open shared object file
Replies: 9
Views: 12518

Re: libmmal_core.so: cannot open shared object file

Maybe try:

ldd /opt/vs/lib/libmmal_core.so

See if the library is missing any dependencies? I don't think you would usually get the error on this library in that case but maybe...
by ejarosek
Wed Aug 07, 2013 3:51 am
Forum: Camera board
Topic: [FIXED] libmmal_core.so: cannot open shared object file
Replies: 9
Views: 12518

Re: libmmal_core.so: cannot open shared object file

Make sure that the /opt/vc/lib is in your library path. On my pi /etc/ld.so.conf.d/00-vmcs.conf has the /opt/vc/lib path. If you don't have that file and none of the other files under /etc/ld.so.conf.d/ contain that path create a new file: File Name: /etc/ld.so.conf.d/00-vmcs.conf Contents: /opt/vc/...
by ejarosek
Thu Jul 04, 2013 5:01 am
Forum: Camera board
Topic: raspivid H264 on Android
Replies: 9
Views: 4335

Re: raspivid H264 on Android

For setting baseline, the following seems to work (although I haven't actually checked the stream): MMAL_PARAMETER_VIDEO_PROFILE_T vidProfileParam = { { MMAL_PARAMETER_PROFILE, sizeof(vidProfileParam) }, { MMAL_VIDEO_PROFILE_H264_CONSTRAINED_BASELINE, MMAL_VIDEO_LEVEL_H264_31 } }; status = mmal_port...
by ejarosek
Thu Jun 20, 2013 3:40 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

Yeah, that is what I was alluding to with the NAL fragments. RTP does have a mechanism to take a single NAL and split it across multiple packets. It has pros and cons. Pros: - Doesn't force changes in the encoder, easier for translation between different transport where MTU may be different sizes Co...
by ejarosek
Thu Jun 20, 2013 4:33 am
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

Jamesh, thank you for the replies. Another unrelated question. I am trying to figure out how to divide the encoded frames into slices so that they can be properly framed in an RTP packet. The first obvious answer to me was to decrease the buffer size to match the given MTU so the encoder would split...
by ejarosek
Wed Jun 19, 2013 7:51 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

My own program. I am trying to implement a mediastream plugin for linphone using the raspberry pi camera. I was using RaspiVid as a reference for the order of setup and such. Since I was not writing to a file and had other data I wanted to pass I had created a different structure that I passed into ...
by ejarosek
Wed Jun 19, 2013 4:16 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

I was trying an all out switchout of the structure with my own data, not adding additional fields to the struct defined in RaspiVid. I will give adding additional fields a try and see what that yields.
by ejarosek
Tue Jun 18, 2013 2:38 am
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

Re: MMAL Question: struct MMAL_PORT_USERDATA_T question

Hmmmm...I was afraid that was the case. That must mean I am corrupting memory somewhere else. I have my own program (not modifying RaspiVid) but if I use a different structure for the callback data my program implodes...must just be random that replacing the structure fixed it then. Thank you, Ehren
by ejarosek
Fri Jun 14, 2013 10:03 pm
Forum: Camera board
Topic: MMAL Question: struct MMAL_PORT_USERDATA_T question
Replies: 16
Views: 2669

MMAL Question: struct MMAL_PORT_USERDATA_T question

Question for you all, The struct MMAL_PORT_USERDATA_T which allows you to pass user data to the encoder frame callback; does this have to be of a specific format? I couldn't find a definition of the struct so I assumed I could pass any old void * to it but quickly ran into weird crashes. When I chan...
by ejarosek
Fri May 24, 2013 4:31 am
Forum: Camera board
Topic: MMAL vs OpenMAX IL
Replies: 1
Views: 1411

MMAL vs OpenMAX IL

Couple Questions: 1) Do you have to use MMAL to utilize the camera or is there also support using the OpenMAX IL framework? 2) If you have to use MMAL, are there ways of adjusting encoder settings beyond the basic resolution / framerate / bitrate? I am looking to try and implement an interactive vid...
by ejarosek
Wed Jan 30, 2013 6:42 pm
Forum: Other projects
Topic: Best USB cameras that work with PI
Replies: 6
Views: 3830

Re: Best USB cameras that work with PI

Sure, makes sense. The main issue I had with the pi is the usb. It just can't handle the increased bandwidth of raw YUV / RGB from a webcam. MJPEG would probably be better but (95% sure) the hardware MJPEG decode of the pi is not enabled. If it was you could probably do: Camera (MJPEG) -> OMAX MJPEG...

Go to advanced search