WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Problems with VLC  (Read 6687 times)

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Problems with VLC
« on: June 13, 2014, 09:01:21 AM »
Good morning everyone!  I have been working with TC over the past several weeks and have put together a basic system including the ability to watch movies using VLC.  Everything seems to be going good (haven't tried 3D yet), but I have run into a problem when adjusting the volume level.  If the level is *anything* but 100%, the volume sounds like it's turned to 200%, cracking, and distorted.  I should be using alsa (at least that's what's in the onboot.lst file).

Also, and I don't think this has to do with VLC, but the screen saver doesn't get disabled.  Every 10 or 15 minutes the screen blacks out.  Wiggling the mouse or pressing a key on the keyboard will resume the audio/video.  Any help would greatly be appreciated.

Thanks,
Dave

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Problems with VLC
« Reply #1 on: June 13, 2014, 10:38:51 AM »
Not sure about your volume issue, but I had to explicitly set audio module to ALSA to get sound working in the first place ("Automatic" did not output anything).
[Tools] -> [Preferences] -> Audio -> Output -> Output module: -> "ALSA audio output"


About screen blanking, I'd like to know how to make this automatically, too.
xdg-utils provides scripts for that but doesn't seem to work on it's own or it isn't used by VLC.
Maybe a screensaver deamon needs to be installed?

Currently, I just turn it off when watching a movie.

Off:
Code: [Select]
xset s off -dpms

On:
Code: [Select]
xset s 600 600 +dpms
Download a copy and keep it handy: Core book ;)

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #2 on: June 13, 2014, 11:01:05 AM »
Thanks for the info Misalf.  If I recall correctly I did set that parameter to ALSA, but I will check tonight to be sure.  Something else that I noticed too was that when I use another distro like Linux Mint, the VLC in that OS will allow the volume to be increased to 200% whereas the volume in TC will only allow it to go to 150%.  Not that it matters because any setting other than 100% causes the problem.  Just not sure if something may be misconfigured somewhere.

Thanks for the tips on turning off the screensaver.  I'll work with your code right now, but please keep me posted if you get this figured out!

Thanks,
Dave

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Problems with VLC
« Reply #3 on: June 13, 2014, 11:40:02 AM »
Strangely, changing volume via GUI behaves differently than using mousewheel in full screen where I can always go up to 200%.

[Tools] -> [Preferences] -> Show settings -> "All" (bottom left)
Interface -> Main interfaces -> Qt -> Maximum Volume displayed -> ...
Download a copy and keep it handy: Core book ;)

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #4 on: June 13, 2014, 04:26:40 PM »
Hmmm that's interesting, I'll take a look at it over the weekend and report back.  Thanks again for your help!

Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #5 on: June 16, 2014, 09:01:49 AM »
I did take a look at the sound setting and I was correct that I did try to set the option value to 'ALSA'.  Still a no go...  So I looked in the repo and it looks like mplayer made it in there again.  I installed it and tried to play a movie, but the sound was failing there too with an error about a missing /dev/dsp file.  It looks like the sound card isn't being detected correctly or perhaps a bug in the driver...

Dave

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Problems with VLC
« Reply #6 on: June 16, 2014, 09:48:09 AM »
Just to add my experiences to this thread because I have a very similar issue with vlc and the volume being so incredibly high that the result has deafening and distorted, with no satisfactory control.   Had to rush to the receiver to crank down the volume before the whole neighborhood awoke.

For my volume issue I think vlc needs compiling with support for S/PDIF passthrough, no setting in vlc allowed an adjustment of the volume.
While totem player available in repo for both x86 & x86_64 does not exhibit this issue.   


First issue I had.
enabling playback to "ON" on reboot; I found that persistent Alsa settings in a backup did not enable this mixer setting on reboot.  Instead i used the following in home/tc/.xsession

amixer -c 0 cset name='IEC958 Playback Switch' on


For now I use totem player

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #7 on: June 16, 2014, 10:47:49 AM »
Hmm that's interesting coreplayer2.  I also noticed that my audio hardware settings for VLC weren't being saved between reboots.  I will try installing totem tonight and see if the volume issue persist.  I would ultimately like to use mplayer, but it would be nice to have some type of video player in the mean time. :)

Thanks,
Dave

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Problems with VLC
« Reply #8 on: June 16, 2014, 11:18:06 AM »
If you want hardware setting saved, you need to do a backup.  The relevant files need to be included in /opt/.filetool.lst.  /home is included by default.
For alsa settings, see the alsa info file.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Problems with VLC
« Reply #9 on: June 16, 2014, 12:05:33 PM »
Indeed, following the info file to set and include settings in backup will restore most settings like specific hardware, volume etc etc. 
however I found that IEC958 Playback Switch remains off no matter what, this required manually enabling each reboot but was resolved with the above command.






Sent from my iPhone using Tapatalk

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #10 on: June 16, 2014, 01:58:34 PM »
If you want hardware setting saved, you need to do a backup.  The relevant files need to be included in /opt/.filetool.lst.  /home is included by default.
For alsa settings, see the alsa info file.

Thanks for the info gerald_clark.  Currently I have a permanent home directory that is mounted during the boot process.  Shouldn't VLC store configuration settings there (and in turn not have to backup/restore)?

Thanks,
Dave

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Problems with VLC
« Reply #11 on: June 16, 2014, 02:03:59 PM »
Settings for ALSA are stroed elsewhere, though.

You need to read  alsa.tcz.info . Viewable via Apps tool.
Download a copy and keep it handy: Core book ;)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Problems with VLC
« Reply #12 on: June 16, 2014, 02:30:24 PM »
If you are using the home= boot code you MUST remove home from /opt/.filetool.lst.
Then you need to do a backup so that the /home in the backup does not overwrite files in /home.

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #13 on: June 18, 2014, 08:09:10 AM »
Settings for ALSA are stroed elsewhere, though.

You need to read  alsa.tcz.info . Viewable via Apps tool.

Sound good, I'll take at it!

Thanks,
Dave

Offline wysiwyg

  • Sr. Member
  • ****
  • Posts: 266
Re: Problems with VLC
« Reply #14 on: June 18, 2014, 08:12:14 AM »
If you are using the home= boot code you MUST remove home from /opt/.filetool.lst.
Then you need to do a backup so that the /home in the backup does not overwrite files in /home.

I am using the persistent home boot code, so I'll perform these steps as well.  Thanks for the tip gerald_clark!

As a side note I was interested in knowing if there was a way to install the packages to a partition instead of using squashfs loopbacks.  Is there an advantage to the current way of using packages over a more traditional installation method?

Dave