Go to advanced search

by 6by9
Wed Sep 18, 2019 2:14 pm
Forum: Camera board
Topic: raspberry pi zero w no camera preview on tv out pin (composit)
Replies: 8
Views: 228

Re: raspberry pi zero w no camera preview on tv out pin (composit)

This is most likely to be something having changed in the firmware, but it would help if you could identify roughly where/when. - Backup your SD card in case things go bad - Use "sudo rpi-update" to update your Stretch install to the latest firmware and kernel. - Reboot. - Does that fail? If it does...
by 6by9
Wed Sep 18, 2019 11:08 am
Forum: Graphics programming
Topic: MMAL video playback into DRM planes.
Replies: 7
Views: 1326

Re: MMAL video playback into DRM planes.

31 rotation: flags: bitmask values: rotate-0=0x1 rotate-180=0x4 reflect-x=0x10 reflect-y=0x20 value: 1 Only `rotate-180` seems to work. I've not been able to use any of the reflect bits. For example setting 0x10 returns errno=Invalid argument. I'm looking at this for other reasons and had a bit of ...
by 6by9
Tue Sep 17, 2019 11:15 am
Forum: Graphics, sound and multimedia
Topic: Real Time Transcoding of DVB TV Streams
Replies: 330
Views: 111248

Re: Real Time Transcoding of DVB TV Streams

gst-omx renders into a EGL buffer in RGBA format, which means it includes a conversion into RGBA. Both half-images are rendered into one images, which contains the first image in lines 1,3,5 ... and the second image in lines 2,4,5 ... The image data will be incorrectly interpreted during that conve...
by 6by9
Tue Sep 17, 2019 9:14 am
Forum: Device Tree
Topic: TouchScreen Driver Support for Hycon 46XX Chip
Replies: 4
Views: 1278

Re: TouchScreen Driver Support for Hycon 46XX Chip

Link to your other thread where you asked almost the same question - https://www.raspberrypi.org/forums/view ... 7&t=251882
by 6by9
Tue Sep 17, 2019 9:12 am
Forum: General discussion
Topic: Possible to add GLES EXT_buffer_storage driver support to Videocore VI on the Pi4?
Replies: 23
Views: 1466

Re: Possible to add GLES EXT_buffer_storage driver support to Videocore VI on the Pi4?

Response from Igalia I think shader storage is already there in the version of the driver available in the Rpi. It has some important bugs we have been fixing but the feature should be exposed as an extension. In any case, there is a public branch with GLES 3.1 here [1]. We are constantly rebasing i...
by 6by9
Tue Sep 17, 2019 7:12 am
Forum: Device Tree
Topic: Error while compiling device tree overlay file
Replies: 2
Views: 54

Re: Error while compiling device tree overlay file

https://www.raspberrypi.org/documentati ... ce-tree.md
You're missing the -@ on the command line to allow it to look up references later.

And your overlay shouldn't allocate a phandle for your own new node - the compiler allocates those.
by 6by9
Mon Sep 16, 2019 4:53 pm
Forum: Graphics, sound and multimedia
Topic: Real Time Transcoding of DVB TV Streams
Replies: 330
Views: 111248

Re: Real Time Transcoding of DVB TV Streams

But all H264 encoded channels (SD and HD) didn't work. gst-omx decoding simply doesn't work on the RPi 4 any more. Groan, they merged in the use of egl_render to convert video frames into EGL frames. That's going to fail in a big way as we have no EGL backend to register with. That appears to be co...
by 6by9
Mon Sep 16, 2019 4:20 pm
Forum: General discussion
Topic: Possible to add GLES EXT_buffer_storage driver support to Videocore VI on the Pi4?
Replies: 23
Views: 1466

Re: Possible to add GLES EXT_buffer_storage driver support to Videocore VI on the Pi4?

a) Eric no longer works for Broadcom, and isn't the only one submitting stuff. b) The normal approach with git is to have working branches. Which branch were you considering as "the relevant branches"? There are several active branches in his repo - https://gitlab.freedesktop.org/anholt/mesa/-/branc...
by 6by9
Mon Sep 16, 2019 2:04 pm
Forum: General discussion
Topic: vc4-fkms-v3d (Pi4 Graphics)
Replies: 13
Views: 1259

Re: vc4-fkms-v3d (Pi4 Graphics)

Must mesa be >=19.1.0 only for RPi 4 or for all RPi versions? (FTR: Debian Buster has mesa 18.3.6-2) Earlier Pis on which you run vc4-fkms-v3d or vc4-kms-v3d may work on earlier versions of mesa as they are using the vc4 driver for the 3D drawing side. Pi4 is using the v3d driver, and the last few ...
by 6by9
Mon Sep 16, 2019 1:55 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 15
Views: 280

Re: Span images/videos across two monitors 3840x1080

For very basic example apps of MMAL video_decode feeding DRM or GL see https://github.com/6by9/drm_mmal/blob/export/drm_mmal.c and https://github.com/6by9/drm_mmal/blob/x11_export/drm_mmal.c respectively. I haven't tested them that recently, but believe they were functional. It's all done with a sin...
by 6by9
Mon Sep 16, 2019 1:10 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 15
Views: 280

Re: Span images/videos across two monitors 3840x1080

I would say create an issue on Dom's repo, but it looks like issues have been disabled on it. I'll ask the question. Thanks a lot! So the answer is it is our code and are happy to licence it under any terms that make it most useful for projects. Any specific requests, or is LGPL2.1+ sufficient for ...
by 6by9
Mon Sep 16, 2019 12:56 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 15
Views: 280

Re: Span images/videos across two monitors 3840x1080

Got a first version working . Still very much unfinished, but splitting a 4K (or 3840x1080/1920x2160) video across two displays is indeed possible. Well done. Reading your post, Right now I’m not sure if it’s possible to decode two videos at once, for example. I don't believe it is currently, but I...
by 6by9
Mon Sep 16, 2019 12:44 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 15
Views: 280

Re: Span images/videos across two monitors 3840x1080

Working on that and that's definitely something I need to support. About that: What's the license for the code in the 2711 branch of popcornmix's FFmpeg branch? There's only Copyright (c) June 2017 Raspberry Pi Ltd in one of the files and no info in others. LGPL? Is there a way to clarify that? Or ...
by 6by9
Sat Sep 14, 2019 8:00 am
Forum: Advanced users
Topic: Raspberry Pi Zero with 8MP camera
Replies: 2
Views: 200

Re: Raspberry Pi Zero with 8MP camera

The sensor delivers one stream of raw images which includes 8mp @ 15fps or 1080p @ 30fps. Those raw images have to be processed before they are viewable. That processing is done by a hardware block called the isp (image sensor pipeline). It can process around 100Mpix/s, therefore 8Mpix15 exceeds its...
by 6by9
Fri Sep 13, 2019 1:49 pm
Forum: Camera board
Topic: Is there a c library equivalent to picamera ?
Replies: 4
Views: 200

Re: Is there a c library equivalent to picamera ?

To the possible readers of this thread i would suggest to give a look at: https://picamera.readthedocs.io/en/release-1.13/fov.html that can give and idea on what is going under the hood of the Raspberry Camera and http://www.jvcref.com/files/PI/documentation/html/ for the MMAL API documentation. Pi...
by 6by9
Fri Sep 13, 2019 1:36 pm
Forum: Advanced users
Topic: Hardware video decoding (mmal) causes large latency in Raspberry Pi 3 B+
Replies: 3
Views: 135

Re: Hardware video decoding (mmal) causes large latency in Raspberry Pi 3 B+

If the decoder isn't told where the frame boundaries are (which is what that flag should be setting), then the decoder waits for the input FIFO to hit a certain level before attempting to decode any data. That's the normal reason for the increased latency. Tell the decoder that it has a complete buf...
by 6by9
Fri Sep 13, 2019 1:26 pm
Forum: General discussion
Topic: How to play two different videos in two different displays simultaneously using gstreamer?
Replies: 8
Views: 250

Re: How to play two different videos in two different displays simultaneously using gstreamer?

None of the V4L2 devices on the Pi are output devices (they are all memory to memory processing devices), therefore v4l2sink will not work for trying to output images to the screen. kmssink is the thing you want to use. Download http://mirror.bigbuckbunny.de/peach/bigbuckbunny_movies/big_buck_bunny_...
by 6by9
Fri Sep 13, 2019 12:16 pm
Forum: Graphics, sound and multimedia
Topic: Span images/videos across two monitors 3840x1080
Replies: 15
Views: 280

Re: Span images/videos across two monitors 3840x1080

What is the recommended player for playing hevc coded videos and how to make sure playback on both screens is in sync (as to my understanding GPU only can't decode hevc video; CPU is needed as well dor this)? Currently I'm not aware of any player that can do that on any standard Linux platform. I k...
by 6by9
Fri Sep 13, 2019 10:27 am
Forum: Advanced users
Topic: Hardware video decoding (mmal) causes large latency in Raspberry Pi 3 B+
Replies: 3
Views: 135

Re: Hardware video decoding (mmal) causes large latency in Raspberry Pi 3 B+

I think this is just a signalling thing in FFmpeg, which MPV offloads decoding to. I suspect that the line at https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/mmaldec.c#L595 wants to be changed from mbuffer->flags = buffer->flags; to mbuffer->flags = buffer->flags | MMAL_BUFFER_HEADER_FLAG_FR...
by 6by9
Fri Sep 13, 2019 9:52 am
Forum: General discussion
Topic: Pi 4 firmware, software stability improvements
Replies: 83
Views: 18195

Re: Pi 4 firmware, software stability improvements

It is still there, just lessened significantly. It is probably impossible to eliminate completely in X (as was said on here before). It is possible to bring down to an acceptable level where it is a barely noticeable though. I think most will be satisfied with that until X is eventually replaced. I...
by 6by9
Fri Sep 13, 2019 9:10 am
Forum: General discussion
Topic: How to play two different videos in two different displays simultaneously using gstreamer?
Replies: 8
Views: 250

Re: How to play two different videos in two different displays simultaneously using gstreamer?

In downloads I have .mkv .mp4 and .avi files. That tells me the container you are using, not the encoding. What resolution, and codec areyou using, and critically are they interlaced? It looks like 720x480 @ 30fps, H264, but it is reporting "interlace-mode=(string)mixed", and interlaced decoding is...
by 6by9
Fri Sep 13, 2019 6:34 am
Forum: General discussion
Topic: Pi 4 firmware, software stability improvements
Replies: 83
Views: 18195

Re: Pi 4 firmware, software stability improvements

Hello everyone, with latest update youtube now good 1080p. but it seems horizontal lines middle of the screen when fast moving. It can be remove in future updates? This is called tearing, and without making X double buffer (!) will be difficult to mitigate against. And changes to X are not generall...
by 6by9
Thu Sep 12, 2019 8:17 pm
Forum: Graphics, sound and multimedia
Topic: change default HDMI on Pi4 to HDMI1
Replies: 2
Views: 133

Re: change default HDMI on Pi4 to HDMI1

It should happen automatically if hdmi1 is the only one connected.
by 6by9
Thu Sep 12, 2019 8:03 pm
Forum: General discussion
Topic: How to play two different videos in two different displays simultaneously using gstreamer?
Replies: 8
Views: 250

Re: How to play two different videos in two different displays simultaneously using gstreamer?

What is your source stream? It seems to be complaining that it is interlaced, nothing to do with kmssink.
modetest is the best utility for finding out the id values for any drm/kms attribute.
by 6by9
Thu Sep 12, 2019 12:28 pm
Forum: General discussion
Topic: RPi 4 1GB RAM
Replies: 7
Views: 373

Re: RPi 4 1GB RAM

Hevc decode is currently using gpu_mem and wants around 320MB of it for 4k decode. Libreelec have taken advice on sensible settings for their use case, so don't fiddle unless you really need to. Didn't know that, I'd assumed since its was a ARM side driver it used ARM side memory. A refresher requi...

Go to advanced search