Skip to content

Instantly share code, notes, and snippets.

diff --git a/docs/configuring_omxplayer.adoc b/docs/configuring_omxplayer.adoc
index 5dda1aa..942002d 100644
--- a/docs/configuring_omxplayer.adoc
+++ b/docs/configuring_omxplayer.adoc
@@ -12,7 +12,7 @@ Here is some https://github.com/popcornmix/omxplayer/issues/256[more info about
## omxplayer configuration
-### timeout
+### timeout
diff --git a/docs/configuring_omxplayer.adoc b/docs/configuring_omxplayer.adoc
index 5369839..942002d 100644
--- a/docs/configuring_omxplayer.adoc
+++ b/docs/configuring_omxplayer.adoc
@@ -8,12 +8,6 @@ At time of writing, https://github.com/dasl-/piwall2/blob/5625b8887f528f671b7944
omxplayer --crop {0} --adev {1} --display {2} --vol {3} --aspect-mode stretch --no-keys --timeout 30 --threshold 0.2 --video_fifo 35 --genlog pipe:0
....
-Of particular note are the `threshold` and `video_fifo` options:
-....
123
@dasl-
dasl- / sqlite.schema
Last active September 15, 2021 04:17
volume state store experiments
% sudo sqlite3 piwall2.db
SQLite version 3.27.2 2019-02-25 16:06:06
Enter ".help" for usage hints.
sqlite> .schema
CREATE TABLE schema_version (version INTEGER);
CREATE TABLE playlist_videos (
playlist_video_id INTEGER PRIMARY KEY,
create_date DATETIME DEFAULT CURRENT_TIMESTAMP,
url TEXT,
thumbnail TEXT,
Data from 2021-08-28 (4 TVs in the tv wall):
"lcd soundsystem - home" out of sync startups w/ parallel ytdl (no sleeps)
set 1:
6/20
set 2:
2/20
set 3:
#!/usr/bin/env python3
import sys
import argparse
import os
import time
# This is necessary for the imports below to work
root_dir = os.path.abspath(os.path.dirname(__file__) + '/..')
sys.path.append(root_dir)
@dasl-
dasl- / subprocess.Popen and start_new_session.md
Created August 9, 2021 00:36
subprocess.Popen's start_new_session

with subprocess.Popen's start_new_session set to True (output via ps -efjxa):

 PPID   PID  PGID   SID TTY      TPGID STAT   UID   TIME COMMAND
    1   561   561   561 ?           -1 Ss       0   0:00 /usr/sbin/sshd -D
  561  7432  7432  7432 ?           -1 Ss       0   0:00  \_ sshd: pi [priv]
 7432  7450  7432  7432 ?           -1 S     1000   0:02  |   \_ sshd: pi@pts/0
 7450  7451  7451  7451 pts/0    12152 Ss    1000   0:06  |       \_ -zsh LC_TERMINAL_VERSION=3.4.8 LANG=en_GB.UTF-8 LC_TERMINAL=iTerm2 USER=pi LOGNAME=pi HOME=/home/pi PATH=/usr/local/bin:/usr/bin:/bin:/
 7451 12152 12152  7451 pts/0    12152 S+    1000   0:02  |           \_ python3 ./broadcast --url https://www.youtube.com/watch?v=53yEyj0mjfo LC_TERMINAL_VERSION=3.4.8 LANG=en_GB.UTF-8 LC_TERMINAL=iTerm2
12152 12177 12177 12177 ?           -1 Ss    1000   0:00  |               \_ /usr/bin/bash -c ffmpeg -i <(yt-dlp --extractor-args youtube:player_client=android 'https://www.youtube.com/watch?v=53yEyj0mjfo
from dbus_next.message import Message, MessageType
from dbus_next.aio import MessageBus
import asyncio
import json
import time
loop = asyncio.get_event_loop()
# sending messages to omxplayer via dbus with
1
4
3
this is a test