[opensuse-factory] Sound delayed when playing via HDMI
When I play a video i.e. in Firefox or VLC or when I use Musescore, the sound is not in sync with the picture. It is delayed about 1 second. When I go back to VGA and the analog sound device, sound is in sync. I searched for it on Google, but did not find a solution. Any hints? -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Hi Freek! On 12/23/2017 11:19 AM, Freek de Kruijf wrote:
When I play a video i.e. in Firefox or VLC or when I use Musescore, the sound is not in sync with the picture. It is delayed about 1 second.
This is normal. When using digital video connections like DVI or HDMI, you always end up with video and audio getting out of sync due to the difference in time it takes to process the audio and video data. However, normally the software will take care of the problem but it requires both video and audio to be passed digitally to the display device, e.g. HDMI video including audio. If you just pass the video signal digitally but the audio signal stays analogue, then there is no way for the software to make sure the signals are in sync.
When I go back to VGA and the analog sound device, sound is in sync.
How is your audio signal connected to your speakers? Do you just use an analogue cable to your stereo, do you use headphones or do you use HDMI audio? Without knowing the details of your setup, it's not possible to determine the cause of the problem. If your connection is all digital, then you might have run into a bug.
I searched for it on Google, but did not find a solution.
For VLC, you can always use the keys "j" and "k" to adjust the audio delay until both video and audio are in sync again. Adrian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op zaterdag 23 december 2017 17:43:08 CET schreef John Paul Adrian Glaubitz:
Hi Freek!
On 12/23/2017 11:19 AM, Freek de Kruijf wrote:
When I play a video i.e. in Firefox or VLC or when I use Musescore, the sound is not in sync with the picture. It is delayed about 1 second.
This is normal. When using digital video connections like DVI or HDMI, you always end up with video and audio getting out of sync due to the difference in time it takes to process the audio and video data.
However, normally the software will take care of the problem but it requires both video and audio to be passed digitally to the display device, e.g. HDMI video including audio. If you just pass the video signal digitally but the audio signal stays analogue, then there is no way for the software to make sure the signals are in sync.
When I go back to VGA and the analog sound device, sound is in sync.
How is your audio signal connected to your speakers? Do you just use an analogue cable to your stereo, do you use headphones or do you use HDMI audio?
Without knowing the details of your setup, it's not possible to determine the cause of the problem. If your connection is all digital, then you might have run into a bug.
The sound using HDMI comes via the HDMI connection; it is the only connection between my system and the display with the speakers.
I searched for it on Google, but did not find a solution.
For VLC, you can always use the keys "j" and "k" to adjust the audio delay until both video and audio are in sync again.
That might be a solution for VLC, but I get my video via Firefox, which displays it in a Firefox window. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/23/2017 06:02 PM, Freek de Kruijf wrote:
Without knowing the details of your setup, it's not possible to determine the cause of the problem. If your connection is all digital, then you might have run into a bug.
The sound using HDMI comes via the HDMI connection; it is the only connection between my system and the display with the speakers.
Then you should check the settings of your TV which should have a menu to adjust the sound delay for an HDMI connection. I think it's also possible to adjust the delay using Pulse-Audio, but I'm not sure about that. Adrian -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Saturday, 2017-12-23 at 17:43 +0100, John Paul Adrian Glaubitz wrote:
Hi Freek!
On 12/23/2017 11:19 AM, Freek de Kruijf wrote:
When I play a video i.e. in Firefox or VLC or when I use Musescore, the sound is not in sync with the picture. It is delayed about 1 second.
This is normal. When using digital video connections like DVI or HDMI, you always end up with video and audio getting out of sync due to the difference in time it takes to process the audio and video data.
Don't the signals have "timestamps" that can be used to sync the processing exactly? - -- Cheers, Carlos E. R. (from openSUSE 42.2 x86_64 "Malachite" at Telcontar) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlo+2FMACgkQtTMYHG2NR9UqTQCfbarRsbrIOX5SwyLGstzSo65m pP8An38/0/JH8AISw++GayKH0h20kCq/ =tXcB -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 12/23/2017 11:27 PM, Carlos E. R. wrote> Don't the signals have "timestamps" that can be used to sync the processing exactly? HDMI has something like that, yes [1]. Maybe the monitor is too old to support HDMI 1.3? No idea.
[1] https://www.eetimes.com/document.asp?doc_id=1273833 -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 24/12/17 09:41, John Paul Adrian Glaubitz wrote:
On 12/23/2017 11:27 PM, Carlos E. R. wrote> Don't the signals have "timestamps" that can be used to sync the processing exactly?
HDMI has something like that, yes [1].
Maybe the monitor is too old to support HDMI 1.3? No idea.
Which is probably the case. If you look at the description of HDMI in Wikedia you will read that there is a strong probability that there may be an incompatibility between the monitor and the computer: https://en.wikipedia.org/wiki/HDMI in particular the section :Personal Computers.
BC PS You don't mention whether you are using the sound on the mobo or a PCI(e) sound card, nor which video card to be able to use VLC, nor which monitor you have. Providing such info is most useful to have one's problem resolved (often) quicker. -- Always be nice to people on your way up -- you'll see the same people on your way down. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 24/12/17 16:31, Basil Chupin wrote:
On 24/12/17 09:41, John Paul Adrian Glaubitz wrote:
On 12/23/2017 11:27 PM, Carlos E. R. wrote> Don't the signals have "timestamps" that can be used to sync the processing exactly?
HDMI has something like that, yes [1].
Maybe the monitor is too old to support HDMI 1.3? No idea.
Which is probably the case. If you look at the description of HDMI in Wikedia you will read that there is a strong probability that there may be an incompatibility between the monitor and the computer:
https://en.wikipedia.org/wiki/HDMI
in particular the section :Personal Computers.
BC
PS You don't mention whether you are using the sound on the mobo or a PCI(e) sound card, nor which video card to be able to use VLC, nor which monitor you have. Providing such info is most useful to have one's problem resolved (often) quicker.
If the sound is going through HDMI then the Video card that is outputting the HDMI signal will also be treated as the sound card. Given it is just forwarding the digital audio signal via HDMI it shouldn't be doing much processing though. Another thing to check is that your playback sample rate isn't too high and matches one that can be sent over HDMI otherwise your sound card is having to convert the digital signal which it may not be good at. I don't know how to check / set that with pulse audio though. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
Op zondag 24 december 2017 07:48:49 CET schreef Simon Lees:
On 24/12/17 16:31, Basil Chupin wrote:
PS You don't mention whether you are using the sound on the mobo or a PCI(e) sound card, nor which video card to be able to use VLC, nor which monitor you have. Providing such info is most useful to have one's problem resolved (often) quicker.
The sound goes through the graphical card: # hwinfo --gfxcard 14: PCI 500.0: 0300 VGA compatible controller (VGA) [Created at pci.378] Unique ID: Ddhb.zvQlrOmSRQ8 Parent ID: _Znp.ZJmKoWxd6BF SysFS ID: /devices/pci0000:00/0000:00:02.0/0000:05:00.0 SysFS BusID: 0000:05:00.0 Hardware Class: graphics card Model: "ATI RV770 [Radeon HD 4850]" Vendor: pci 0x1002 "ATI Technologies Inc" Device: pci 0x9442 "RV770 [Radeon HD 4850]" SubVendor: pci 0x1787 "Hightech Information System Ltd." SubDevice: pci 0x2266 Driver: "radeon" Driver Modules: "radeon" Memory Range: 0xd0000000-0xdfffffff (ro,non-prefetchable) Memory Range: 0xfe9f0000-0xfe9fffff (rw,non-prefetchable) I/O Ports: 0xe000-0xefff (rw) Memory Range: 0x000c0000-0x000dffff (rw,non-prefetchable,disabled) IRQ: 34 (38330 events) I/O Ports: 0x3c0-0x3df (rw) Module Alias: "pci:v00001002d00009442sv00001787sd00002266bc03sc00i00" Driver Info #0: Driver Status: radeon is active Driver Activation Cmd: "modprobe radeon" Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #19 (PCI bridge) I have two sound devices: # hwinfo --sound 17: PCI 14.2: 0403 Audio device [Created at pci.378] Unique ID: 5Dex.BDUuYMOWyw7 SysFS ID: /devices/pci0000:00/0000:00:14.2 SysFS BusID: 0000:00:14.2 Hardware Class: sound Model: "ATI SBx00 Azalia (Intel HDA)" Vendor: pci 0x1002 "ATI Technologies Inc" Device: pci 0x4383 "SBx00 Azalia (Intel HDA)" SubVendor: pci 0x1002 "ATI Technologies Inc" SubDevice: pci 0x4383 Revision: 0x40 Memory Range: 0xfe6f8000-0xfe6fbfff (rw,non-prefetchable) IRQ: 10 (no events) Module Alias: "pci:v00001002d00004383sv00001002sd00004383bc04sc03i00" Driver Info #0: Driver Status: snd_hda_intel is active Driver Activation Cmd: "modprobe snd_hda_intel" Config Status: cfg=yes, avail=yes, need=no, active=unknown 27: PCI 500.1: 0403 Audio device [Created at pci.378] Unique ID: 5yAR.dhjYDcGDBr3 Parent ID: _Znp.ZJmKoWxd6BF SysFS ID: /devices/pci0000:00/0000:00:02.0/0000:05:00.1 SysFS BusID: 0000:05:00.1 Hardware Class: sound Model: "ATI RV770 HDMI Audio [Radeon HD 4850/4870]" Vendor: pci 0x1002 "ATI Technologies Inc" Device: pci 0xaa30 "RV770 HDMI Audio [Radeon HD 4850/4870]" SubVendor: pci 0x1787 "Hightech Information System Ltd." SubDevice: pci 0xaa30 Driver: "snd_hda_intel" Driver Modules: "snd_hda_intel" Memory Range: 0xfe9ec000-0xfe9effff (rw,non-prefetchable) IRQ: 36 (157 events) Module Alias: "pci:v00001002d0000AA30sv00001787sd0000AA30bc04sc03i00" Driver Info #0: Driver Status: snd_hda_intel is active Driver Activation Cmd: "modprobe snd_hda_intel" Config Status: cfg=yes, avail=yes, need=no, active=unknown Attached to: #19 (PCI bridge) The system is configured to use the HDMI sound device as the default. The thing that raises my attention is that both devices use the same driver, snd_hda_intel.
If the sound is going through HDMI then the Video card that is outputting the HDMI signal will also be treated as the sound card. Given it is just forwarding the digital audio signal via HDMI it shouldn't be doing much processing though.
Another thing to check is that your playback sample rate isn't too high and matches one that can be sent over HDMI otherwise your sound card is having to convert the digital signal which it may not be good at. I don't know how to check / set that with pulse audio though.
I have no possibility to set anything in my monitor concerning sound, which is an ACER. # hwinfo --monitor 29: None 00.0: 10002 LCD Monitor [Created at monitor.125] Unique ID: rdCR.ukgc1_4VzS0 Parent ID: Ddhb.zvQlrOmSRQ8 Hardware Class: monitor Model: "R231" Vendor: ACR Device: eisa 0x0504 "R231" Serial ID: "T6GEE0012400" Resolution: 720x400@70Hz Resolution: 640x480@60Hz Resolution: 640x480@67Hz Resolution: 800x600@56Hz Resolution: 800x600@60Hz Resolution: 1024x768@60Hz Resolution: 1024x768@70Hz Resolution: 1152x864@75Hz Resolution: 1280x1024@60Hz Resolution: 1280x720@60Hz Resolution: 1920x1080@60Hz Size: 509x286 mm Year of Manufacture: 2016 Week of Manufacture: 4 Detailed Timings #0: Resolution: 1920x1080 Horizontal: 1920 2008 2052 2200 (+88 +132 +280) +hsync Vertical: 1080 1084 1089 1125 (+4 +9 +45) +vsync Frequencies: 148.50 MHz, 67.50 kHz, 60.00 Hz Driver Info #0: Max. Resolution: 1920x1080 Vert. Sync Range: 56-75 Hz Hor. Sync Range: 31-75 kHz Bandwidth: 148 MHz Config Status: cfg=no, avail=yes, need=no, active=unknown Attached to: #8 (VGA compatible controller) Besides, there was a suggestion to delay sound, but the problem is that the sound is about one second later than what is on the screen. Mouse movement on the screen is in sync with moving the mouse. The only solution is to have the sound processing faster. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2017-12-26 11:47, Freek de Kruijf wrote:
Besides, there was a suggestion to delay sound, but the problem is that the sound is about one second later than what is on the screen. Mouse movement on the screen is in sync with moving the mouse. The only solution is to have the sound processing faster.
Theoretically, the video player can do that. Or rather, delay the video. Yep, in Xine 'n' delays audio, and 'm' delays video, found it on the help. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Op dinsdag 26 december 2017 12:06:54 CET schreef Carlos E. R.:
On 2017-12-26 11:47, Freek de Kruijf wrote:
Besides, there was a suggestion to delay sound, but the problem is that the sound is about one second later than what is on the screen. Mouse movement on the screen is in sync with moving the mouse. The only solution is to have the sound processing faster.
Theoretically, the video player can do that. Or rather, delay the video. Yep, in Xine 'n' delays audio, and 'm' delays video, found it on the help.
I consider that a workaround and not a solution. A YouTube video in the browser would still have this problem. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2017-12-26 12:23, Freek de Kruijf wrote:
Op dinsdag 26 december 2017 12:06:54 CET schreef Carlos E. R.:
On 2017-12-26 11:47, Freek de Kruijf wrote:
Besides, there was a suggestion to delay sound, but the problem is that the sound is about one second later than what is on the screen. Mouse movement on the screen is in sync with moving the mouse. The only solution is to have the sound processing faster.
Theoretically, the video player can do that. Or rather, delay the video. Yep, in Xine 'n' delays audio, and 'm' delays video, found it on the help.
I consider that a workaround and not a solution. A YouTube video in the browser would still have this problem.
Of course it is a workaround. But the fact that applications have those workaround means that the problem is common. Another workaround: it is possible to view youtube in external apps; sometimes directly, some times indirectly (download the youtube video and play it in a player). -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)
Op dinsdag 26 december 2017 12:39:39 CET schreef Carlos E. R.:
Another workaround: it is possible to view youtube in external apps; sometimes directly, some times indirectly (download the youtube video and play it in a player).
I did send a bug report to alsa-devel@alsa-project.org -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op dinsdag 26 december 2017 15:34:16 CET schreef Freek de Kruijf:
Op dinsdag 26 december 2017 12:39:39 CET schreef Carlos E. R.:
Another workaround: it is possible to view youtube in external apps; sometimes directly, some times indirectly (download the youtube video and play it in a player).
I did send a bug report to alsa-devel@alsa-project.org
Before that I read: /usr/src/linux-4.14.6-1/Documentation/sound/hd-audio/notes.rst which explains a lot about the driver snd_hda_intel, also that it it supports a lot of devices, amoung which my device. I did read the man pages about Pulse audio, and inspected the configuration files in /etc/pulse, but could not find anything about speeding up processing. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il 27/12/2017 11:05, Freek de Kruijf ha scritto:
I did read the man pages about Pulse audio, and inspected the configuration files in /etc/pulse, but could not find anything about speeding up processing.
Try without it ! Disable pa in yast then relogin. Daniele. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op woensdag 27 december 2017 11:12:19 CET schreef Daniele:
Il 27/12/2017 11:05, Freek de Kruijf ha scritto:
I did read the man pages about Pulse audio, and inspected the configuration files in /etc/pulse, but could not find anything about speeding up processing. Try without it ! Disable pa in yast then relogin.
Daniele.
Tried that, but it disables all sound, even after a reboot. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il 27/12/2017 11:30, Freek de Kruijf ha scritto:
Op woensdag 27 december 2017 11:12:19 CET schreef Daniele:
Il 27/12/2017 11:05, Freek de Kruijf ha scritto:
I did read the man pages about Pulse audio, and inspected the configuration files in /etc/pulse, but could not find anything about speeding up processing. Try without it ! Disable pa in yast then relogin.
Daniele.
Tried that, but it disables all sound, even after a reboot.
It should not. Maybe you need to change audio device inside your desktop configuration tool (system settings ?). Daniele. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op woensdag 27 december 2017 12:27:51 CET schreef Daniele:
Il 27/12/2017 11:30, Freek de Kruijf ha scritto:
Op woensdag 27 december 2017 11:12:19 CET schreef Daniele:
Il 27/12/2017 11:05, Freek de Kruijf ha scritto:
I did read the man pages about Pulse audio, and inspected the configuration files in /etc/pulse, but could not find anything about speeding up processing.
Try without it ! Disable pa in yast then relogin.
Daniele.
Tried that, but it disables all sound, even after a reboot.
It should not. Maybe you need to change audio device inside your desktop configuration tool (system settings ?).
Daniele.
Tried a lot also System Settings, even installed and played with jack (could not make it run), but without PA I have no sound at all. In System Settings I only have Default as the only sound device, which does not produce any sound using the Test button. This also means that I do not have the tab with hardware settings. -- fr.gr. member openSUSE Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il 26/12/2017 11:47, Freek de Kruijf ha scritto:
# hwinfo --gfxcard
14: PCI 500.0: 0300 VGA compatible controller (VGA) [Created at pci.378] Unique ID: Ddhb.zvQlrOmSRQ8 Parent ID: _Znp.ZJmKoWxd6BF SysFS ID: /devices/pci0000:00/0000:00:02.0/0000:05:00.0 SysFS BusID: 0000:05:00.0 Hardware Class: graphics card Model: "ATI RV770 [Radeon HD 4850]"
But this is a new problem or.. ?? Anyway, hd4850 is 10 years old and was an entry level at that time, maybe is time to change... Any chance to try different card ? Did you try without pulseaudio ? Daniele. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Daniele composed on 2017-12-26 13:07 (UTC+0100):
Freek de Kruijf composed:
# hwinfo --gfxcard ... Model: "ATI RV770 [Radeon HD 4850]"
But this is a new problem or.. ?? Anyway, hd4850 is 10 years old and was an entry level at that time,
According to https://en.wikipedia.org/wiki/Radeon_HD_4000_series 4850 was high end. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Il 26/12/2017 13:34, Felix Miata ha scritto:
Daniele composed on 2017-12-26 13:07 (UTC+0100):
Freek de Kruijf composed:
# hwinfo --gfxcard ... Model: "ATI RV770 [Radeon HD 4850]"
But this is a new problem or.. ?? Anyway, hd4850 is 10 years old and was an entry level at that time,
According to https://en.wikipedia.org/wiki/Radeon_HD_4000_series 4850 was high end.
Oh right, confused with 4550, sorry. Daniele. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 26/12/17 21:17, Freek de Kruijf wrote:
Op zondag 24 december 2017 07:48:49 CET schreef Simon Lees:
On 24/12/17 16:31, Basil Chupin wrote:
PS You don't mention whether you are using the sound on the mobo or a PCI(e) sound card, nor which video card to be able to use VLC, nor which monitor you have. Providing such info is most useful to have one's problem resolved (often) quicker.
The sound goes through the graphical card:
The system is configured to use the HDMI sound device as the default.
The thing that raises my attention is that both devices use the same driver, snd_hda_intel.
This is likely correct, ither because they used a intel audio chip on the graphics card or because the audio chip they created has the same interfaces as the intel one.
If the sound is going through HDMI then the Video card that is outputting the HDMI signal will also be treated as the sound card. Given it is just forwarding the digital audio signal via HDMI it shouldn't be doing much processing though.
Another thing to check is that your playback sample rate isn't too high and matches one that can be sent over HDMI otherwise your sound card is having to convert the digital signal which it may not be good at. I don't know how to check / set that with pulse audio though.
I have no possibility to set anything in my monitor concerning sound, which is an ACER.
These are settings in Pulse Audio not your monitor, you want to try a much lower bitrate and or sample rate.
Besides, there was a suggestion to delay sound, but the problem is that the sound is about one second later than what is on the screen. Mouse movement on the screen is in sync with moving the mouse. The only solution is to have the sound processing faster.
Modifying your audio settings in Pulse audio is likely to speed up audio processing. similar to how modifying video settings in a game for example can speed up video processing. -- Simon Lees (Simotek) http://simotek.net Emergency Update Team keybase.io/simotek SUSE Linux Adelaide Australia, UTC+10:30 GPG Fingerprint: 5B87 DB9D 88DC F606 E489 CEC5 0922 C246 02F0 014B
participants (8)
-
Basil Chupin
-
Carlos E. R.
-
Carlos E. R.
-
Daniele
-
Felix Miata
-
Freek de Kruijf
-
John Paul Adrian Glaubitz
-
Simon Lees