smplayer-dev / smplayer

Free Media Player for Windows, Linux and Mac OS with YouTube support.
https://smplayer.info
GNU General Public License v2.0
668 stars 94 forks source link

[Linux] SMPlayer does not follow pulseaudio's default output device. #309

Open AlynxZhou opened 2 years ago

AlynxZhou commented 2 years ago

Describe the bug

If I set Audio Output device to pulse in Preferences, it does not follow my pulseaudio's default device set in gnome-control-center, instead it just choose another device.

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'Preferences -> Audio -> Output driver'
  2. Set it to pulse.
  3. Open pavucontrol and gnome-control-center, change Output Device in gnome-control-center, and see the smplayer item in pavucontrol's Playback tab, it never change its output device to system default (or so called fallback device in pavucontrol).

Expected behavior

SMPlayer should use pulseaudio's default (fallback) output device like other program (firefox, vlc, etc).

Screenshots

Screenshot from 2021-12-10 15-04-44

Your Enviroment

Logs

Reproduce the bug in your computer and attach the smplayer log (menu View) here.

[15:12:05:470] global_init
[15:12:05:470] global_init: config file: '/home/alynx/.config/smplayer/smplayer.ini'
[15:12:05:470] Preferences::load
[15:12:05:470] AssStyles::load
[15:12:05:470] Preferences::load: config_version: 5, CURRENT_CONFIG_VERSION: 5
[15:12:05:470] Translator::loadCatalog: can't load "qt_en_US" from "/usr/share/smplayer/translations"
[15:12:05:470] Translator::loadCatalog: can't load "qt_en_US" from "/usr/share/qt/translations"
[15:12:05:470] Translator::loadCatalog: can't load "qtbase_en_US" from "/usr/share/smplayer/translations"
[15:12:05:470] Translator::loadCatalog: can't load "qtbase_en_US" from "/usr/share/qt/translations"
[15:12:05:470] Translator::loadCatalog: successfully loaded "smplayer_en_US" from "/usr/share/smplayer/translations"
[15:12:05:470] This is SMPlayer v. 21.10.0 (revision 10000) running on Linux
[15:12:05:470] Compiled with Qt v. 5.15.2, using 5.15.2
[15:12:05:470]  * application path: "/usr/bin"
[15:12:05:470]  * data path: "/usr/share/smplayer"
[15:12:05:470]  * translation path: "/usr/share/smplayer/translations"
[15:12:05:470]  * doc path: "/usr/share/doc/smplayer"
[15:12:05:471]  * themes path: "/usr/share/smplayer/themes"
[15:12:05:471]  * shortcuts path: "/usr/share/smplayer/shortcuts"
[15:12:05:471]  * config path: "/home/alynx/.config/smplayer"
[15:12:05:471]  * ini path: "/home/alynx/.config/smplayer"
[15:12:05:471]  * file for subtitles' styles: "/home/alynx/.config/smplayer/styles.ass"
[15:12:05:471]  * current path: "/home/alynx"
[15:12:05:471] main: hdpi_config_path: "/home/alynx/.config/smplayer"
[15:12:05:471] SMPlayer::processArgs: arguments: 2
[15:12:05:471] SMPlayer::processArgs: 0 = smplayer
[15:12:05:471] SMPlayer::processArgs: 1 = /data/alynx/Videos/maohefengche.mov
[15:12:05:471] SMPlayer::processArgs: files_to_play: count: 1
[15:12:05:471] SMPlayer::processArgs: files_to_play[0]: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:471] SMPlayer::gui: changed working directory to app path
[15:12:05:471] SMPlayer::gui: current directory: /usr/bin
[15:12:05:471] ScreenHelper::setAutoHideCursor: 0
[15:12:05:471] Images::setTheme: "H2O" is an internal theme
[15:12:05:471] Images::setThemesPath: ""
[15:12:05:474] MediaSettings::reset
[15:12:05:474] Core::changeFileSettingsMethod: hash
[15:12:05:474] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:474] PlayerProcess::createPlayerProcess: creating MPVProcess
[15:12:05:474] MyProcess::MyProcess: bin_path: "/home/alynx/bin"
[15:12:05:474] MyProcess::MyProcess: PATH: "/home/alynx/bin:/home/alynx/.local/bin:/usr/local/bin:/home/alynx/bin:/home/alynx/.local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/android-sdk/emulator:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
[15:12:05:474] MyProcess::MyProcess: paths: ("/home/alynx/bin", "/home/alynx/.local/bin", "/usr/local/bin", "/home/alynx/bin", "/home/alynx/.local/bin", "/usr/local/bin", "/usr/local/bin", "/usr/bin", "/usr/local/sbin", "/opt/android-sdk/emulator", "/opt/cuda/bin", "/opt/cuda/nsight_compute", "/opt/cuda/nsight_systems/bin", "/usr/lib/jvm/default/bin", "/usr/bin/site_perl", "/usr/bin/vendor_perl", "/usr/bin/core_perl")
[15:12:05:474] MPVProcess::initializeOptionVars
[15:12:05:474] MPVProcess::MPVProcess: socket_name: "/tmp/smplayer-mpv-582f"
[15:12:05:474] MediaSettings::reset
[15:12:05:475] VideoLayer::setRepaintBackground: 1
[15:12:05:475] Preferences::monitor_aspect_double
[15:12:05:475]  warning: monitor_aspect couldn't be parsed!
[15:12:05:475]  monitor_aspect set to 0
[15:12:05:475] PowerSaving::PowerSaving: interface is valid
[15:12:05:490] Playlist::setModified: 0
[15:12:05:490] Playlist::updateWindowTitle: "Untitled playlist"
[15:12:05:510] Recents::addItem: 'http://smplayer.info/sample.m3u8'
[15:12:05:510] Playlist::setConfigPath: "/home/alynx/.config/smplayer"
[15:12:05:510] Playlist::setConfigPath: ini file: "/home/alynx/.config/smplayer/playlist.ini"
[15:12:05:510] Playlist::loadSettings
[15:12:05:510] Helper::qtVersion: 6502
[15:12:05:510] Playlist::updateWindowTitle: "Untitled playlist"
[15:12:05:510] Playlist::setModified: 0
[15:12:05:510] Playlist::updateWindowTitle: "Untitled playlist"
[15:12:05:511] BaseGui::BaseGui: default_style: ""
[15:12:05:511] Favorites::load
[15:12:05:511] Favorites::load
[15:12:05:511] TVList::parse_channels_conf
[15:12:05:511] VList::parse_channels_conf: /home/alynx/.mplayer/channels.conf.ter doesn't exist
[15:12:05:511] TVList::parse_channels_conf: can't open /home/alynx/.mplayer/channels.conf
[15:12:05:511] Favorites::load
[15:12:05:511] TVList::parse_channels_conf
[15:12:05:511] VList::parse_channels_conf: /home/alynx/.mplayer/channels.conf.ter doesn't exist
[15:12:05:511] TVList::parse_channels_conf: can't open /home/alynx/.mplayer/channels.conf
[15:12:05:512] BaseGui::initializeMenus
[15:12:05:512] BaseGui::updateBookmarks
[15:12:05:519] BaseGui::initializeMenus
[15:12:05:519] BaseGui::updateBookmarks
[15:12:05:519] BaseGui::updateRecents
[15:12:05:519] BaseGui::updateWidgets
[15:12:05:519] Core::changeUseCustomSubStyle: 1
[15:12:05:519] Core::changeSubVisilibity: 1
[15:12:05:519] Core::displayMessage
[15:12:05:519] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:519] BaseGui::setupNetworkProxy
[15:12:05:519] BaseGui::setupNetworkProxy: no proxy
[15:12:05:519] BaseGui::setStayOnTop: 0
[15:12:05:519] BaseGui::setStayOnTop: nothing to do
[15:12:05:519] BaseGui::updateWidgets
[15:12:05:519] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:519] BaseGui::updateRecents
[15:12:05:519] UpdateChecker::UpdateChecker: enabled: true
[15:12:05:519] UpdateChecker::UpdateChecker: days_to_check: 7
[15:12:05:519] UpdateChecker::UpdateChecker: days since last check: 0
[15:12:05:522] BaseGuiPlus::updateSendToScreen
[15:12:05:522] BaseGuiPlus::updateSendAudioMenu
[15:12:05:522] DeviceInfo::paDevices
[15:12:05:524] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:524] GlobalShortcuts::GlobalShortcuts
[15:12:05:524] GlobalShortcuts::setEnabled: false
[15:12:05:525] Chromecast::loadSettings
[15:12:05:526] BaseGui::initializeMenus
[15:12:05:526] BaseGui::updateBookmarks
[15:12:05:526] BaseGui::updateRecents
[15:12:05:526] BaseGuiPlus::updateWidgets
[15:12:05:526] BaseGui::updateWidgets
[15:12:05:526] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:527] BaseGuiPlus::loadConfig
[15:12:05:527] DefaultGui::createStatusBar
[15:12:05:527] StateWidget::StateWidget: supported formats for QMovie: ("gif", "mng", "webp")
[15:12:05:528] DefaultGui::createActions
[15:12:05:528] DefaultGui::createControlWidget
[15:12:05:528] DefaultGui::createControlWidgetMini
[15:12:05:528] AutohideWidget::installFilter: child name: ""
[15:12:05:528] AutohideWidget::installFilter: child name: "mplayerwindowlogo"
[15:12:05:528] AutohideWidget::installFilter: child name: ""
[15:12:05:528] DefaultGui::adjustFloatingControlSize
[15:12:05:528] DefaultGui::populateMainMenu
[15:12:05:528] BaseGuiPlus::populateMainMenu
[15:12:05:528] BaseGui::populateMainMenu
[15:12:05:528] BaseGuiPlus::initializeSystrayMenu
[15:12:05:532] BaseGui::initializeMenus
[15:12:05:532] BaseGui::updateBookmarks
[15:12:05:532] BaseGui::updateRecents
[15:12:05:533] DefaultGui::updateWidgets
[15:12:05:533] BaseGuiPlus::updateWidgets
[15:12:05:533] BaseGui::updateWidgets
[15:12:05:533] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:533] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:533] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:533] DefaultGui::loadConfig
[15:12:05:543] DesktopInfo::isInsideScreen: center point of window: QPoint(1280,706)
[15:12:05:543] DesktopInfo::isInsideScreen: virtual geometry: QRect(0,0 5120x1440)
[15:12:05:543] ToolbarEditor::load: 'toolbar1'
[15:12:05:543] ToolbarEditor::load: loading action open_file
[15:12:05:543] ToolbarEditor::load: loading action open_url
[15:12:05:543] ToolbarEditor::load: loading action favorites_menu
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action screenshot
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action show_file_properties
[15:12:05:543] ToolbarEditor::load: loading action show_playlist
[15:12:05:543] ToolbarEditor::load: loading action show_tube_browser
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action show_preferences
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action play_prev
[15:12:05:543] ToolbarEditor::load: loading action play_next
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action audiotrack_menu
[15:12:05:543] ToolbarEditor::load: loading action subtitlestrack_menu
[15:12:05:543] ToolbarEditor::load: 'controlwidget'
[15:12:05:543] ToolbarEditor::load: loading action play_or_pause
[15:12:05:543] ToolbarEditor::load: loading action stop
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action rewindbutton_action
[15:12:05:543] ToolbarEditor::load: loading action timeslider_action
[15:12:05:543] TimeSlider::setDragDelay: 100
[15:12:05:543] ToolbarEditor::load: loading action forwardbutton_action
[15:12:05:543] ToolbarEditor::load: loading action separator
[15:12:05:543] ToolbarEditor::load: adding separator
[15:12:05:543] ToolbarEditor::load: loading action fullscreen
[15:12:05:544] ToolbarEditor::load: loading action mute
[15:12:05:544] ToolbarEditor::load: loading action volumeslider_action
[15:12:05:544] ToolbarEditor::load: 'controlwidget_mini'
[15:12:05:544] ToolbarEditor::load: loading action play_or_pause
[15:12:05:544] ToolbarEditor::load: loading action stop
[15:12:05:544] ToolbarEditor::load: loading action separator
[15:12:05:544] ToolbarEditor::load: adding separator
[15:12:05:544] ToolbarEditor::load: loading action rewind1
[15:12:05:544] ToolbarEditor::load: loading action timeslider_action
[15:12:05:544] TimeSlider::setDragDelay: 100
[15:12:05:544] ToolbarEditor::load: loading action forward1
[15:12:05:544] ToolbarEditor::load: loading action separator
[15:12:05:544] ToolbarEditor::load: adding separator
[15:12:05:544] ToolbarEditor::load: loading action mute
[15:12:05:544] ToolbarEditor::load: loading action volumeslider_action
[15:12:05:544] ToolbarEditor::load: 'floating_control'
[15:12:05:544] ToolbarEditor::load: loading action play_or_pause
[15:12:05:544] ToolbarEditor::load: loading action stop
[15:12:05:544] ToolbarEditor::load: loading action separator
[15:12:05:544] ToolbarEditor::load: adding separator
[15:12:05:544] ToolbarEditor::load: loading action rewind1
[15:12:05:544] ToolbarEditor::load: loading action current_timelabel_action
[15:12:05:544] ToolbarEditor::load: loading action timeslider_action
[15:12:05:544] TimeSlider::setDragDelay: 100
[15:12:05:544] ToolbarEditor::load: loading action total_timelabel_action
[15:12:05:544] ToolbarEditor::load: loading action forward1
[15:12:05:544] ToolbarEditor::load: loading action separator
[15:12:05:544] ToolbarEditor::load: adding separator
[15:12:05:544] ToolbarEditor::load: loading action fullscreen
[15:12:05:544] ToolbarEditor::load: loading action mute
[15:12:05:544] ToolbarEditor::load: loading action volumeslider_action
[15:12:05:544] Helper::qtVersion: 6502
[15:12:05:544] DefaultGui::updateWidgets
[15:12:05:544] BaseGuiPlus::updateWidgets
[15:12:05:544] BaseGui::updateWidgets
[15:12:05:544] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:544] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:544] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:544] BaseGui::applyStyles
[15:12:05:544] BaseGui::applyStyles: stylesheet: "H2O"
[15:12:05:544] BaseGui::changeStyleSheet: "H2O"
[15:12:05:544] BaseGui::loadQss: :/default-theme/style.qss
[15:12:05:544] Images::setTheme: "H2O" is an internal theme
[15:12:05:544] Images::setThemesPath: ""
[15:12:05:544] BaseGui::changeStyleSheet: ":/H2O/style.qss"
[15:12:05:544] BaseGui::loadQss: :/H2O/style.qss
[15:12:05:544] Images::setTheme: "H2O" is an internal theme
[15:12:05:544] Images::setThemesPath: ""
[15:12:05:549] BaseGui::applyStyles: style: "Fusion"
[15:12:05:552] BaseGui::showEvent
[15:12:05:553] BaseGui::setInitialSecond: 0
[15:12:05:553] BaseGui::openFiles
[15:12:05:553] Playlist::setModified: 0
[15:12:05:553] Playlist::updateWindowTitle: "Untitled playlist"
[15:12:05:553] Playlist::addFiles
[15:12:05:553] Playlist::addFiles: latest_dir: "/data/alynx/Videos"
[15:12:05:553] BaseGui::open: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:553] Core::open: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:553] Core::open: * identified as local file
[15:12:05:553] Core::openFile: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:553] Core::playNewFile: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:553] Core::saveMediaInfo
[15:12:05:553] MediaSettings::reset
[15:12:05:553] FileSettingsHash::existSettingsFor: "/data/alynx/Videos/maohefengche.mov"
[15:12:05:554] FileSettingsHash::existSettingsFor: config_file: "/home/alynx/.config/smplayer/file_settings/2/2136eecf0377ccfb.ini"
[15:12:05:554] Core::playNewFile: we have settings for this file
[15:12:05:554] Core::restoreSettingsForMedia: "/data/alynx/Videos/maohefengche.mov" type: 0
[15:12:05:554] FileSettings::loadSettingsFor: "/data/alynx/Videos/maohefengche.mov" type: 0
[15:12:05:554] FileSettingsHash::loadSettingsFor: config_file: "/home/alynx/.config/smplayer/file_settings/2/2136eecf0377ccfb.ini"
[15:12:05:554] MediaSettings::reset
[15:12:05:554] MediaSettings::load
[15:12:05:554] MediaSettings::load: demuxer_section: demuxer_lavf
[15:12:05:554] MediaSettings::load: list of video tracks:
[15:12:05:554] Tracks::list: item 1: ID: 1 lang: '' name: ''
[15:12:05:554] MediaSettings::load: list of audio tracks:
[15:12:05:554] Tracks::list: item 1: ID: 1 lang: '' name: ''
[15:12:05:554] MediaSettings::load: list of subtitle tracks:
[15:12:05:554] Core::restoreSettingsForMedia: media settings read
[15:12:05:554] BaseGui::resizeWindow: 1920, 1080
[15:12:05:554] BaseGui::centerWindow
[15:12:05:554] Core::changeAspectRatio: 1
[15:12:05:554] Core::displayMessage
[15:12:05:554] Core::playNewFile: volume: 40, old_volume: 40
[15:12:05:554] Core::initPlaying
[15:12:05:554] MplayerWindow::setLogoVisible: false
[15:12:05:554] Core::startMplayer: file: "/data/alynx/Videos/maohefengche.mov" seek: 104
[15:12:05:554] RetrieveYoutubeUrl::close
[15:12:05:554] Core::startMplayer: checking if stream is a playlist
[15:12:05:554] Core::startMplayer: url path: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:554] Core::startMplayer: url_is_playlist: 0
[15:12:05:554] InfoReader::setPlayerBin: mplayerbin: "/usr/bin/mpv"
[15:12:05:554] InfoReader::getInfo: sname: "mpv_168e860985d2e6b5"
[15:12:05:555] InfoReader::getInfo: loaded info from "/home/alynx/.config/smplayer/player_info.ini"
[15:12:05:558] Core::startMplayer: edl file: ''
[15:12:05:558] Core::startMplayer: extra_params: ()
[15:12:05:558] ScreenHelper::playingStarted
[15:12:05:558] ScreenHelper::setAutoHideCursor: 1
[15:12:05:558] VideoLayer::playingStarted
[15:12:05:558] Core::disableScreensaver
[15:12:05:558] PowerSaving::inhibit
[15:12:05:559] PowerSaving::inhibit: valid reply
[15:12:05:559] PowerSaving::inhibit: cookie: 1552978930
[15:12:05:559] Core::startMplayer: command: '/usr/bin/mpv --no-config --no-quiet --terminal --no-msg-color --input-ipc-server=/tmp/smplayer-mpv-582f --msg-level=ffmpeg/demuxer=error --video-rotate=no --no-fs --hwdec=no --sub-auto=fuzzy --vo=xv,x11, --ao=pulse, --no-input-default-bindings --input-vo-keyboard=no --no-input-cursor --cursor-autohide=no --no-keepaspect --wid=33554449 --monitorpixelaspect=1 --osd-level=1 --osd-scale=1 --osd-bar-align-y=0.6 --sub-ass --embeddedfonts --sub-ass-line-spacing=0 --sub-scale=1 --sub-font=Arial --sub-color=#ffffffff --sub-shadow-color=#ff000000 --sub-border-color=#ff000000 --sub-border-size=0.75 --sub-shadow-offset=2.5 --sub-font-size=50 --sub-bold=no --sub-italic=no --sub-margin-y=8 --sub-margin-x=20 --sub-codepage=ISO-8859-1 --vid=1 --sub-pos=100 --volume=50 --cache=auto --start=104 --screenshot-template=cap_%F_%p_%02n --screenshot-format=jpg --screenshot-directory=/home/alynx/Pictures/smplayer_screenshots --audio-pitch-correction=yes --volume-max=100 --term-playing-msg=MPV_VERSION=${=mpv-version:}
INFO_VIDEO_WIDTH=${=width}
INFO_VIDEO_HEIGHT=${=height}
INFO_VIDEO_ASPECT=${=video-params/aspect}
INFO_VIDEO_FPS=${=container-fps:${=fps}}
INFO_VIDEO_FORMAT=${=video-format}
INFO_VIDEO_CODEC=${=video-codec}
INFO_DEMUX_ROTATION=${=track-list/0/demux-rotation}
INFO_AUDIO_FORMAT=${=audio-codec-name}
INFO_AUDIO_CODEC=${=audio-codec}
INFO_AUDIO_RATE=${=audio-params/samplerate}
INFO_AUDIO_NCH=${=audio-params/channel-count}
INFO_LENGTH=${=duration:${=length}}
INFO_DEMUXER=${=current-demuxer:${=demuxer}}
INFO_SEEKABLE=${=seekable}
INFO_TITLES=${=disc-titles}
INFO_CHAPTERS=${=chapters}
INFO_TRACKS_COUNT=${=track-list/count}
METADATA_TITLE=${metadata/by-key/title:}
METADATA_ARTIST=${metadata/by-key/artist:}
METADATA_ALBUM=${metadata/by-key/album:}
METADATA_GENRE=${metadata/by-key/genre:}
METADATA_DATE=${metadata/by-key/date:}
METADATA_TRACK=${metadata/by-key/track:}
METADATA_COPYRIGHT=${metadata/by-key/copyright:}
INFO_MEDIA_TITLE=${=media-title:}
INFO_STREAM_PATH=${stream-path}
 --audio-client-name=SMPlayer --term-status-msg=STATUS: ${=time-pos} / ${=duration:${=length:0}} P: ${=pause} B: ${=paused-for-cache} I: ${=core-idle} VB: ${=video-bitrate:0} AB: ${=audio-bitrate:0} /data/alynx/Videos/maohefengche.mov'
[15:12:05:559] MyProcess::start: environment path: "/home/alynx/bin:/home/alynx/.local/bin:/usr/local/bin:/home/alynx/bin:/home/alynx/.local/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/android-sdk/emulator:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
[15:12:05:559] MyProcess::start: current directory: "/usr/bin"
[15:12:05:564] BaseGui::loadActions
[15:12:05:564] ActionsEditor::loadFromConfig
[15:12:05:585] BaseGui::initializeMenus
[15:12:05:585] BaseGui::updateBookmarks
[15:12:05:585] BaseGui::updateRecents
[15:12:05:585] DefaultGui::updateWidgets
[15:12:05:585] BaseGuiPlus::updateWidgets
[15:12:05:585] BaseGui::updateWidgets
[15:12:05:585] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:585] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:585] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:617] MPVProcess::parseLine: " (+) Video --vid=1 (*) (h264 1920x1080 25.000fps)"
[15:12:05:617] MPVProcess::parseLine: " (+) Audio --aid=1 (*) (pcm_s16le 2ch 48000Hz)"
[15:12:05:617] MPVProcess::parseLine: audio id: 1 lang: "" name: ""
[15:12:05:617] MPVProcess::updateAudioTrack: ID: 1
[15:12:05:618] MPVProcess::parseLine: "[vo/xv] Warning: this legacy VO has bad quality and performance, and will in particular result in blurry OSD and subtitles. You should fix your graphics drivers, or not force the xv VO."
[15:12:05:648] MPVProcess::parseLine: "AO: [pulse] 48000Hz stereo 2ch s16"
[15:12:05:648] Core::gotAO: "pulse"
[15:12:05:654] MPVProcess::parseLine: "VO: [xv] 1920x1080 yuv420p"
[15:12:05:654] VideoLayer::gotVO: "xv"
[15:12:05:654] Core::gotVO: "xv"
[15:12:05:654] MPVProcess::sendCommand: "print_text INFO_VIDEO_DSIZE=${=dwidth}x${=dheight}"
[15:12:05:654] MPVProcess::sendCommand: state: QLocalSocket::UnconnectedState
[15:12:05:654] MPVProcess::sendCommand: error: "Unknown error"
[15:12:05:654] MPVProcess::sendCommand: state: QLocalSocket::ConnectedState
[15:12:05:657] MPVProcess::parseLine: "INFO_VIDEO_DSIZE=1920x1080"
[15:12:05:657] Core::gotWindowResolution: 1920, 1080
[15:12:05:657] BaseGui::resizeWindow: 1920, 1080
[15:12:05:657] BaseGui::centerWindow
[15:12:05:658] MPVProcess::parseLine: "MPV_VERSION=mpv 0.34.0"
[15:12:05:658] MPVProcess::parseLine: mpv version: "0.34.0"
[15:12:05:658] MplayerVersion::mplayerVersion: mpv version found: "0.34.0"
[15:12:05:658] MplayerVersion::mplayerVersion: mplayer_svn: 33472
[15:12:05:658] MPVProcess::parseLine: "INFO_VIDEO_WIDTH=1920"
[15:12:05:658] MPVProcess::parseLine: md.video_width set to 1920
[15:12:05:658] MPVProcess::parseLine: "INFO_VIDEO_HEIGHT=1080"
[15:12:05:658] MPVProcess::parseLine: md.video_height set to 1080
[15:12:05:659] MPVProcess::parseLine: "INFO_VIDEO_ASPECT=1.777778"
[15:12:05:659] MPVProcess::parseLine: md.video_aspect set to 1.77778
[15:12:05:659] MPVProcess::parseLine: "INFO_VIDEO_FPS=25.000000"
[15:12:05:659] MPVProcess::parseLine: "INFO_VIDEO_FORMAT=h264"
[15:12:05:659] MPVProcess::parseLine: "INFO_VIDEO_CODEC=h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)"
[15:12:05:659] MPVProcess::parseLine: md.video_codec: "h264"
[15:12:05:659] MPVProcess::parseLine: "INFO_DEMUX_ROTATION="
[15:12:05:659] Core::gotDemuxRotation: 0
[15:12:05:659] MPVProcess::parseLine: "INFO_AUDIO_FORMAT=pcm_s16le"
[15:12:05:659] MPVProcess::parseLine: "INFO_AUDIO_CODEC=pcm_s16le (PCM signed 16-bit little-endian)"
[15:12:05:659] MPVProcess::parseLine: md.audio_codec: "pcm_s16le"
[15:12:05:659] MPVProcess::parseLine: "INFO_AUDIO_RATE=48000"
[15:12:05:659] MPVProcess::parseLine: "INFO_AUDIO_NCH=2"
[15:12:05:659] MPVProcess::parseLine: "INFO_LENGTH=114.720000"
[15:12:05:659] MPVProcess::parseLine: md.duration set to 114.72
[15:12:05:659] MPVProcess::parseLine: "INFO_DEMUXER=lavf"
[15:12:05:659] MPVProcess::parseLine: "INFO_SEEKABLE=yes"
[15:12:05:659] MPVProcess::parseLine: "INFO_TITLES="
[15:12:05:659] MPVProcess::parseLine: "INFO_CHAPTERS=0"
[15:12:05:659] MPVProcess::parseLine: "INFO_TRACKS_COUNT=2"
[15:12:05:659] MPVProcess::sendCommand: "print_text \"INFO_TRACK_0: ${track-list/0/type} ${track-list/0/id} '${track-list/0/lang:}' '${track-list/0/title:}' ${track-list/0/selected}\""
[15:12:05:659] MPVProcess::sendCommand: "print_text \"INFO_TRACK_1: ${track-list/1/type} ${track-list/1/id} '${track-list/1/lang:}' '${track-list/1/title:}' ${track-list/1/selected}\""
[15:12:05:659] MPVProcess::parseLine: "METADATA_TITLE="
[15:12:05:659] MPVProcess::parseLine: "METADATA_ARTIST="
[15:12:05:659] MPVProcess::parseLine: "METADATA_ALBUM="
[15:12:05:659] MPVProcess::parseLine: "METADATA_GENRE="
[15:12:05:659] MPVProcess::parseLine: "METADATA_DATE="
[15:12:05:659] MPVProcess::parseLine: "METADATA_TRACK="
[15:12:05:659] MPVProcess::parseLine: "METADATA_COPYRIGHT="
[15:12:05:659] MPVProcess::parseLine: "INFO_MEDIA_TITLE=maohefengche.mov"
[15:12:05:659] MPVProcess::parseLine: "INFO_STREAM_PATH=/data/alynx/Videos/maohefengche.mov"
[15:12:05:659] MPVProcess::parseLine: starting sec: 104
[15:12:05:659] Core::gotStartingTime: 104.000000
[15:12:05:659] Core::gotStartingTime: current_sec: 104.400000
[15:12:05:659] BaseGui::displayState: "Playing"
[15:12:05:659] DefaultGui::togglePlayAction
[15:12:05:659] BaseGui::togglePlayAction
[15:12:05:660] StateWidget::watchState: 1
[15:12:05:660] Core::changeCurrentSec: mplayer reports that now it's playing
[15:12:05:660] Core::finishRestart: --- start ---
[15:12:05:660] Core::newMediaPlaying: --- start ---
[15:12:05:660] Core::initializeMenus
[15:12:05:660] BaseGui::initializeMenus
[15:12:05:660] BaseGui::updateBookmarks
[15:12:05:660] MediaData::list
[15:12:05:660]   filename: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:660]   duration: 114.720000
[15:12:05:660]   video_width: 1920
[15:12:05:660]   video_height: 1080
[15:12:05:660]   video_aspect: 1.777778
[15:12:05:660]   type: 0
[15:12:05:660]   novideo: 0
[15:12:05:660]   dvd_id: ''
[15:12:05:660]   initialized: 1
[15:12:05:660]   chapters: 0
[15:12:05:660]   Titles:
[15:12:05:660]   demuxer: 'lavf'
[15:12:05:660]   video_format: 'h264'
[15:12:05:660]   audio_format: 'pcm_s16le'
[15:12:05:660]   video_bitrate: 15577425
[15:12:05:660]   video_fps: '25.000000'
[15:12:05:660]   audio_bitrate: 1536000
[15:12:05:660]   audio_rate: 48000
[15:12:05:660]   audio_nch: 2
[15:12:05:660]   video_codec: 'h264'
[15:12:05:660]   audio_codec: 'pcm_s16le'
[15:12:05:660] MediaSettings::list
[15:12:05:660]   current_sec: 104.000000
[15:12:05:660]   current_subtitle_track: -1000
[15:12:05:660]   current_secondary_subtitle_track: -1000
[15:12:05:660]   current_video_id: 1
[15:12:05:660]   current_audio_id: 1
[15:12:05:660]   current_title_id: -1000
[15:12:05:660]   current_angle_id: -1000
[15:12:05:660]   aspect_ratio_id: 1
[15:12:05:660]   volume: 40
[15:12:05:660]   mute: 0
[15:12:05:660]   external_subtitles: ''
[15:12:05:660]   external_subtitles_fps: '0'
[15:12:05:660]   external_audio: ''
[15:12:05:660]   sub_delay: 0
[15:12:05:660]   audio_delay: 0
[15:12:05:660]   sub_pos: 100
[15:12:05:660]   sub_scale: 5.000000
[15:12:05:660]   sub_scale_ass: 1.000000
[15:12:05:660]   closed_caption_channel: 0
[15:12:05:660]   brightness: 0
[15:12:05:660]   contrast: 0
[15:12:05:660]   gamma: 0
[15:12:05:660]   hue: 0
[15:12:05:660]   saturation: 0
[15:12:05:660]   speed: 1.000000
[15:12:05:660]   phase_filter: 0
[15:12:05:660]   deblock_filter: 0
[15:12:05:660]   dering_filter: 0
[15:12:05:660]   gradfun_filter: 0
[15:12:05:660]   noise_filter: 0
[15:12:05:660]   postprocessing_filter: 0
[15:12:05:660]   upscaling_filter: 0
[15:12:05:660]   current_denoiser: 0
[15:12:05:660]   current_unsharp: 0
[15:12:05:660]   stereo3d_in: none
[15:12:05:660]   stereo3d_out: 
[15:12:05:660]   current_deinterlacer: 0
[15:12:05:660]   add_letterbox: 0
[15:12:05:660]   karaoke_filter: 0
[15:12:05:660]   extrastereo_filter: 0
[15:12:05:660]   volnorm_filter: 0
[15:12:05:660]   earwax_filter: 0
[15:12:05:660]   audio_use_channels: 0
[15:12:05:660]   stereo_mode: 0
[15:12:05:660]   zoom_factor: 1.000000
[15:12:05:660]   rotate: -1
[15:12:05:660]   flip: 0
[15:12:05:660]   mirror: 0
[15:12:05:660]   loop: 0
[15:12:05:660]   A_marker: -1
[15:12:05:660]   B_marker: -1
[15:12:05:660]   current_demuxer: 'lavf'
[15:12:05:660]   forced_demuxer: ''
[15:12:05:660]   forced_video_codec: ''
[15:12:05:660]   forced_audio_codec: ''
[15:12:05:660]   original_demuxer: ''
[15:12:05:660]   original_video_codec: ''
[15:12:05:660]   original_audio_codec: ''
[15:12:05:660]   mplayer_additional_options: ''
[15:12:05:660]   mplayer_additional_video_filters: ''
[15:12:05:660]   mplayer_additional_audio_filters: ''
[15:12:05:660]   win_width: 1920
[15:12:05:660]   win_height: 1080
[15:12:05:660]   win_aspect(): 1.777778
[15:12:05:660]   is264andHD: 0
[15:12:05:660]   Videos:
[15:12:05:660] Tracks::list: item 1: ID: 1 lang: '' name: ''
[15:12:05:660]   Audios:
[15:12:05:660] Tracks::list: item 1: ID: 1 lang: '' name: ''
[15:12:05:660]   Subtitles:
[15:12:05:660] Core::newMediaPlaying: --- end ---
[15:12:05:660] Core::changeAspectRatio: 1
[15:12:05:660] Core::displayMessage
[15:12:05:660] AudioEqualizer::setValues
[15:12:05:661] Core::changeZoom: 1.000000
[15:12:05:661] Core::displayMessage
[15:12:05:661] Core::changeSubVisilibity: 1
[15:12:05:661] MPVProcess::sendCommand: "no-osd set sub-visibility yes"
[15:12:05:661] Core::displayMessage
[15:12:05:661] DefaultGui::enableActionsOnPlaying
[15:12:05:661] BaseGui::enableActionsOnPlaying
[15:12:05:661] BaseGui::autosaveMplayerLog
[15:12:05:661] Core::sendMediaInfo
[15:12:05:661] Favorites::getCurrentMedia: '/data/alynx/Videos/maohefengche.mov', 'maohefengche.mov'
[15:12:05:661] Favorites::getCurrentMedia: '/data/alynx/Videos/maohefengche.mov', 'maohefengche.mov'
[15:12:05:661] Favorites::getCurrentMedia: '/data/alynx/Videos/maohefengche.mov', 'maohefengche.mov'
[15:12:05:661] BaseGuiPlus::updateMediaInfo
[15:12:05:661] BaseGui::updateMediaInfo
[15:12:05:661] TimeSliderAction::setDuration: 114.72
[15:12:05:661] Playlist::getMediaInfo
[15:12:05:661] Core::updateWidgets
[15:12:05:661] DefaultGui::updateWidgets
[15:12:05:661] BaseGuiPlus::updateWidgets
[15:12:05:661] BaseGui::updateWidgets
[15:12:05:661] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:661] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:661] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:661] Core::finishRestart: --- end ---
[15:12:05:661] BaseGui::checkStayOnTop
[15:12:05:663] MPVProcess::parseLine: "INFO_TRACK_0: video 1 '' '' yes"
[15:12:05:663] MPVProcess::parseLine: ID: 1 type: "video" name: "" lang: "" selected: "yes"
[15:12:05:663] MPVProcess::updateVideoTrack: ID: 1
[15:12:05:663] MPVProcess::parseLine: "INFO_TRACK_1: audio 1 '' '' yes"
[15:12:05:663] MPVProcess::parseLine: ID: 1 type: "audio" name: "" lang: "" selected: "yes"
[15:12:05:663] MPVProcess::updateAudioTrack: ID: 1
[15:12:05:663] BaseGui::enterFullscreenOnPlay: arg_start_in_fullscreen: -1, pref->start_in_fullscreen: 0
[15:12:05:663] BaseGui::newMediaLoaded
[15:12:05:663] BaseGui::newMediaLoaded: mdat.stream_title: 
[15:12:05:663] Recents::addItem: '/data/alynx/Videos/maohefengche.mov'
[15:12:05:663] BaseGui::updateRecents
[15:12:05:663] BaseGui::checkPendingActionsToRun
[15:12:05:663] BaseGui::checkMplayerVersion
[15:12:05:663] MplayerVersion::isMplayerAtLeast: comparing 25158 with 33472
[15:12:05:663] Core::checkIfVideoIsHD
[15:12:05:703] MPVProcess::parseLine: audio_info_changed
[15:12:05:703] MPVProcess::parseLine: video_info_changed
[15:12:05:703] Core::initAudioTrack: num_items: 1 selected_id: 1
[15:12:05:703] Core::initAudioTrack: list of audios:
[15:12:05:703] Tracks::list: item 1: ID: 1 lang: '' name: ''
[15:12:05:703] Core::initializeMenus
[15:12:05:703] BaseGui::initializeMenus
[15:12:05:703] BaseGui::updateBookmarks
[15:12:05:703] Core::updateWidgets
[15:12:05:703] DefaultGui::updateWidgets
[15:12:05:703] BaseGuiPlus::updateWidgets
[15:12:05:703] BaseGui::updateWidgets
[15:12:05:703] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:703] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:703] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:703] Core::initAudioTrack: preferred audio track: 0 previous_selected_id: 1
[15:12:05:703] DefaultGui::enableActionsOnPlaying
[15:12:05:703] BaseGui::enableActionsOnPlaying
[15:12:05:703] Core::initAudioTrack: current_audio_id: 1
[15:12:05:703] Core::initVideoTrack: selected_id: 1
[15:12:05:703] Core::initializeMenus
[15:12:05:703] BaseGui::initializeMenus
[15:12:05:703] BaseGui::updateBookmarks
[15:12:05:704] Core::updateWidgets
[15:12:05:704] DefaultGui::updateWidgets
[15:12:05:704] BaseGuiPlus::updateWidgets
[15:12:05:704] BaseGui::updateWidgets
[15:12:05:704] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:704] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:704] PlayerID::Player: player_bin: "/usr/bin/mpv" filename: "mpv"
[15:12:05:726] BaseGuiPlus::updateShortcutsContext
[15:12:06:520] BaseGui::checkReminder
[15:12:07:581] Core::play_or_pause
[15:12:07:581] Core::pause: current state: "Playing"
[15:12:07:581] MPVProcess::sendCommand: "set pause yes"
[15:12:07:581] MPVProcess::parseLine: paused
[15:12:07:581] Core::changePause
[15:12:07:581] Core::changePause: mplayer reports that it's paused
[15:12:07:582] BaseGui::displayState: "Paused"
[15:12:07:582] DefaultGui::togglePlayAction
[15:12:07:582] BaseGui::togglePlayAction
[15:12:07:582] StateWidget::watchState: 2
[15:12:07:582] BaseGui::checkStayOnTop
[15:12:14:644] BaseGui::showLog
[15:12:58:932] BaseGui::showLog

Additional context Add any other context about the problem here.

AlynxZhou commented 2 years ago

just run mpv without any audio device option works fine (it can use system default device, and if I change system default device, it will follow).

smplayer-dev commented 2 years ago

This is unlikely a problem in smplayer, since it just passes the option --ao=pulse to mpv, that's it.

AlynxZhou commented 2 years ago

This is unlikely a problem in smplayer, since it just passes the option --ao=pulse to mpv, that's it.

I run plain mpv and it works fine, I think I don't have other configs (I tried to remove ~/.config/smplayer already).

smplayer-dev commented 2 years ago

What happens if you run mpv with the option --ao=pulse?

AlynxZhou commented 2 years ago

What happens if you run mpv with the option --ao=pulse?

Always works fine.