Bug 185076 - multimedia/vlc: volume level doesn't saved & restored
Summary: multimedia/vlc: volume level doesn't saved & restored
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-multimedia (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-21 20:10 UTC by vsjcfm
Modified: 2014-06-26 11:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vsjcfm 2013-12-21 20:10:00 UTC
VLC always sets volume to 0% on startup & to 45% on beginning of playback, regerdless of "Remember volume level" & "Set volume on startup" settings.

How-To-Repeat: 1. Start VLC.
2. Verify that remembering sound volume level is on.
3. Set volume to any non-zero value, e.g. 100%.
4. Close VLC.
5. Open it again - you'll see that volume level is 0%.
6. Start playback of any file/stream.
7. You'll see that volume level is 45%.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-21 20:10:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-multimedia

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 vsjcfm 2013-12-23 13:56:03 UTC
Tested 2.1.1, 2.1.0 - problem persists.
I can't test older versions because ffmpeg is too new.
Comment 3 vsjcfm 2013-12-23 14:44:05 UTC
I'm also experiencing exactly the same problem as desribed here:
https://bugs.archlinux.org/task/37076?project=1&cat[0]=2&string=vlc
It happens only when playing files (directly or over http). 1080p x264
streams are playing perfectly.
Comment 4 Shane 2013-12-24 03:40:35 UTC
I've seen the same volume issue - on 9.2.

Part fix is to add hw.snd.vpc_autoreset=0 to sysctl.conf

This doesn't fix the Set volume on startup in vlc but it does allow the
volume to remain consistent between files and vlc restarts instead of
always jumping to 45%.

This volume change also effects more than vlc
Comment 5 vsjcfm 2013-12-24 10:11:26 UTC
2013/12/24 Shane Ambler <FreeBSD@shaneware.biz>:
> I've seen the same volume issue - on 9.2.
>
> Part fix is to add hw.snd.vpc_autoreset=0 to sysctl.conf
I'll try this later.

> This doesn't fix the Set volume on startup in vlc but it does allow the
> volume to remain consistent between files and vlc restarts instead of
> always jumping to 45%.
This proves that VLC does not (or fails to) call volume restore procedure.
As I remember, it worked on all older versions (<2.1).

> This volume change also effects more than vlc
What did you mean?
Comment 6 Shane 2013-12-24 23:42:59 UTC
On 24/12/2013 20:50, Anton Sayetsky wrote:
>2013/12/24 Shane Ambler <FreeBSD@shaneware.biz>:
>> I've seen the same volume issue - on 9.2.
>>
>> Part fix is to add hw.snd.vpc_autoreset=0 to sysctl.conf
>I'll try this later.

Another sysctl that appears related is hw.snd.vpc_0db this is described
as "0db relative level". The default of 45 is what vlc sets the volume
to, changing this also changes the volume that vlc resets to. While the
vlc volume setting changes, the audio output level doesn't change. That
is with vpc_0db=7 and vlc volume=7 or vpc_0db=45 and vlc volume=45 the
sound level at the speakers is the same.

So while vlc appears to be getting it's volume setting from there,
changing it doesn't give the desired result.

>> This doesn't fix the Set volume on startup in vlc but it does allow the
>> volume to remain consistent between files and vlc restarts instead of
>> always jumping to 45%.
>This proves that VLC does not (or fails to) call volume restore procedure.
>As I remember, it worked on all older versions (<2.1).

The vlc volume restore definitely worked before the recent update a few
months ago.

Of note here, the sound restore does work if jack audio output is used
but vlc jack output also doesn't close properly, that is pressing stop
or closing the vlc window leaves a continuous tone playing, you need to
pause playback before stopping or closing to prevent this.

>> This volume change also effects more than vlc
>What did you mean?

vlc isn't the only program it effects, the sysctl tip was from a musicpd
user (using 10-BETA) with the same volume changing behaviour on the
multimedia mailing list.

Also given that the sysctl is a system level sound option the command to
reset the sound level must be coming from the underlying sound system
not the user application. There is a possibility that this command has
existed for a long time but was ignored until recently.
Comment 7 vsjcfm 2014-01-29 10:32:19 UTC
Reminder: no any reaction in more than a month.
Comment 8 spry 2014-03-24 14:16:55 UTC
I'm seeing this problem on recent ports on 8.3p14 and

hw.snd.vpc_autoreset=0

temporarily fixes it.

Thanks for the tip.


-- 
I don't think they are going to give a shit about the Republican
Committee trying to bug the Democratic Committee's headquarters.
		-- Richard M. Nixon, 1972