i am using freeswitch for a VOIP application. after loading mod_portaudio, pa devlist results blank , pa call 9999 and pa call 9996 reasult mod_portaudio.c:2453 Error invalid output audio device. . Can anyone please help me why these errors are coming.
Thanks in advance.
Try to install alsa dev package, then reconfigure and recompile freeswitch.
In ubuntu package name is libasound2-dev.
Some more info here: http://portaudio.com/docs/v19-doxydocs/compile_linux.html
Related
i'm trying to get a video stream from a djy drone 'Tello' with nodejs. the UDP server is working because i can manually get the stream and show it on my mac with "ffplay udp://198.168.10.1:11111".
Anyway i cant make opencv4nodejs (porting of opencv) working while making const capture = new VideoCapture('udp://192.168.10.1:11111', cv.CAP_FFMPEG).
Construction of object 'capture' fails with this message:
'OpenCV: Couldn't read video stream from file "udp://192.168.10.1:11111"'
P.S: if I use const capture = new VideCapture(0), etc.. it does successfully construct everything using my Mac camera.
Any help would be great, thank you!
Solution: The issue was installing opencv4nodejs without having ffmpeg installed BEFORE. So i run again npm install and rebuild opencv that was now aware of FFMPEG and everything worked as was supposed to do. I can read from udp stream and forward video as i want to my front end
I am writing a small program in my Debian Environment on Windows 10. I intend to use this code later on my Raspberry Pi 4.
The code runs videos through VLC at certain times of day.
The core of the VLC code (Python3) is below. Full Python code at the bottom.
VLC code:
import vlc;
Instance = vlc.Instance('--fullscreen');
player = Instance.media_player_new();
Media = Instance.media_new("../videos/starscape.mp4");
Media.get_mrl();
player.set_media(Media);
player.play();
However, this is throwing all sorts of errors.
VLC media player 3.0.7 Vetinari (revision 3.0.7-0-g86cee31099)
shared memfd open() failed: Function not implemented
[00007fffdc1e0410] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
shared memfd open() failed: Function not implemented
[00007fffdc225830] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[00007fffdc225830] main interface error: no suitable interface module
[00007fffdc1291a0] main libvlc error: interface "dbus,none" initialization failed
[00007fffdc204440] main interface error: no suitable interface module
[00007fffdc1291a0] main libvlc error: interface "globalhotkeys,none" initialization failed
[00007fffdc1291a0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
error: XDG_RUNTIME_DIR not set in the environment.
[00007fffdc204440] skins2 interface error: cannot initialize OSFactory
Here is what I have tried to fix it:
apt-get update and apt-get upgrade
uninstall and reinstall vlc
uninstall and reinstall python-vlc
uninstall and reinstall pulseaudio
google these errors and try random solutions
I have never worked with VLC from the CLI before, so I do not know if this is an error with my code, with my install, or with the Debian instance.
Can anyone point me the right way?
FULL CODE (still WIP, but the general idea is there)
Gist: https://gist.github.com/Code2Empower/7deb6e05ffd10b0ea83eaff41c8cf294
OK, so I am an idiot. Installing Debian on Windows 10, creates a completely headless install.
So, of course VLC is giving errors.
I also stopped using vlc-python to make the call to vlc and used the subprocess module (much cleaner).
I tested the code in a Windows environment, and it works. I will test it on the Pi, when it gets here, but it should behave the same.
Here is the new vlc code, in case anyone else needs it.
import subprocess;
media = "../videos/starscape.mp4";
subprocess.Popen(["vlc.exe", media, "-f", "-L" ]);
Gist: https://gist.github.com/Code2Empower/7deb6e05ffd10b0ea83eaff41c8cf294
I have a YubiHSM2 HSM device and want to access it via PKCS11. I have installed the YubiHSM2 drivers as well as Libp11 and OpenSC tools.
However, when I try to connect and generate a key via:
pkcs11-tool --module 'C:\Users\myUser\yubihsm2-sdk\bin\yubihsm_pkcs11.dll --login --pin 0001password \
--keypairgen --key-type rsa:2048 --label "my_key" --usage-sign
I receive:
error: Failed to laod pkcs11 module
Aborting.
I am thinking maybe I am adressing the dll file wrong? I am trying to implement this on Windows, I had it working on Unix System where I had to address a xxx.so file.
Does anyone have an idea or similar experience with a HSM module?
Thanks for your help!
Best regards
LikeAKemper
#everyone.
I found the issue. It only works if I am already in the directory where the DLL is located. Now I am not sure why this is an issue for the command so let me know if you something about that.
Anyway thank you.
I am attempting to print a text document using a RPi 2 but when I attempt to print the printer just prints out unreadable text eg:-
#EJL 1284.4
#EJL
JSGUTENPRINTPMMIɸüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüü
ÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüü
üüÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖüüüüüÖ etc...
This is using the Epson Stylus T20 - CUPS+Gutenprint v5.2.9 (en) driver that came with CUPS.
When I attempt to use the driver from the Epson site I get the following error in CUPS:-
Idle - "File "/usr/lib/cups/filter/rastertotmt" not available: No such file or directory"
Has any one else had this issue, or does anybody know where I am able to get an armhf epson printer driver?
Hardware/Software Info:-
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
Raspberry Pi 2 Model B
CUPS 1.5.3
Gutenprint v5.2.9
If there is any more info you need please ask.
Thank you in advance.
Skip CUPS and install this ESC/POS manipulation library for python.
Just tested it with RPI2 & Raspbian.
I tried the package from plinth666 but the raster wasn't quite proper and the print timing waas quiet long.
I used then a bunch of free code from Epson, a PPD file from another printer and modify them to produce this new package: https://github.com/groolot/epson-tm-t88v-driver
Better rasterization, cash drawer and buzzer, all is operational.
Hope that could help someone like I was: in pain.
We have cross-compiled XBMC for a Set-top-Box, board with Intel graphics card.
When I run XBMC , we are getting the following errors:
10:20:09 T:3053991728 M:527937536 ERROR: CXRandR::Query - unable to open xrandr xml
10:20:09 T:3053991728 M:527945728 NOTICE: Setup SDL
10:20:09 T:3053991728 M:529735680 FATAL: XBAppEx: Unable to initialize SDL: DirectFBCreate: Initialization error!
I do have all the related libraries and have linked the same thru LD_LIBRARY_PATH , Does any one know how to configure XBMC to use the FrameBuffers.
Any quick help in this regard is of great help.
Thanks in advance,