WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: VLC  (Read 10730 times)

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #30 on: May 13, 2020, 04:47:24 AM »
I tried that code.
aplay -l now returns this:
Code: [Select]
tc@box:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3228 Analog [ALC3228 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

so card is still 1

    [EDIT]: Added code tags.  Rich
« Last Edit: May 13, 2020, 08:18:06 AM by Rich »

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #31 on: May 13, 2020, 04:54:02 AM »
BUT the alsamixer icon in the dock can now be clicked and doesn't return an error and the mixer appears on screen.
Master is unmuted.

Code: [Select]
tc@box:~$ speaker-test [-Ddefault:1] -c2 -t wav -l1

speaker-test 1.1.5

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 2.733208
tc@box:~$


    [EDIT]: Added code tags.  Rich
« Last Edit: May 13, 2020, 08:18:48 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: VLC
« Reply #32 on: May 13, 2020, 04:59:13 AM »
For the speaker test you need to either use:
Code: [Select]
$ speaker-test -c2 -t wav -l1
..or:
Code: [Select]
$ speaker-test -Ddefault:1 -c2 -t wav -l1

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #33 on: May 13, 2020, 05:13:01 AM »
Thanks Juanito
My mistake.

Code: [Select]
tc@box:~$ speaker-test -c2 -t wav -l1

speaker-test 1.1.5

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
Time per period = 2.732878
tc@box:~$



Looks to work, but no sound heard.
It seems that the command to swap index has muted my sound card. The speaker light on the laptop is on at startup but as soon a tiny core boots it gets turned off.

    [EDIT]: Added code tags.  Rich
« Last Edit: May 13, 2020, 08:19:33 AM by Rich »

aus9

  • Guest
Re: VLC
« Reply #34 on: May 13, 2020, 06:03:05 AM »
@pedantik

I have an equal failure to swap index using that exact file.

now delete it....it was just a test.....
Code: [Select]
rm -rf ~/.asoundrcFull reboot then

For the faulty sound device ... are you using pulseaudio? In which case run
Code: [Select]
tce-load -i pavucontrol adwaita-icon-theme
pavucontrol
Go to the end tab for pulseaudio control panel
Look and you will see 2x HD Audio Generics.
Pull down the top one....choices will include hdmi
--> change that to Off please

pull down the bottom one choices will vary but probably include
analog stereo output....if you are using speakers....this is what you need.

there is a slight chance those are reversed....but if card 1 is analog me thinks not.

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #35 on: May 13, 2020, 06:22:24 AM »
I did
rm -rf ~/.asoundrc
and rebooted. My sound is still dead though. Light on laptop is reporting off as soon as tiny core boots.
I can't get alsamixer gui working at all; not with -c0 or -c1
I haven't got pulseaudio on this install, no, but I can get.

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #36 on: May 13, 2020, 06:34:52 AM »
This what I got...I'd installed pulseaudio and pavucontrol

Code: [Select]
tc@box:~$ tce-load -i pavucontrol adwaita-icon-theme where
pavucontrol is already installed!
adwaita-icon-theme.tcz not found!
tc@box:~$


sorry, where is the pulseaudio control panel?

    [EDIT]: Added code tags.  Rich
« Last Edit: May 13, 2020, 08:20:18 AM by Rich »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: VLC
« Reply #37 on: May 13, 2020, 06:36:46 AM »
click on the pavucontrol icon or run the command "pavucontrol &".

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #38 on: May 13, 2020, 06:39:55 AM »
I think I'm getting deeper into trouble.

Code: [Select]
tc@box:~$ pavucontrol &
tc@box:~$ W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.


Also clicking on the Pavucontrol icon returns and error box that I cannot cut and paste.  Is it OK to post an image of it?

    [EDIT]: Added code tags.  Rich
« Last Edit: May 13, 2020, 08:21:16 AM by Rich »

Offline pedantik

  • Newbie
  • *
  • Posts: 24
Re: VLC
« Reply #39 on: May 13, 2020, 06:42:24 AM »
 is a screenshot of my pavucontrol error

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: VLC
« Reply #40 on: May 13, 2020, 06:52:33 AM »
Code: [Select]
$ pavucontrol &
tc@box:~$ W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.
W: [pulseaudio] caps.c: Normally all extra capabilities would be dropped now, but that's impossible because this Pulseaudio was built without libcap support.

You can ignore those messages.

Edit: if you have the latest version of pulseaudio you should not get those warnings
« Last Edit: May 13, 2020, 07:10:20 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: VLC
« Reply #41 on: May 13, 2020, 06:54:28 AM »
is a screenshot of my pavucontrol error

Either reboot or:
Code: [Select]
$ killall pavucontrol
$ killall pulseaudio

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11704
Re: VLC
« Reply #42 on: May 13, 2020, 08:23:57 AM »
Hi pedantik
Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:

Quote
[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]

It will appear like this in your post:
Code: [Select]
[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly.
« Last Edit: August 01, 2020, 01:24:22 PM by Rich »

aus9

  • Guest
Re: VLC
« Reply #43 on: May 13, 2020, 07:23:01 PM »
Quote
adwaita-icon-theme.tcz not found!

Then download it. It is needed otherwise the icons in pavucontrol are empty boxs.

Quote
where is the pulseaudio control panel?

It will either be the icon in wbar if you are using wbar, or depending on your desktop, appear in your menu.

You need to set up pulseaudio as per its info file before attempting to use its control panel called pavucontrol.

You are not forced to use pulseaudio with vlc. You can use alsa or pulseaudio. vlc will normally detect either and attempt to use pulseaudio (I believe) if it can.

If you are using alsa with vlc.....and prefer not to use pulseaudio...you must have speaker-test working correctly.
If you are using vlc with pulseaudio.....as Juanito has said in the past,  pulseaudio takes over the controls of alsa,
so you can not "pass" the speaker-test

The choice is yours. And it is acceptable that you set up one PC with alsa only and the other with pulseaudio.
Altho it the future it might have been better to start a new thread for each device.
« Last Edit: May 13, 2020, 07:25:56 PM by aus9 »

aus9

  • Guest
Re: VLC
« Reply #44 on: May 13, 2020, 07:38:17 PM »
Pretending you have read the info for pulseaudio, I will show

Code: [Select]
pulseaudio -vvv  # slight variation from info file
SNIP out useless info
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed

E stands for error .....but I show you this.....because its an ignorable error because pulseaudio has ALREADY been set up correctly. So it attempts to start the daemon.....but its already started
So it attempts to create a pid file.......but its already created.

Not all errors are bad. I want to show these.....are ignorable.

the sequence in pulseaudio info file is important and can not be skipped (I show the both 32/64 bits)
http://repo.tinycorelinux.net/10.x/x86_64/tcz/pulseaudio.tcz.info
http://repo.tinycorelinux.net/10.x/x86/tcz/pulseaudio.tcz.info

In part one, no pulseaudio is running.....you set up alsa
in part one, you set up dbus daemon
It assumes you have pulseaudio in your boot list

in part 2 you start pulseaudio and can not skip ahead to create the autostart file called ~/.X.d/pulseaudio
unless pulseaudio is running correctly.