[Howto] play h265 (hevc) 10-bit video with hardware acceleration
recommendations: #check, if VDPAU-API is working (h.265 = HEVC.MAIN decoder profile must be supported) vpdauinfo #check, if VA-API is working (h.265 ‘entrypoints’ must be listed) vainfo problem: vdpau-driver doesn’t support h.265 10-bit hardware-decoding yet. It falls back to software decoding … Continued
[Facts] cpu + gpu hardware acceleration speedup (h.264, h.265, vdpau, vaapi)
system: kernel: linux-4.16.0-1-amd64 mediaplayer: vlc-3.0.3 cpu: intel i3-4160 (2 Threads/2 Cores, 3600 MHz) gpu: amd radeon hd 7950 (r9-280, tahiti-core) tool: top-3.3.15 measured values (average cpu-usage with top): h.264 (MPEG-4 AVC Part 10) 1920×1080 @ 23,976 fps only cpu-usage … Continued
[Howto] start X without systemd requirement
situtation: debian’s X-Server requires a systemd-session to work. problem: If you haven’t installed systemd, you aren’t able to start the xserver, because the xserver can’t connect to an systemd session. (EE) systemd-logind: failed to get session: The name org.freedesktop.login1 was not provided … Continued
[Howto] resolve LaTeX error message “Cannot determine size of graphic xxx (no BoundingBox)”
problem: LaTeX-Compiler can’t determine the graphic-size, because there is no such information in the graphics-file. Error messages like: “Cannot determine size of graphic <picture> (no BoundingBox)” solution: use a graphic fileformat, which saves picture-size information, e.g. *.eps OR use … Continued
[Howto] dhcpd and DDNS Update without hostname: expression to create a hostname
ISC dhcpd 4.3.6 ISC bind 9.10.6-p1 Problem: dhcpd requires a client-hostname to update the DNS zone dynamically (=DDNS). If the client doesn’t send a hostname (or the hostname is empty), dhcpd can’t add an DNS entry dynamically in the … Continued
[Howto] rc.d start script examples in FreeBSD
FreeBSD v11.1 service control: #to start, stop, restart, reload config or show status of a service execute: service <name> start service <name> stop service <name> restart service <name> reload service <name> status create the following scripts in the … Continued
[Howto] IPv4 TCP communication in C (minimal example)
the server-program sends the string “TestTestTest”. the client-programm receives the string and prints it on terminal. server-program: #include <unistd.h> #include <stdio.h> #include <string.h> #include <sys/socket.h> #include <netinet/in.h> int main(int argc, char *argv[]) { int listenfd = 0; int connfd … Continued
[Howto] solve freebsd-update invalid signature error
check, if you have a working /usr/bin/openssl /usr/bin/openssl version file /usr/bin/openssl ldd /usr/bin/openssl check, if you have a valid signature-file for freebsd-update /var/db/freebsd-update/pub.ssl (you can safely remove it, because a new run of freebsd-update fetches it again) After … Continued
[Howto] merge solids in FreeCAD
FreeCAD v0.16 create two cutting solids select both solids click “boolean operation” → select “merge” → ok now both solids became unvisible and a new fusion is created select the newly created fusion menu → part → refine shape
[Howto] project lines from volume to sketch in FreeCAD
FreeCAD version 0.16 create a new sketch close the newly created sketch select a face in the modell click in the toolbar the button “assign sketch to face” choose the newly created sketch from the displayed drop-down-list click ok, done … Continued