LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64
User Name
Password
slarm64 This forum is for the discussion of slarm64.

Notices


Reply
  Search this Thread
Old 10-07-2022, 04:56 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
A /V Synchronization Problem


I'll start this by saying it could possibly be a dud video, but I tried to watch one of a series last night in VLC. The video froze but the sound carried on.

So I tried mpv. That went better, but I couldn't find my place without upsetting it. If I made the screen small, paused for a while, and then started play, things would synchronize eventually. The video would start silently, then the sound would come in. But I got these errors on STDOUT
Code:
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
and the other one says
Code:
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
I have a RazPi 4B @1.5Ghz, an early model, running slarm64-15.0. VLC is version 3.0.16, and I don't know what the dependencies are so I can't pass version numbers. But they're all 15.0 or later IIRC.

I got video advice previously here, implemented it, and obeyed rule #1
Quote:
If it works, don't fix it!
Any ideas or diagnostic tests welcome. The videos are hdmi, 720 or 1080p h264, other ones work fine but I've had issues with a number of random videos recently.

Last edited by business_kid; 10-07-2022 at 05:01 PM.
 
Old 10-07-2022, 07:05 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Both VLC and mpv have several options for video output, you have tried all of them?
 
Old 10-08-2022, 03:12 AM   #3
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I'll start this by saying it could possibly be a dud video, but I tried to watch one of a series last night in VLC. The video froze but the sound carried on.

So I tried mpv. That went better, but I couldn't find my place without upsetting it. If I made the screen small, paused for a while, and then started play, things would synchronize eventually. The video would start silently, then the sound would come in. But I got these errors on STDOUT
Code:
[vo/x11] Warning: this legacy VO has bad performance. Consider fixing your graphics drivers, or not forcing the x11 VO.
and the other one says
Code:
Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).
I have a RazPi 4B @1.5Ghz, an early model, running slarm64-15.0. VLC is version 3.0.16, and I don't know what the dependencies are so I can't pass version numbers. But they're all 15.0 or later IIRC.

I got video advice previously here, implemented it, and obeyed rule #1


Any ideas or diagnostic tests welcome. The videos are hdmi, 720 or 1080p h264, other ones work fine but I've had issues with a number of random videos recently.
this seems to be due to the specific encoded video with its settings and since everything is decoded by the software this problem occurs and overclocking the cpu can help.
 
Old 10-08-2022, 04:12 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
I could overclock, but I've the earlier 4B brfore they improved the power supply. If I try for 2.0Ghz, what sort of "overvolts=" setting would I need? Can I even use the overvolts adjustment in config.txt? I'm on the early firmware that allows usb boot. I know I'd have to work up gradually. But I can do that fairly painlessly by overclocking while booting on the SSD, and simply having a standard MMC card handy for when I inevitably screw up.

When you say 'it's all done in software', we're talking the swrast driver here, aren't we? That's bad.

Here's an idea: Could I run a video like this through ffmpeg to make something useful of it?

Last edited by business_kid; 10-08-2022 at 04:14 AM.
 
Old 10-08-2022, 04:29 AM   #5
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I could overclock, but I've the earlier 4B brfore they improved the power supply. If I try for 2.0Ghz, what sort of "overvolts=" setting would I need? Can I even use the overvolts adjustment in config.txt? I'm on the early firmware that allows usb boot. I know I'd have to work up gradually. But I can do that fairly painlessly by overclocking while booting on the SSD, and simply having a standard MMC card handy for when I inevitably screw up.

When you say 'it's all done in software', we're talking the swrast driver here, aren't we? That's bad.

Here's an idea: Could I run a video like this through ffmpeg to make something useful of it?
programmatically, this means that SoC decoding blocks are not used.
mpv is already using ffmpeg.

I overclocked to 2147
Code:
# Turbo mode: 0 = enable dynamic freq/voltage - 1 = always max
force_turbo=0
# Start in turbo mode for 30 seconds or until cpufreq sets a frequency
initial_turbo=30

over_voltage=6
arm_freq=2147
 
Old 10-08-2022, 06:21 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
I'll try that overclocking - maybe 2Ghz max. I've the Flirc case, no fan.
 
Old 10-08-2022, 06:38 AM   #7
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,920

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
I'll try that overclocking - maybe 2Ghz max. I've the Flirc case, no fan.
I also have a simple aluminum radiator in size SoC.
 
Old 10-08-2022, 09:18 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by sndwvs View Post
I also have a simple aluminum radiator in size SoC.
If you paint it matt black it keeps the cpu cooler by radiating the heat better. It's physics. Thermal models are compared with a a black body radiator.
 
Old 10-08-2022, 09:56 AM   #9
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,665

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If you paint it matt black it keeps the cpu cooler by radiating the heat better. It's physics. Thermal models are compared with a a black body radiator.
Not really. The difference between white and black radiator efficiency is 1% and it is lost when you put a layer of paint on your radiator because it acts as insulator. Besides, to gain this 1% the radiator must be black in infrared range of lightwaves, this is something human eye cannot see. LOL
 
Old 10-08-2022, 10:10 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Quote:
Originally Posted by sndwvs View Post
programmatically, this means that SoC decoding blocks are not used.
mpv is already using ffmpeg.

I overclocked to 2147
Code:
# Turbo mode: 0 = enable dynamic freq/voltage - 1 = always max
force_turbo=0
# Start in turbo mode for 30 seconds or until cpufreq sets a frequency
initial_turbo=30

over_voltage=6
arm_freq=2147
OK, I'm overclocked with "over_voltage=5" & "arm_freq=2000". No problems, but no improvement. I'm still getting the same errors. It seems mpv freezes one stream (video or sound) until the other catches up, and then synchronizes them. I'm not sure what vlc is doing. I tried cvlc in a terminal and trapped these errors
Code:
[h264 @ 0x7f8cce9370] co located POCs unavailable
[h264 @ 0x7f8cce9370] co located POCs unavailable
[h264 @ 0x7f8cc5c6f0] mmco: unref short failure
[h264 @ 0x7f8ccee410] co located POCs unavailable
[h264 @ 0x7f8cc5c6f0] co located POCs unavailable
[h264 @ 0x7f8cc5c6f0] co located POCs unavailable
[h264 @ 0x7f8cce40a0] mmco: unref short failure
[0000007f8cde6480] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[0000007f8cde6480] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
 
Old 10-08-2022, 02:05 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,455

Original Poster
Rep: Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353Reputation: 2353
Marking this solved. It's the video. I tried it on my 6 core 3.5GHz Ryzen with a serious video card, and it's worse!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bounding the number of synchronization primitives needed to solve a problem GamerX Programming 2 07-10-2008 09:18 PM
Synchronization problem - how could i interpret the stack backtrace? Skrnl_curious Linux - Kernel 1 06-17-2008 04:29 PM
Synchronization problem wait forever when multiple client socket programming Ashok_mittal Programming 1 06-02-2008 06:23 AM
horizontal/vertical synchronization problem with LCD monitors anwerreyaz Linux - Hardware 5 06-13-2006 04:53 AM
email synchronization (not file synchronization) Moebius Linux - Software 6 10-05-2004 05:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > slarm64

All times are GMT -5. The time now is 09:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration