[winswitch] [Xpra] Sound problem
John Smith
johnss1221 at gmail.com
Tue Dec 1 08:35:50 GMT 2015
On Mon, Nov 30, 2015 at 10:38 PM, Antoine Martin <antoine at nagafix.co.uk>
wrote:
> On 30/11/15 08:48, John Smith wrote:
> > Hi all,
> >
> > I'm running Xpra with version 0.15.8( server, trusty amd64) and 0.16.0
> > r11304 (client, MS Windows 7 64bit).
> > Recently, I have had problem with the sound. Sometimes, the sound is
> > broken/interrupted, it will reappear after reattaching several times.
> > I checked on the server (using top -c ), and noticed that when the sound
> > from client was interrupted, the sound xpra process(/usr/bin/python
> > /usr/bin/xpra _sound_record - - pulsesrc mp3 1.0 -d) was inactive, it was
> > just switched on only when it was attached.
> Please define "inactive" and "switched on".
>
"inactive" means the xpra-sound process (PID 49163) is not used. The value
of "TIME+" column from top command is not increased anymore (0:00.12).
"switched on" means I can listen the sound from client ( was interrupted
before ) after reattaching xpra. (1)
After (1), at the server, one new xpra-sound process was appeared:
main-xpra(pid 1145), old-sound-xpra(49163), new-sound-xpra(53243).
I can't also kill old-sound-xpra process by "kill 49163", but can kill by
"kill -9 49163"
# top -c -b -n1 |grep xpra
PID
TIME+ COMMAND
53243 abcuser 20 0 1077364 36868 13720 S 6.5 0.2 0:01.14
/usr/bin/python /usr/bin/xpra _sound_record - - pulsesrc mp3 1.0 -d
1145 abcuser 20 0 1602088 69920 20756 S 0.0 0.4 19:38.25
/usr/bin/python /usr/bin/xpra start :100 --bind-tcp=0.0.0.0:12000
--start-child=firefox
49163 abcuser 20 0 1005984 36884 13796 S 0.0 0.2 0:00.12
/usr/bin/python /usr/bin/xpra _sound_record - - pulsesrc mp3 1.0 -d
> Note: quite a few sound related bugs are fixed in the 0.16.0 server.
>
I tried running xpra 0.16.0 r11304 for server(trusty), same as client (MS
Windows 7). But the sound is disabled if I'm running xpra with it.
I attached the output of xpra attach with '-d sound'
>
> > How to switch on the sound from client without attaching?
> You should be able to use the systray to toggle the sound on and off.
>
I found this ticket <https://www.xpra.org/trac/ticket/1003>, and used "xpra
control :100 sound-output stop && xpra control :100 sound-output start mp3"
to restarting the sound.
> Cheers
> Antoine
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
>
-------------- next part --------------
2015-12-01 14:39:51,759 Xpra gtk2 client version 0.16.0-r11304
2015-12-01 14:39:51,759 running on Microsoft Windows 7
2015-12-01 14:39:51,760 query_sound() command=['xpra_cmd.exe', '_sound_query', '-d', ',sound'], env={'TMP': 'C:\\Users\\John\\AppData\\Local\\Temp', 'COMPUTERNAME': 'JOHN-PC', 'GI_TYPELIB_PATH': 'D:\\Xpra-0.16.0-r11304\\bin\\lib\\girepository-1.0', 'USERDOMAIN': 'JOHN-PC', 'VS100COMNTOOLS': 'C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\Tools\\', 'PSMODULEPATH': 'C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules\\;C:\\Program Files (x86)\\AutoIt3\\AutoItX', 'COMMONPROGRAMFILES': 'C:\\Program Files (x86)\\Common Files', 'PROCESSOR_IDENTIFIER': 'Intel64 Family 6 Model 60 Stepping 3, GenuineIntel', 'VBOX_MSI_INSTALL_PATH': 'C:\\Program Files\\Oracle\\VirtualBox\\', 'PROGRAMFILES': 'C:\\Program Files (x86)', 'PROCESSOR_REVISION': '3c03', 'PATH': 'D:\\Xpra-0.16.0-r11304;C:\\Program Files (x86)\\Intel\\iCLS Client\\;C:\\Program Files\\Intel\\iCLS Client\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\DAL;C:\\Program Files (x86)\\Intel\\Intel(R) Management Engine Components\\IPT;C:\\Program Files (x86)\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\100\\DTS\\Binn\\;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\Skype\\Phone\\;D:\\openssl\\bin;C:\\Program Files\\Java\\jdk1.7.0_79\\bin', 'SYSTEMROOT': 'C:\\Windows', 'XPRA_FORCE_COLOR_LOG': '1', 'PROGRAMFILES(X86)': 'C:\\Program Files (x86)', 'COMSPEC': 'C:\\Windows\\system32\\cmd.exe', 'TEMP': 'C:\\Users\\John\\AppData\\Local\\Temp', 'COMMONPROGRAMFILES(X86)': 'C:\\Program Files (x86)\\Common Files', 'PROCESSOR_ARCHITECTURE': 'x86', 'ALLUSERSPROFILE': 'C:\\ProgramData', 'LOCALAPPDATA': 'C:\\Users\\John\\AppData\\Local', 'HOMEPATH': '\\Users\\John', 'JAVA_HOME': 'C:\\Program Files\\Java\\jdk1.7.0_79', 'PROGRAMW6432': 'C:\\Program Files', 'USERNAME': 'John', 'LOGONSERVER': '\\\\JOHN-PC', 'PROMPT': '$P$G', 'WINDOWS_TRACING_FLAGS': '3', 'PROGRAMDATA': 'C:\\ProgramData', 'SESSIONNAME': 'Console', 'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC', 'FP_NO_HOST_CHECK': 'NO', 'WINDIR': 'C:\\Windows', 'WINDOWS_TRACING_LOGFILE': 'C:\\BVTBin\\Tests\\installpackage\\csilogfile.log', 'HOMEDRIVE': 'C:', 'XPRA_SKIP_UI': '1', 'SYSTEMDRIVE': 'C:', 'NUMBER_OF_PROCESSORS': '4', 'APPDATA': 'C:\\Users\\John\\AppData\\Roaming', 'PROCESSOR_LEVEL': '6', 'PROCESSOR_ARCHITEW6432': 'AMD64', 'COMMONPROGRAMW6432': 'C:\\Program Files\\Common Files', 'OS': 'Windows_NT', 'PUBLIC': 'C:\\Users\\Public', 'USERPROFILE': 'C:\\Users\\John'}, kwargs={'startupinfo': <subprocess.STARTUPINFO instance at 0x038A9260>}
trying to import GStreamer 0.10 using <function import_gst0_10 at 0x03587530>
Python GStreamer version 0.10.31 for Python 2.7
run_sound(_sound_query, <function err at 0x028951F0>, {'pulseaudio_command': '', 'socket_dir': '', 'tcp_encryption_keyfile': '', 'xsettings': False, 'input_method': 'none', 'password_file': '', 'min_quality': 30, 'lpadmin': '/usr/sbin/lpadmin', 'speed': 0, 'video_encoders': ['x264', 'vpx', 'nvenc'], 'sync_xvfb': 0, 'title': '@title@ on @client-machine@', 'mmap': False, 'bell': True, 'clipboard': 'yes', 'socket_permissions': '600', 'keyboard_sync': True, 'file_transfer': True, 'shadow_fullscreen': False, 'local_clipboard': 'CLIPBOARD', 'csc_modules': ['swscale', 'cython'], 'auth': '', 'min_speed': 0, 'ssh': 'plink -ssh -agent', 'window_icon': '', 'open_files': False, 'daemon': False, 'remote_xpra': '~/.xpra/run-xpra', 'delay_tray': False, 'lpinfo': '/usr/sbin/lpinfo', 'debug': ',sound', 'video_decoders': ['avcodec2', 'vpx'], 'tray': True, 'bind_tcp': [], 'dpi': 0, 'remote_logging': True, 'pings': False, 'encodings': ['h264', 'vp9', 'vp8', 'png', 'png/P', 'png/L', 'webp', 'rgb', 'rgb24', 'rgb32', 'jpeg', 'h265'], 'desktop_scaling': 'auto', 'compressors': ['lz4', 'lzo', 'zlib'], 'av_sync': True, 'socket_dirs': [u'C:\\Users\\John\\AppData\\Roaming\\Xpra'], 'exit_with_client': False, 'log_dir': '~/.xpra', 'encryption_keyfile': '', 'tcp_encryption': '', 'speaker_codec': [], 'start_child': [], 'pdf_printer': '', 'open_command': 'xdg-open', 'tcp_proxy': '', 'encoding': '', 'postscript_printer': '', 'tray_icon': '', 'video_scaling': 1, 'exit_ssh': True, 'quality': 0, 'mdns': False, 'opengl': None, 'encryption': '', 'start': [], 'start_new_commands': False, 'username': 'John', 'sharing': False, 'notifications': True, 'xvfb': '', 'microphone_codec': [], 'tcp_auth': '', 'exit_with_children': False, 'file_size_limit': 10, 'printing': True, 'session_name': '', 'dbus_control': False, 'display': '', 'remote_clipboard': 'CLIPBOARD', 'server_idle_timeout': 0, 'key_shortcut': ['Meta+Shift+F2:show_start_new_command', 'Meta+Shift+F4:quit', 'Meta+Shift+F5:increase_quality', 'Meta+Shift+F6:decrease_quality', 'Meta+Shift+F7:increase_speed', 'Meta+Shift+F8:decrease_speed', 'Meta+Shift+F10:magic_key', 'Meta+Shift+F11:show_session_info', 'Meta+Shift+plus:scaleup', 'Meta+Shift+plusminus:scaleup', 'Meta+Shift+minus:scaledown', 'Meta+Shift+underscore:scaledown', 'Meta+Shift+emdash:scaledown', 'Meta+Shift+KP_Add:scaleup', 'Meta+Shift+KP_Subtract:scaledown', 'Meta+Shift+KP_Multiply:scalereset', 'Meta+Shift+degree:scalereset'], 'auto_refresh_delay': 0.15, 'cursors': True, 'border': 'auto,0', 'microphone': 'off', 'system_tray': True, 'global_menus': True, 'readonly': False, 'html': '', 'speaker': 'on', 'wm_name': 'Xpra', 'env': [], 'sound_source': '', 'mmap_group': False, 'idle_timeout': 0, 'fake_xinerama': False, 'max_size': '', 'clipboard_filter_file': '', 'windows': True, 'pulseaudio': False, 'packet_encoders': ['rencode', 'bencode', 'yaml'], 'compression_level': 1, 'displayfd': False, 'dbus_proxy': False, 'log_file': '$DISPLAY.log', 'use_display': False}, []) gst=<module 'gst' from 'D:\Xpra-0.16.0-r11304\library.zip\gst\__init__.pyc'>
found the following plugins: ['a52dec', 'aacparse', 'ac3parse', 'amrparse', 'appsink', 'appsrc', 'audioamplify', 'audiochebband', 'audiocheblimit', 'audioconvert', 'audiodynamic', 'audioecho', 'audiofirfilter', 'audioiirfilter', 'audioinvert', 'audiokaraoke', 'audiopanorama', 'audiorate', 'audioresample', 'audiotestsrc', 'audiowsincband', 'audiowsinclimit', 'bin', 'capsfilter', 'dcaparse', 'directsoundsink', 'directsoundsrc', 'fakesink', 'fakesrc', 'fdsink', 'fdsrc', 'filesink', 'filesrc', 'flacdec', 'flacenc', 'flacparse', 'flactag', 'gdpdepay', 'gdppay', 'identity', 'lame', 'lamemp3enc', 'mad', 'mp3parse', 'mpegaudioparse', 'multiqueue', 'oggaviparse', 'oggdemux', 'oggmux', 'oggparse', 'ogmaudioparse', 'ogmtextparse', 'ogmvideoparse', 'pipeline', 'queue', 'queue2', 'speexdec', 'speexenc', 'tee', 'typefind', 'volume', 'vorbisdec', 'vorbisenc', 'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'xingmux']
avoiding outdated flac module (likely buggy on win32 with gstreamer 0.10)
skipping opus with GStreamer 0.10
initialized sound codecs:
* vorbis : vorbisenc , gdppay , vorbisdec , gdpdepay
* mp3 : lamemp3enc , None , mad , mp3parse
* wav : wavenc , None , None , wavparse
* wavpack : wavpackenc , None , wavpackdec , wavpackparse
* speex : speexenc , oggmux , speexdec , oggdemux
2015-12-01 14:39:51,956 query_sound() process returned 0
2015-12-01 14:39:51,957 query_sound() out=sources=directsoundsrc,audiotestsrc
gst.version=0,10,31
encoders=vorbis,mp3,wav,wavpack,speex
demuxers=gdp,ogg
muxers=gdp,ogg
decoders=vorbis,mp3,wav,wavpack,speex
plugins=a52dec,aacparse,ac3parse,amrparse,appsink,appsrc,audioamplify,audiochebband,audiocheblimit,audioconvert,audiodynamic,audioecho,audiofirfilter,audioiirfilter,audioinvert,audiokaraoke,audiopanorama,audiorate,audioresample,audiotestsrc,audiowsincband,audiowsinclimit,bin,capsfilter,dcaparse,directsoundsink,directsoundsrc,fakesink,fakesrc,fdsink,fdsrc,filesink,filesrc,flacdec,flacenc,flacparse,flactag,gdpdepay,gdppay,identity,lame,lamemp3enc,mad,mp3parse,mpegaudioparse,multiqueue,oggaviparse,oggdemux,oggmux,oggparse,ogmaudioparse,ogmtextparse,ogmvideoparse,pipeline,queue,queue2,speexdec,speexenc,tee,typefind,volume,vorbisdec,vorbisenc,vorbisparse,vorbistag,wavenc,wavpackdec,wavpackenc,wavpackparse,wavparse,xingmux
pygst.version=0,10,20
, err=None
2015-12-01 14:39:51,957 query_sound()={'gst.version': ['0', '10', '31'], 'muxers': ['gdp', 'ogg'], 'decoders': ['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], 'pygst.version': ['0', '10', '20'], 'sources': ['directsoundsrc', 'audiotestsrc'], 'encoders': ['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], 'demuxers': ['gdp', 'ogg'], 'plugins': ['a52dec', 'aacparse', 'ac3parse', 'amrparse', 'appsink', 'appsrc', 'audioamplify', 'audiochebband', 'audiocheblimit', 'audioconvert', 'audiodynamic', 'audioecho', 'audiofirfilter', 'audioiirfilter', 'audioinvert', 'audiokaraoke', 'audiopanorama', 'audiorate', 'audioresample', 'audiotestsrc', 'audiowsincband', 'audiowsinclimit', 'bin', 'capsfilter', 'dcaparse', 'directsoundsink', 'directsoundsrc', 'fakesink', 'fakesrc', 'fdsink', 'fdsrc', 'filesink', 'filesrc', 'flacdec', 'flacenc', 'flacparse', 'flactag', 'gdpdepay', 'gdppay', 'identity', 'lame', 'lamemp3enc', 'mad', 'mp3parse', 'mpegaudioparse', 'multiqueue', 'oggaviparse', 'oggdemux', 'oggmux', 'oggparse', 'ogmaudioparse', 'ogmtextparse', 'ogmvideoparse', 'pipeline', 'queue', 'queue2', 'speexdec', 'speexenc', 'tee', 'typefind', 'volume', 'vorbisdec', 'vorbisenc', 'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'xingmux']}
2015-12-01 14:39:51,957 speaker-codec=vorbis, mp3, wav, wavpack, speex
2015-12-01 14:39:51,957 microphone-codec=vorbis, mp3, wav, wavpack, speex
2015-12-01 14:39:51,957 speaker: codecs=['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], allowed=True, enabled=vorbis, mp3, wav, wavpack, speex
2015-12-01 14:39:51,957 microphone: codecs=['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], allowed=True, enabled=vorbis, mp3, wav, wavpack, speex
2015-12-01 14:39:51,957 av-sync=True
2015-12-01 14:39:52,069 detected keyboard: layout=us
2015-12-01 14:39:52,069 desktop size is 1366x768 with 1 screen:
2015-12-01 14:39:52,069 Default (361x203 mm - DPI: 96x96) workarea: 1304x768
2015-12-01 14:39:52,069 DISPLAY1 (482x271 mm - DPI: 71x71)
2015-12-01 14:39:52,069 sound capabilities: {'gst.version': ['0', '10', '31'], 'muxers': ['gdp', 'ogg'], 'decoders': ['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], 'pygst.version': ['0', '10', '20'], 'sources': ['directsoundsrc', 'audiotestsrc'], 'encoders': ['vorbis', 'mp3', 'wav', 'wavpack', 'speex'], 'send': True, 'demuxers': ['gdp', 'ogg'], 'pulseaudio.found': False, 'pulseaudio.wrapper': 'none', 'plugins': ['a52dec', 'aacparse', 'ac3parse', 'amrparse', 'appsink', 'appsrc', 'audioamplify', 'audiochebband', 'audiocheblimit', 'audioconvert', 'audiodynamic', 'audioecho', 'audiofirfilter', 'audioiirfilter', 'audioinvert', 'audiokaraoke', 'audiopanorama', 'audiorate', 'audioresample', 'audiotestsrc', 'audiowsincband', 'audiowsinclimit', 'bin', 'capsfilter', 'dcaparse', 'directsoundsink', 'directsoundsrc', 'fakesink', 'fakesrc', 'fdsink', 'fdsrc', 'filesink', 'filesrc', 'flacdec', 'flacenc', 'flacparse', 'flactag', 'gdpdepay', 'gdppay', 'identity', 'lame', 'lamemp3enc', 'mad', 'mp3parse', 'mpegaudioparse', 'multiqueue', 'oggaviparse', 'oggdemux', 'oggmux', 'oggparse', 'ogmaudioparse', 'ogmtextparse', 'ogmvideoparse', 'pipeline', 'queue', 'queue2', 'speexdec', 'speexenc', 'tee', 'typefind', 'volume', 'vorbisdec', 'vorbisenc', 'vorbisparse', 'vorbistag', 'wavenc', 'wavpackdec', 'wavpackenc', 'wavpackparse', 'wavparse', 'xingmux'], 'receive': True}
2015-12-01 14:39:52,122 Xpra X11 server version 0.16.0-r11304
2015-12-01 14:39:52,122 running on Linux Ubuntu 14.04 trusty
2015-12-01 14:39:52,148 pulseaudio id=None, server=None, sound decoders=, sound encoders=, receive=False, send=False
2015-12-01 14:39:52,148 Attached to tcp:10.1.1.150:12000 (press Control-C to detach)
2015-12-01 14:40:37,196 received console event EVENTLOG_END_PAIRED
^C
More information about the shifter-users
mailing list