Vlcpulse audio output error pulseaudio server connection failure connection refused

ODROID vlc: PulseAudio server connection failure: Connection refused vlc: PulseAudio server connection failure: Connection refused Post by Sebas_Ledesma » Thu Mar 04, 2021 2:48 am I’m using Ubuntu 20.04 with kernel 4.9.241-69. VLC version it’s: 3.0.9.2-1 I have an app that runs as root at startup from .config/autostart/myapp.desktop. From this app I create a […]

Содержание

  1. ODROID
  2. vlc: PulseAudio server connection failure: Connection refused
  3. vlc: PulseAudio server connection failure: Connection refused
  4. Re: vlc: PulseAudio server connection failure: Connection refused
  5. Re: vlc: PulseAudio server connection failure: Connection refused
  6. Re: vlc: PulseAudio server connection failure: Connection refused
  7. Запуск VLC в докер-контейнере
  8. Vlcpulse audio output error pulseaudio server connection failure connection refused
  9. Re: Playing a sound on startup using python vlc
  10. Re: Playing a sound on startup using python vlc
  11. Re: Playing a sound on startup using python vlc
  12. Re: Playing a sound on startup using python vlc
  13. Re: Playing a sound on startup using python vlc
  14. Re: Playing a sound on startup using python vlc
  15. Re: Playing a sound on startup using python vlc
  16. Re: Playing a sound on startup using python vlc
  17. Re: Playing a sound on startup using python vlc
  18. Re: Playing a sound on startup using python vlc
  19. Linux Mint Forums
  20. VLC player not working
  21. VLC player not working
  22. Re: VLC player not working

ODROID

vlc: PulseAudio server connection failure: Connection refused

vlc: PulseAudio server connection failure: Connection refused

Post by Sebas_Ledesma » Thu Mar 04, 2021 2:48 am

I’m using Ubuntu 20.04 with kernel 4.9.241-69.
VLC version it’s: 3.0.9.2-1

I have an app that runs as root at startup from .config/autostart/myapp.desktop.
From this app I create a script called ‘instream.sh’ to launch VLC.

This very same was working on Odroid C2 + Ubuntu 18.04 + VLC 3.0.8-0ubuntu18.04.1

More info:
If I log as ‘odroid’ user and execute ./instream.sh it works.
If I do sudo su, and then execute ./instream.sh it fails.

More info 2:
aplay -l

Using pavucontrol I have set the profile for the onboard (HDMI) as OFF, and the usb audio card as Analog Stereo Output + Digital Stereo Input.

Thanks in advance,
Sebas.

Re: vlc: PulseAudio server connection failure: Connection refused

Post by mdrjr » Fri Mar 05, 2021 12:37 am

This is pulseadio security to avoid any other users/network members to interfere with your sound settings.

There are a few ways to work around it.

1. Use sudo instead of su

2. run vlc as the user odroid

3. paprefs
Installation:

run paprefs on a terminal as odroid, go to the network server tab, enable the first option «Enable Network access to local sound devices»

One of those 3 methods should help you!

Re: vlc: PulseAudio server connection failure: Connection refused

Post by Sebas_Ledesma » Sat Mar 06, 2021 5:21 am

Method #3 didnt worked.
Method #2 that’s what I’m doing, but for some reason it fails.
Method #1 I’ve found some interesting thing. Let’s me explain.

All the following tests were done with and without Enabling Network access to local sound devices, the result was the same.

Form a remote terminal I log as user ‘odroid, I kill my stream manager app to ensure that it will not launch an instance of VLC while doing tests, I killed the current instance of VLC and do:

(enter password):
works!

Now I switched to root user:

Fails: «Pulse audio connection refused. «

then come back to odroid user and re-enter to root with ‘su’.

So there is a difference between switching to root user with ‘sudo su’ vs ‘su’.
My app it’s launched with .desktop file in .config/autostart:
.
Exec=sudo my_stream

I need to launch «my_stream» as sudo as I need to use the wiringPi (BTW, my_stream also controls ffmpeg and mpd, I’ve checked that ffmpeg it’s also failing, I havent time to pérform tests on mpd).

I keep analyzing the situation.

Re: vlc: PulseAudio server connection failure: Connection refused

Post by Sebas_Ledesma » Sat Mar 06, 2021 7:25 am

I’ve changed the execution method, from .config/autostart/my_stream.desktop to add into the /etc/rc.local:
/usr/local/bin/my_stream &
and now it VLC works.
ffmpeg also seems to work (I have to do the tests).

The drawback it’s that I’ve have configured to execute /etc/rc.local before network ready, so there is no warranty of startup order. Also the USB audio (and pulse audio) could not be available when /etc/rc.local it’s executed (that was the idea to launch it once Mate desktop was running).

Probably I will have to switch the method and create a service that starts after network is online and audio subsystem is working.

Источник

Запуск VLC в докер-контейнере

Пишу образ для Докера, в котором будет установлен VLC для стримов. Докерфайл

По-моему странно то, что при запуске через cvlc (no-gui-режим) он просит х-server. Ну и ошибка с pulseaudio.

UPD: на базовом образе Ubuntu 16.04 или 18.04 то же самое

По-моему странно то, что при запуске через cvlc (no-gui-режим) он просит х-server.

По-моему, в дебиане vlc по умолчании открывается с окном под видео. То что, ты желаешь проигрывать звук из консоли vlc «не колышет» — у него в настройках «Автоматический показ интерфейса ВИДЕО» и всё* остальное для него не существенно.

pulseaudio нет,а ему нужно. Или ошибка какая-то иная?

Ну вот у VLC есть несколько UI (web, qt, консолька). cvlc по идее должен открывать вариант без графического интерфейса (что, собственно, происходит под десктопным дебианом или убунту). Пробовал ставить пакет с Pulseaudio, это погоды не делает. Он видимо к нему не может подрубиться. Там в первой строчке лога

Еще забыл сказать, что если ставить на базовый образ Ubuntu 16.04 или 18.04, то происходит ровно то же

Он видимо к нему не может подрубиться. Там в первой строчке лога

. которую я до конца не дочитал 🙁

cvlc по идее должен открывать вариант без графического интерфейса (что, собственно, происходит под десктопным дебианом или убунту).

я прежде чем, «порадовать» тебя своим комментарием запускал cvlc в консоли с аналогичным твоему результатом

вот в эмуляторе терминала — да играет без интерфейса. Но эмулятор терминала вне X-в не работает. В контейнере же только консоль.

Я знаю только, что VLC очень хитрая прога и иногда игнорирует настройки, перебирая варианты, чтобы был рабочий результат.

Я как-то файл проблемного фильтра пытался удалить, так VLC все новые и новые режимы задействовал, чтобы картинку показать. И без pulse он вполне работает, даже если задана пульса.

Источник

Vlcpulse audio output error pulseaudio server connection failure connection refused

I have a Python script running on Raspbian 11

. and it plays sound nicely when invoked via shell.

When I try to run it on startup using sudo crontab call:

. it gets called but it does not produce a sound.

Can someone please help set this rpi/vlc/python up?

Re: Playing a sound on startup using python vlc

So I assume you mean you are running bullseye , is this the with desktop version ?

If so you might need the desktop to be fully loaded so your sound will be played, you could try running your python program for the desktop auto run file so it run once the desktop has loaded.

I quick and dirty test with might work change your cron line to this.

this will delay the running of your code for 60 seconds.

One other point the while true continue will keep your code running for ever , you might want to change this to a simple sleep this is long enough to allow you sound to play out, so you code will end when the sound has finished.

Re: Playing a sound on startup using python vlc

I have tried the «sleep» command but it didn’t work (I have even tried «sleep 360», just in case)

BTW: I am running «lite» version: no desktop and I am using «continue» for not to have additional import that would «complicate» the code attached

Re: Playing a sound on startup using python vlc

Re: Playing a sound on startup using python vlc

wow, so complicated just for startup sound.
shouldn’t you be using cvlc since your headless.

the way i do it.

Re: Playing a sound on startup using python vlc

Re: Playing a sound on startup using python vlc

Re: Playing a sound on startup using python vlc

yes, that works when he logs into console. that is the user autostart folder, if not there it can be created, the system is already setup to use it.
it’s a linux standard.

edit: your right, just tried it. i would use

/.bashrc to run the autostart for console or just add the cvlc command right in there.

Re: Playing a sound on startup using python vlc

i never thought about console login sound.
i’ve moved it to my bash_aliases so i get a sound when i open the terminal.

edit: after some playing around, i find .bash_login the most suitable place for starting apps in cli after login. you can even make it for a certain tty if your using more than 1 console to run other things.

i’m off to bed, keep in mind i’m pretty buzzed still, so my thoughts isn’t the best. (man, if there was no spellcheck, i doubt this could even be read, totally clobbered the keyboard)

Re: Playing a sound on startup using python vlc

I have fixed it.

This is what was in log.txt:

. and the sound came out of the speakers upon restart!

@pcmanbob Thank you very much.

I am still experiencing some issues

Re: Playing a sound on startup using python vlc

The ampersand just make your code run in the background , anything run using cron is run in the background by default.

When running things using cron you should always include full paths to files as cron runs in a different environment to the command line or terminal.

I would still try running your code with a sleep instead of the while true loop or your code will be running in the background for ever using processor time.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

VLC player not working

VLC player not working

Post by delsan » Sat Jan 25, 2020 10:59 am

I am using Linux MINT 19.3 on an intel i9 machine I installed VLC and opened a flv file . Video starts playing but soon I am getting this error

vlc
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[0000557c30de2570] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
qt5ct: using qt5ct plugin
qt5ct: D-Bus global menu: no
qt5ct: D-Bus system tray: no
[0000557c30de64e0] main playlist: playlist is empty
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[00007fee1d394c60] avcodec decoder: Using Intel i965 driver for Intel(R) Coffee Lake — 2.1.0 for hardware decoding
[h264 @ 0x7fee1cc165c0] co located POCs unavailable
[h264 @ 0x7fee1cf053c0] co located POCs unavailable
[h264 @ 0x7fee1cc165c0] mmco: unref short failure
[h264 @ 0x7fee1d353160] co located POCs unavailable
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[h264 @ 0x7fee1cc224c0] co located POCs unavailable
[h264 @ 0x7fee1d353160] co located POCs unavailable
[h264 @ 0x7fee1cee90a0] co located POCs unavailable
[h264 @ 0x7fee1cf053c0] mmco: unref short failure
[h264 @ 0x7fee1cee90a0] co located POCs unavailable
[h264 @ 0x7fee1d3598a0] co located POCs unavailable
[h264 @ 0x7fee1cee90a0] mmco: unref short failure
[h264 @ 0x7fee1cc165c0] co located POCs unavailable
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[00007fee1d394c60] avcodec decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
[h264 @ 0x7fee1d353160] co located POCs unavailable
[h264 @ 0x7fee1d3598a0] co located POCs unavailable
[h264 @ 0x7fee1cf053c0] co located POCs unavailable
[h264 @ 0x7fee1cc165c0] mmco: unref short failure
QObject::

QObject: Timers cannot be stopped from another thread

Re: VLC player not working

Post by Kadaitcha Man » Sun Jan 26, 2020 1:56 am

I am using Linux MINT 19.3 on an intel i9 machine I installed VLC and opened a flv file . Video starts playing but soon I am getting this error

vlc
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[0000557c30de2570] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.

You aren’t supposed to start GUI applications from the command line. The message clearly tells you to use cvlc for that.

What happens when you try to play the flash video after starting vlc from the menu?

Источник

Board and OS details:

Open a terminal and run

cat /proc/cpuinfo  
cat /etc/os-release  
pi@raspberrypi:~ $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 1
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 2
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

processor       : 3
model name      : ARMv7 Processor rev 4 (v7l)
BogoMIPS        : 38.40
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xd03
CPU revision    : 4

Hardware        : BCM2835
Revision        : a22082
Serial          : 00000000569d590c
pi@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Describe the bug:

I went through the initial set up and after running `sudo  ./GassistPi/scripts/gassist-installer.sh` and going through Steps 3-7 and verified it could make sound, hear my voice commands, and look up the weather.

I tried setting up the start on boot service and when I enabled it, it kept restarting. The jingle it makes turns on, then cuts off in the middle of it and restarts.

I disabled the boot service and tried starting it manually and not it is mentioning errors seen in the log below.

Did you go through or search the issues section to check if your issue was already discussed (either currently open issues or closed issues).

Yes

2. Is the issue related to assistant installation ?

No

If answer to question 2 is No, then proceed further.

3. Does the assistant service start normally?

No

4. Is the assistant service restarting automatically?

Yes

If answer to question 4 is Yes, then paste the contents of the terminal below.

No terminal contents. See contents below

Manually start the assistant. For guidelines to start the assistant manually refer this

Paste the command below, that crashed the assistant

pi@raspberrypi:~ $ /home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --aiy-kit-188922-voice-kit

Paste the contents of the terminal below

INFO:gmusicapi.Mobileclient1:!-- begin debug log --!
INFO:gmusicapi.Mobileclient1:version: 12.1.1
INFO:gmusicapi.Mobileclient1:logging to: /home/pi/.cache/gmusicapi/log/gmusicapi.log
INFO:gmusicapi.Mobileclient1:initialized
INFO:gmusicapi.Mobileclient1:logged out
/home/pi/env/lib/python3.5/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/pi/.local/share/gmusicapi/mobileclient.cred: No such file or directory
  warnings.warn(_MISSING_FILE_MESSAGE.format(filename))
2020-02-29 19:58:11,394 - gmusicapi.Mobileclient1 (shared:183) [WARNING]: could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
WARNING:gmusicapi.Mobileclient1:could not retrieve oauth credentials from ''/home/pi/.local/share/gmusicapi/mobileclient.cred''
INFO:gmusicapi.Mobileclient1:failed to authenticate
AIY-HAT
Initializing GPIO 25 for assistant activity indication
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
ALSA lib pcm_dmix.c:990:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dsnoop.c:556:(snd_pcm_dsnoop_open) The dsnoop plugin supports only capture stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
usage: main.py [-h] [--device-model-id DEVICE_MODEL_ID]
               [--project-id PROJECT_ID] [--nickname NICKNAME]
               [--device-config DEVICE_CONFIG_FILE]
               [--credentials OAUTH2_CREDENTIALS_FILE] [--query QUERY] [-v]
main.py: error: unrecognized arguments: --aiy-kit-188922-voice-kit

Attach the log file named Gassistpi.log

Log file can be found in /tmp/ directory

2020-02-29 19:56:32,040 : DEBUG : Making request: POST https://oauth2.googleapis.com/token
2020-02-29 19:56:32,055 : DEBUG : Starting new HTTPS connection (1): oauth2.googleapis.com:443
2020-02-29 19:56:32,331 : DEBUG : https://oauth2.googleapis.com:443 "POST /token HTTP/1.1" 200 None
2020-02-29 19:56:32,404 : DEBUG : Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2020-02-29 19:56:32,424 : DEBUG : Starting new HTTPS connection (1): embeddedassistant.googleapis.com:443
2020-02-29 19:56:32,668 : DEBUG : https://embeddedassistant.googleapis.com:443 "GET /v1alpha2/projects/aiy-kit-2020-assist-pi-oh6hdc/devices/4906A5C9F0BDCE5D9CF71EDEA74696A5 HTTP/1.1" 400 None
2020-02-29 19:56:44,605 : DEBUG : Making request: POST https://oauth2.googleapis.com/token
2020-02-29 19:56:44,618 : DEBUG : Starting new HTTPS connection (1): oauth2.googleapis.com:443
2020-02-29 19:56:44,839 : DEBUG : https://oauth2.googleapis.com:443 "POST /token HTTP/1.1" 200 None
2020-02-29 19:56:44,872 : DEBUG : Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2020-02-29 19:56:44,886 : DEBUG : Starting new HTTPS connection (1): embeddedassistant.googleapis.com:443
2020-02-29 19:56:45,095 : DEBUG : https://embeddedassistant.googleapis.com:443 "GET /v1alpha2/projects/aiy-kit-2020-assist-pi-oh6hdc/devices/4906A5C9F0BDCE5D9CF71EDEA74696A5 HTTP/1.1" 400 None
2020-02-29 19:56:56,487 : DEBUG : Making request: POST https://oauth2.googleapis.com/token
2020-02-29 19:56:56,500 : DEBUG : Starting new HTTPS connection (1): oauth2.googleapis.com:443
2020-02-29 19:56:56,730 : DEBUG : https://oauth2.googleapis.com:443 "POST /token HTTP/1.1" 200 None
2020-02-29 19:56:56,765 : DEBUG : Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2020-02-29 19:56:56,777 : DEBUG : Starting new HTTPS connection (1): embeddedassistant.googleapis.com:443
2020-02-29 19:56:56,998 : DEBUG : https://embeddedassistant.googleapis.com:443 "GET /v1alpha2/projects/aiy-kit-2020-assist-pi-oh6hdc/devices/4906A5C9F0BDCE5D9CF71EDEA74696A5 HTTP/1.1" 400 None
2020-02-29 19:57:11,147 : DEBUG : Making request: POST https://oauth2.googleapis.com/token
2020-02-29 19:57:11,161 : DEBUG : Starting new HTTPS connection (1): oauth2.googleapis.com:443
2020-02-29 19:57:11,381 : DEBUG : https://oauth2.googleapis.com:443 "POST /token HTTP/1.1" 200 None
2020-02-29 19:57:11,416 : DEBUG : Converted retries value: 3 -> Retry(total=3, connect=None, read=None, redirect=None, status=None)
2020-02-29 19:57:11,429 : DEBUG : Starting new HTTPS connection (1): embeddedassistant.googleapis.com:443
2020-02-29 19:57:11,635 : DEBUG : https://embeddedassistant.googleapis.com:443 "GET /v1alpha2/projects/aiy-kit-2020-assist-pi-oh6hdc/devices/4906A5C9F0BDCE5D9CF71EDEA74696A5 HTTP/1.1" 400 None

We have an updated version of VLC which improves performance for video decode, including HEVC 4K video playback on Pi4.
It is currently in the untested raspberry pi repo, and should be considered beta.

If you would like to try it, edit /etc/apt/sources.list.d/raspi.list and add ‘untested’ to the line ‘deb’ line so that it looks like this:

Code: Select all

deb http://archive.raspberrypi.org/debian/ buster main ui untested

If you don’t have «ui» in there, that’s okay.

Then update and upgrade as usual:

Code: Select all

sudo apt update
sudo apt dist-upgrade

Known issues / features:

If the decoder runs out of memory for any reason it reports an error and vlc, after receiving that error, stops using the decoder — this manifests as a black or frozen pici whilst audio continues. If you stop (not pause) the video then the decoder will be killed and we can try again.

Closing VLC by Alt-F4 or directly closing the window whilst video is playing doesn’t always shut life down correctly and you end up with a still active (deadlocked) VLC with no window. Stopping the video first or exiting with Ctrl-Q seems to die properly reliably.

If you want 4k on a Pi4 then I’d recommend 512M CMA (Add cma=512M to /boot/cmdline.txt).
If you are on a 1G Pi4 then 384M is probably your best bet but that can run out of memory under X for hardware 4K videos. You will probably get away with it without X.

GPU mem is best left at default (unset) on Pi4.
4k playback in a window is choppy. Switching to fullscreen should play much better (F key).
Launching from command line in fullscreen mode should also be fine (that can be run outside of X too).

For Pi 3, 128M GPU memory is recommended (set gpu_mem=128 in config.txt) for non-HEVC playback.
256M GPU if you want to play any HEVC. This is software decode with GPU acceleration. Most 1080p videos should play.

If you want a more omxplayer like interface to the command line vlc, then:

allows things like seeking with cursor keys. See VLC ncurses interface

[edit]
Pi2/Pi3 with fkms won’t work with hevc files. The acceleration uses the QPUs (part of 3D hardware) which the ARM is in control of in fkms mode.
Disable fkms if you need hevc decode.

Модератор: immortal

ghost13

Сообщения: 22
Зарегистрирован: Пт сен 02, 2016 8:01 pm
Благодарил (а):
2 раза
Поблагодарили:
2 раза

Re: VLC и управление им

в консоли на запрос vlc -i http выдало

LC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[00e38aa8] pulse audio output error: PulseAudio server connection failure: Connection refused
[00dc7e48] core interface error: no suitable interface module
[00d9c8f8] core libvlc error: interface «globalhotkeys,none» initialization failed
[00dc7e48] dbus interface error: Failed to connect to the D-Bus session daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00dc7e48] core interface error: no suitable interface module
[00d9c8f8] core libvlc error: interface «dbus,none» initialization failed
[00dc7e48] [http] lua interface: Lua HTTP interface

но vlc заработал :D

iapet

Сообщения: 289
Зарегистрирован: Вт авг 18, 2015 6:23 pm
Благодарил (а):
8 раз
Поблагодарили:
36 раз

Re: VLC и управление им

Сообщение

iapet » Пт сен 16, 2016 10:56 am

Из-под рута? Пробуйте от www-data. По моему посту ранее.

[00e38aa8] pulse audio output error: PulseAudio server connection failure: Connection refused

это просто говорит что не установлен pulseaudio. Он и не нужен.
На всякий случай почистите хвосты:

И проверьте в

убранный комментарий в строке 192.168.0.0/16 не должно быть #

Аватара пользователя

71Gavrik71

Сообщения: 54
Зарегистрирован: Сб май 21, 2016 2:04 pm
Благодарил (а):
9 раз
Поблагодарили:
1 раз

Re: VLC и управление им

Сообщение

71Gavrik71 » Вс сен 18, 2016 11:59 pm

Mescaline писал(а):Нужно по-чаще вспоминать старую пословицу «Утро вечера мудренее»… На свежую голову нашлась причина (ну, по-мимо моей «дырявой» головы :D ). В моей версии VLC (2.1.1) не оказалось файла .hosts по пути (C:Program Files (x86)VideoLANVLCluahttp), переустановил на версию 2.0.5, файл появился.
В настройках VLC убрал пароль и все заработало 8-) . Видимо из-за отсутствия файла в новой версии не работало.
Спасибо за помощь :)

А не поделитесь файлом хост) и если не сложно расскажите как убрать пароль.

iapet

Сообщения: 289
Зарегистрирован: Вт авг 18, 2015 6:23 pm
Благодарил (а):
8 раз
Поблагодарили:
36 раз

Re: VLC и управление им

Сообщение

iapet » Пн дек 19, 2016 7:14 pm

71Gavrik71 писал(а):

Mescaline писал(а):Нужно по-чаще вспоминать старую пословицу «Утро вечера мудренее»… На свежую голову нашлась причина (ну, по-мимо моей «дырявой» головы :D ). В моей версии VLC (2.1.1) не оказалось файла .hosts по пути (C:Program Files (x86)VideoLANVLCluahttp), переустановил на версию 2.0.5, файл появился.
В настройках VLC убрал пароль и все заработало 8-) . Видимо из-за отсутствия файла в новой версии не работало.
Спасибо за помощь :)

А не поделитесь файлом хост) и если не сложно расскажите как убрать пароль.

Ничего не нужно убирать все работает и с паролем.

lysyy

Сообщения: 113
Зарегистрирован: Вт июн 09, 2015 9:41 pm
Откуда: Moscow
Благодарил (а):
15 раз
Поблагодарили:
9 раз

Re: VLC и управление им

Сообщение

lysyy » Пт дек 23, 2016 3:15 pm

Кстати, хотел поделиться, как запускал VLC как виндовый сервис, для дист управления. Служба создается, добавляем в батник команду на запуск

start /D «C:Program Files (x86)VideoLANVLC» vlc.exe -I ntservice —ntservice-install —ntservice-name=VLC —ntservice-extraintf=dummy —ntservice-options=»-I ntservice —http-password=YourPassword —extraintf=http —http-port=8080″
sc start vlc

Для удаления
start /D «C:Program Files (x86)VideoLANVLC» vlc.exe -I —ntservice-uninstall —ntservice-name=VLC

Радио-101 работает))
MD на убунте на виртуалке на этом же сервере)

Аватара пользователя

71Gavrik71

Сообщения: 54
Зарегистрирован: Сб май 21, 2016 2:04 pm
Благодарил (а):
9 раз
Поблагодарили:
1 раз

Re: VLC и управление им

Сообщение

71Gavrik71 » Пн янв 02, 2017 11:12 pm

iapet писал(а):

71Gavrik71 писал(а):

Mescaline писал(а):Нужно по-чаще вспоминать старую пословицу «Утро вечера мудренее»… На свежую голову нашлась причина (ну, по-мимо моей «дырявой» головы :D ). В моей версии VLC (2.1.1) не оказалось файла .hosts по пути (C:Program Files (x86)VideoLANVLCluahttp), переустановил на версию 2.0.5, файл появился.
В настройках VLC убрал пароль и все заработало 8-) . Видимо из-за отсутствия файла в новой версии не работало.
Спасибо за помощь :)

А не поделитесь файлом хост) и если не сложно расскажите как убрать пароль.

Ничего не нужно убирать все работает и с паролем.

Да я и не отрицаю мне просто лень то и дело вставлять код ля этой хреновой авторизации, а если б ее не было то было б на много проще.

iapet

Сообщения: 289
Зарегистрирован: Вт авг 18, 2015 6:23 pm
Благодарил (а):
8 раз
Поблагодарили:
36 раз

Re: VLC и управление им

Сообщение

iapet » Чт янв 05, 2017 10:55 pm

71Gavrik71 писал(а):
Да я и не отрицаю мне просто лень то и дело вставлять код ля этой хреновой авторизации, а если б ее не было то было б на много проще.

Зачем его вставлять все время? Пропишите в терминалах и все.

kas5858

Сообщения: 360
Зарегистрирован: Вс янв 15, 2017 5:34 pm
Откуда: Москва
Благодарил (а):
100 раз
Поблагодарили:
52 раза

Re: VLC и управление им

Сообщение

kas5858 » Пт янв 27, 2017 3:12 pm

Доброго времени суток! Помогите привязать слайдер к volume vlc плеера на малинке, примерно как из модуля плеер, только мне слайдер нужен.

Raspberry Pi3 — Broadlink — MegaD — Много датчиков — Камеры — Часы.
Изображение Connect

kas5858

Сообщения: 360
Зарегистрирован: Вс янв 15, 2017 5:34 pm
Откуда: Москва
Благодарил (а):
100 раз
Поблагодарили:
52 раза

Re: VLC и управление им

Сообщение

kas5858 » Вс янв 29, 2017 10:52 pm

Помогите разобраться что не так. Передвигаю ползунок громкости он как стоял на 150 так обратно на него сбрасывает.

Последний раз редактировалось kas5858 Пн янв 30, 2017 11:57 pm, всего редактировалось 2 раза.

Raspberry Pi3 — Broadlink — MegaD — Много датчиков — Камеры — Часы.
Изображение Connect

kas5858

Сообщения: 360
Зарегистрирован: Вс янв 15, 2017 5:34 pm
Откуда: Москва
Благодарил (а):
100 раз
Поблагодарили:
52 раза

Re: VLC и управление им

Сообщение

kas5858 » Пн янв 30, 2017 9:34 pm

kas5858 писал(а):Доброго времени суток! Помогите привязать слайдер к volume vlc плеера на малинке, примерно как из модуля плеер, только мне слайдер нужен.

kas5858 писал(а):Помогите разобраться что не так. Передвигаю ползунок громкости он как стоял на 150 так обратно на него сбрасывает.

Всем огромное спасибо, кто активно принимал участия. :) Вопросы решены.

Последний раз редактировалось kas5858 Пн мар 06, 2017 9:27 pm, всего редактировалось 2 раза.

Raspberry Pi3 — Broadlink — MegaD — Много датчиков — Камеры — Часы.
Изображение Connect

Понравилась статья? Поделить с друзьями:
  • Vlc как изменить масштаб
  • Vlc socket bind error
  • Vlc sat ip stream error failed to setup rtsp session
  • Vlc media player как изменить скин
  • Vlc main interface error no suitable interface module