Raks2003
Posts: 3
Joined: Thu Jul 18, 2019 8:32 pm

RPI 4 video flickering issue

Thu Jul 18, 2019 8:48 pm

Hi Guys,

Before i start, I am a first time user of the Raspberry PI (never owned any of the previous models), and am sorry if my post doesn't make sense.

A few weeks ago I purchased my first RPI4. It all appeared to work fine, booted fine etc - But, during video playback, e.g. Youtube or Kodi, there is an annoying flicker. It doesn't flicker like crazy, i can still see the image, but its distracting.

I was disappointed by this, contacted Customer Services who promptly responded, and sent back my RPI4 for a refund. Whilst emailing them i asked "If you issue me a refund, and I buy another new Raspberry Pi 4, will it be able to work as advertised? E.g. to be able to play YouTube videos correctly?".

There response was "We should not see there being an issue if you order another new Raspberry Pi 4."

So, i ordered another - and i received my second RPI4 today.

I set it up, and it has exactly the same annoying flickering issue. As previously, i have tried two different Micro HDMI cables, and two different TV's. Yet the flicker is still there. I have tried to change the resolution of the desktop screen, from 1080 to 720, and still have the same issue. Even when a youtube video is playing in windowed mode, i can still see the flicker. (even if i run the youtube video at 360p).

Am i doing something wrong here?

Thank you

pcmanbob
Posts: 9004
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 7:21 am

Hi.

So is this flickering just affecting just the actual video or all of the screen ?

please can you give use some basic info as well

which OS are you running
what power supply are you using
have you made any changes to config.txt
are you using chrome to view youtube or some other browser
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

User avatar
RaTTuS
Posts: 10549
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 7:51 am

can you record and show this flickering -
have you got a decent micro usb / hdmi lead
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26035
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 8:52 am

I suspect you are seeing 'tearing' about half way down the image, which is a side effect of running through X windows and its single buffered framebuffer. Try running full screen rather than in a window.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“My wife said to me `...you’re not even listening`.
I thought, that’s an odd way to start a conversation.."

Raks2003
Posts: 3
Joined: Thu Jul 18, 2019 8:32 pm

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 1:53 pm

Firstly, thank you for taking the time to write back - i appreciate it

I've had some slight success since last night - i decided to give LibreELEC a go, and it plays Youtube videos fine (using the add-on), and other videos from my USB stick - with NO annoying flicker. :D

The issue is still there with Raspbian though :(

OS - I'm currently using Raspbian (downloaded from NOOBS_v3_2_0). I had the same issue with my previous RPI4, when using NOOBS_v3_1_1.
PSU - using the official Power Supply for RPI4, from the PiHut website.
config.txt - I've made no changes to this.
Browser - I'm using Chrome, the default browser that came with Raspbian.

Windowed/Fullscreen mode - i get the same flickering issue regardless
Micro HDMI cable - I'm not sure where my original cable came from, but i bought one from Amazon recently https://www.amazon.co.uk/gp/product/B00 ... UTF8&psc=1
(if LibreELEC plays the videos correctly, then surely it isn't a HDMI cable issue?)

I will try to record a video this evening of the flicker issue.

Thank you very much!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26035
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 2:31 pm

Raks2003 wrote:
Fri Jul 19, 2019 1:53 pm
Firstly, thank you for taking the time to write back - i appreciate it

I've had some slight success since last night - i decided to give LibreELEC a go, and it plays Youtube videos fine (using the add-on), and other videos from my USB stick - with NO annoying flicker. :D

The issue is still there with Raspbian though :(

OS - I'm currently using Raspbian (downloaded from NOOBS_v3_2_0). I had the same issue with my previous RPI4, when using NOOBS_v3_1_1.
PSU - using the official Power Supply for RPI4, from the PiHut website.
config.txt - I've made no changes to this.
Browser - I'm using Chrome, the default browser that came with Raspbian.

Windowed/Fullscreen mode - i get the same flickering issue regardless
Micro HDMI cable - I'm not sure where my original cable came from, but i bought one from Amazon recently https://www.amazon.co.uk/gp/product/B00 ... UTF8&psc=1
(if LibreELEC plays the videos correctly, then surely it isn't a HDMI cable issue?)

I will try to record a video this evening of the flicker issue.

Thank you very much!
Sadly, I think this is to be expected (if it is the tearing I mentioned above). This is due to the X windows system not being double buffered, so screen updates can happen during display updates, giving rise to tearing. We won't be spending the years of work required to make X double buffered. For serious video playback, use Kodi (in LibreElec) as that double buffers.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“My wife said to me `...you’re not even listening`.
I thought, that’s an odd way to start a conversation.."

Raks2003
Posts: 3
Joined: Thu Jul 18, 2019 8:32 pm

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 7:28 pm

Sadly, I think this is to be expected (if it is the tearing I mentioned above). This is due to the X windows system not being double buffered, so screen updates can happen during display updates, giving rise to tearing. We won't be spending the years of work required to make X double buffered. For serious video playback, use Kodi (in LibreElec) as that double buffers.
Thank you very much for clarifying this Jamesh.

Is this a problem that's native to the Raspbian OS? I'm wondering if other OS's may or may not have the same issue, and may be worth a try.

gkreidl
Posts: 6275
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: RPI 4 video flickering issue

Fri Jul 19, 2019 8:41 pm

I'm not sure about Buster and the RPi 4 yet, but if you use VLC and the X11 MMAL Splitter output there will be no tearing, lost frames etc. when you switch to full screen mode (key "f"). VLC then switches to overlay mode.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5468
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: RPI 4 video flickering issue

Thu Jul 25, 2019 1:45 pm

Raks2003 wrote:
Fri Jul 19, 2019 7:28 pm
Is this a problem that's native to the Raspbian OS? I'm wondering if other OS's may or may not have the same issue, and may be worth a try.
The problem is kodi in raspbian buster predates the Pi4, has no hardware decode support and triggers a bug in GL that causes tearing.

LibreELEC has pi 4 specific support and doesn't suffer from this.

Kodi with Pi4 patches can be built for raspbian - one user did it here: https://github.com/popcornmix/omxplayer/issues/714

lumsdot
Posts: 123
Joined: Wed Mar 11, 2015 5:29 pm

Re: RPI 4 video flickering issue

Wed Nov 06, 2019 6:58 pm

Screen Tearing any update on this? watching youtube on chromium still has screen tearing half way up the screen, really bad when the picture is scrolling sideways.

Bokbunja
Posts: 5
Joined: Sun Dec 08, 2019 6:26 am

Re: RPI 4 video flickering issue

Sun Dec 08, 2019 12:57 pm

Is it possible for a regular linux user to understand why this software limitation exists for the X windows system? Are there any simple alternatives? Streaming video in VLC seems very awkward for regular use. Most users probably assume Linux to be easily as capable as a Mac or Windows system... is this assumption flawed? Simply watching video in the web browser has such severe quality limitations? Clearly the raspberry pi hardware is capable.

haaldemir
Posts: 58
Joined: Mon Jul 08, 2019 2:46 pm
Location: Istanbul, Turkey

Re: RPI 4 video flickering issue

Fri Dec 13, 2019 1:04 pm

I installed with pinn also another os. There is two browser Mozilla Firefox and Chromium. Both has not tearing or flickering issue. I know that software side not hardware.ı hope later maybe 64 bit Rasbian solve this.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26035
Joined: Sat Jul 30, 2011 7:41 pm

Re: RPI 4 video flickering issue

Fri Dec 13, 2019 1:46 pm

haaldemir wrote:
Fri Dec 13, 2019 1:04 pm
I installed with pinn also another os. There is two browser Mozilla Firefox and Chromium. Both has not tearing or flickering issue. I know that software side not hardware.ı hope later maybe 64 bit Rasbian solve this.
Nothing to do with 32 or 64bit I am afraid.

My suspicion is that the other OS don't use the 3D acceleration.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“My wife said to me `...you’re not even listening`.
I thought, that’s an odd way to start a conversation.."

Bokbunja
Posts: 5
Joined: Sun Dec 08, 2019 6:26 am

Re: RPI 4 video flickering issue

Wed Dec 18, 2019 7:46 am

Just wondering if anyone can recommend a work-around for this issue?

I have tried the 'minimal kiosk browser' instead of chromium or firefox but have not been able to get bluetooth audio working with it. I'm also sceptical as to whether I can expect HD resolution with this option. Has anyone else been able to confirm both HD and bluetooth working via this route? VLC seems to work but only low resolution video (streaming from youtube for example) since google crippled whatever functionality (apparently) was working well for full HD some years ago.

LibreElec might be an option... the streaming quality from youtube is supposed to be good, but I haven't been able to get a VNC client / server setup working for this method. At present i do not have a hand-held remote setup for the pi 4. My preferred input at the moment is usually VNC on raspbian. Does anyone know of a current (December 2019) way of getting VNC to play nicely with LibreElec?

Any other options here i haven't already considered?

User avatar
Greysvandir
Posts: 1
Joined: Thu Jan 02, 2020 7:52 pm
Location: Russia

Re: RPI 4 video flickering issue

Thu Jan 02, 2020 8:10 pm

Hi,

I tried to fix 'tearing' too. I was find a solution with another compositor. It is 'compton'. I am new in rpi 4 (it is my first rpi) and maybe it is not good solution, but for me it works.

What I've done:
sudo raspi-config
Advanced setting / Compositor / Disabled

sudo apt install compton
to the '/etc/xdg/lxsession/LXDE-pi/autostart'
adding
'@usr/bin/compton --backend glx'
xrandr --output HDMI-1 --mode 1280x720

Low resolution because in 1920x1080 some lags (not 'tearing'). Maybe it can be resolve with overclock.

source:
https://tehnojam.ru/category/software/k ... linux.html

Hope this will help anyone

P.S. Sorry for my English

garth0s
Posts: 2
Joined: Tue Jan 28, 2020 9:33 am

Re: RPI 4 video flickering issue

Tue Jan 28, 2020 9:40 am

Greysvandir wrote:
Thu Jan 02, 2020 8:10 pm
Hi,

I tried to fix 'tearing' too. I was find a solution with another compositor. It is 'compton'. I am new in rpi 4 (it is my first rpi) and maybe it is not good solution, but for me it works.

What I've done:
sudo raspi-config
Advanced setting / Compositor / Disabled

sudo apt install compton
to the '/etc/xdg/lxsession/LXDE-pi/autostart'
adding
'@usr/bin/compton --backend glx'
xrandr --output HDMI-1 --mode 1280x720

Low resolution because in 1920x1080 some lags (not 'tearing'). Maybe it can be resolve with overclock.

source:
https://tehnojam.ru/category/software/k ... linux.html

Hope this will help anyone

P.S. Sorry for my English

Thank you very much for this!!

This has fixed a long standing issue that I'd almost given up on looking for a solution.

Cheers.

messypotamia
Posts: 81
Joined: Tue Jan 27, 2015 12:12 am

Re: RPI 4 video flickering issue

Wed Feb 05, 2020 9:27 pm

My video now flickers and blanks. Rattus asked for a clip of it, so here is mine. I'm using the cable that came with the PI4, mini-hdmi to HDMI, directly into my tv.
I do not remember it doing this when I first set it up; I use it headless, and just happened to switch the tv input over to it PI input hdmi. This isn't really usable for someone who got their PI4 to use with a screen.
---Oh well that's BS, "invalid file extension .mp4". So I guess you won't get to see it. So how do you post a 20-sec video of the problem????

messypotamia
Posts: 81
Joined: Tue Jan 27, 2015 12:12 am

Re: RPI 4 video flickering issue

Wed Feb 05, 2020 9:41 pm

You can see it here http://cafebardeli.net/temp/PI4_HDMI_FLICKER.mp4

I'm wondering if the PI4 / Buster still has a lot of things not really ready.

Code: Select all

[email protected]:~ $ sudo uname -a
Linux RPI4 4.19.93-v7l+ #1290 SMP Fri Jan 10 16:45:11 GMT 2020 armv7l GNU/Linux

Code: Select all

 cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Hope this has a fix.
Thx/MP

Giga_Pi
Posts: 115
Joined: Mon May 20, 2019 9:48 am

Re: RPI 4 video flickering issue

Thu Feb 06, 2020 12:20 pm

Manjaro seems fine...
As soon as the DM smiles, you know it's too late...

NimbUx
Posts: 135
Joined: Fri Jan 03, 2020 10:33 am

Re: RPI 4 video flickering issue

Sun Apr 05, 2020 1:23 pm

Not much more than a "me too!" here, as I can confirm installing "Compton" in replacement for the
standard "compositor" has fixed any previous video tearing problems fully (using Raspbian Buster). Any good reasons why that is not the default ?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5468
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: RPI 4 video flickering issue

Sun Apr 05, 2020 1:59 pm

NimbUx wrote:
Sun Apr 05, 2020 1:23 pm
Not much more than a "me too!" here, as I can confirm installing "Compton" in replacement for the
standard "compositor" has fixed any previous video tearing problems fully (using Raspbian Buster). Any good reasons why that is not the default ?
We did trial compton for a while before Pi4 launch, but IIRC it suffered from growing lag issues.
e.g. in 4k mode grab a window and drag it around rapidly and see it lag.

Ryarg
Posts: 12
Joined: Sat May 13, 2017 7:02 pm

Re: RPI 4 video flickering issue

Thu Apr 09, 2020 6:55 pm

Compton works for me also, I would much rather watch an entertaining tear free video than rapidly drag a window around the screen. Kodi has been mentioned in regard to no tearing, I would also like to mention WebOS for the Raspberry Pi, as another option for tear free video - https://www.webosose.org.

Is it possible to use whatever video tearing solutions Kodi or WebOS use in Raspbian?

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5468
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: RPI 4 video flickering issue

Mon Apr 13, 2020 11:02 am

Ryarg wrote:
Thu Apr 09, 2020 6:55 pm
Is it possible to use whatever video tearing solutions Kodi or WebOS use in Raspbian?
Kodi or VLC in full screen mode won't tear when running on raspbian. The issues are generally for apps running windowed in X.

Return to “Troubleshooting”