Skip to content

Instantly share code, notes, and snippets.

View markvdb's full-sized avatar

Mark Van den Borre markvdb

View GitHub Profile
@markvdb
markvdb / gist:3dd03ec9fbcf9ec7c35010c1e1a74bd3
Created September 10, 2023 22:04
scaling and pillarboxing the input from the grabber
ffmpeg \
-y \
-v debug \
-report \
-nostdin \
-init_hw_device "vaapi=intel:/dev/dri/renderD128" \
-hwaccel vaapi \
-hwaccel_output_format vaapi \
-hwaccel_device intel \
-filter_hw_device intel \
cat go.mod
module github.com/gerryd/ms213x-status
go 1.19
require (
github.com/BertoldVdb/ms-tools v0.0.0-20221129120332-dd3c7641485a
github.com/alecthomas/kong v0.8.0
github.com/sstallion/go-hid v0.14.1
)
grep -r 0000e3a0 *hex
24fps_1.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
24fps_2.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
24fps_3.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
25fps_1.hex:0000e3a0: 020d 2600 00c8 6021 0000 0000 0000 0000 ..&...`!........
30fps_1.hex:0000e3a0: 020d 2500 00c8 6022 0000 0000 0000 0000 ..%...`"........
50fps_1.hex:0000e3a0: 020d 2800 00c8 601f 0000 0000 0000 0000 ..(...`.........
50fps_2.hex:0000e3a0: 020d 2800 00c8 601f 0000 0000 0000 0000 ..(...`.........
59fps_1.hex:0000e3a0: 020d 2100 1228 0410 0000 0000 0000 0000 ..!..(..........
60fps_1.hex:0000e3a0: 020d 3700 00c8 6010 0000 0000 0000 0000 ..7...`.........
grep -r 0000e3a0 *hex
24fps_1.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
24fps_2.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
24fps_3.hex:0000e3a0: 020d 2700 00c8 6020 0000 0000 0000 0000 ..'...` ........
25fps.hex:0000e3a0: 020d 2600 00c8 6021 0000 0000 0000 0000 ..&...`!........
30fps.hex:0000e3a0: 020d 2500 00c8 6022 0000 0000 0000 0000 ..%...`"........
50fps_1.hex:0000e3a0: 020d 2800 00c8 601f 0000 0000 0000 0000 ..(...`.........
50fps_2.hex:0000e3a0: 020d 2800 00c8 601f 0000 0000 0000 0000 ..(...`.........
59fps.hex:0000e3a0: 020d 2100 1228 0410 0000 0000 0000 0000 ..!..(..........
60fps.hex:0000e3a0: 020d 3700 00c8 6010 0000 0000 0000 0000 ..7...`.........
root@bbb1:~# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: 40 bits physical, 48 bits virtual
CPU(s): 3
On-line CPU(s) list: 0-2
Thread(s) per core: 1
Core(s) per socket: 3
Socket(s): 1
from django.contrib import admin
from rules.contrib.admin import ObjectPermissionsModelAdmin
from .models import *
class VraagAdmin(admin.ModelAdmin):
actions = ['maak_stembrieven']
def maak_stembrieven(self, request, queryset):
for vraag in queryset:
vraag.maak_stembrieven()
from django.db import models
from django.contrib.auth.models import User
from django.utils.translation import gettext_lazy as _
import rules
from rules.contrib.models import RulesModel
@rules.predicate
def is_kiezer(user,antwoord):
if not antwoord:
return False
Hi!
This is to inform you that your talk at FOSDEM 2020, with title
FOSDEM Video Box
has been fully transcoded and is currently making its way to our mirrors.
It should be available for you to view within a couple hours at:
uname -r
4.19.0-6-amd64
cat /etc/debian_version
10.2
echo $XDG_SESSION_TYPE
wayland
vainfo
@markvdb
markvdb / gist:796c40e3644694163694a61e88c2b3a8
Created November 23, 2019 20:28
playback with audio in weston
Setting pipeline to PAUSED ...
0:00:00.038146622 13381 0x55fe274cd6f0 WARN basesrc gstbasesrc.c:3583:gst_base_src_start_complete:<filesrc0> pad not activated yet
Pipeline is PREROLLING ...
0:00:00.038855420 13381 0x55fe274a82d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex:<demux> failed to find fragment defaults for stream 1
0:00:00.039018154 13381 0x55fe274a82d0 WARN qtdemux qtdemux.c:3031:qtdemux_parse_trex:<demux> failed to find fragment defaults for stream 2
0:00:00.039339405 13381 0x55fe274a82d0 WARN basesrc gstbasesrc.c:2445:gst_base_src_update_length:<filesrc0> processing at or past EOS
Got context from element 'vaapipostproc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
Redistribute latency...
0:00:00.141129871 13381 0x55fe274ef720 WARN vaapidisplay gstvaapidisplay_wayland.c:167:gst_vaapi_display_wayland_bind_display: wayland: get display name
Got context from elemen