Skip to content

Instantly share code, notes, and snippets.

@dasl-
dasl- / test.adoc
Created July 19, 2021 21:09
test.adoc
this is a test
diff --git a/src/main/java/com/etsy/PlackBot.java b/src/main/java/com/etsy/PlackBot.java
index 7186516..54d6286 100644
--- a/src/main/java/com/etsy/PlackBot.java
+++ b/src/main/java/com/etsy/PlackBot.java
@@ -177,36 +177,38 @@ public class PlackBot extends AbstractPircBot
});
// Listen for new reactions added
session.addReactionAddedListener(new ReactionAddedListener() {
@Override
03:08:26 T:18446744072785052086 DEBUG: DllBcm: Using omx system library
03:08:26 T:18446744072785053278 DEBUG: DllOMX: Using omx system library
03:08:26 T:18446744072785053938 DEBUG: DllAvFormat: Using libavformat system library
03:08:26 T:18446744072785055315 DEBUG: DBus connection succeeded
03:08:26 T:18446744072785055372 DEBUG: DllAvUtilBase: Using libavutil system library
03:08:26 T:18446744072785055391 DEBUG: DllAvCodec: Using libavcodec system library
03:08:26 T:18446744072785055408 DEBUG: DllAvFormat: Using libavformat system library
03:08:34 T:18446744072792962392 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0x12f9c30
03:08:34 T:18446744072792962738 DEBUG: OMXClock::OMXStop
03:08:34 T:18446744072792962896 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
[piwall2] ~/piwall2 % cat omxplayer.log | grep Normal
02:46:07 T:2030649662 DEBUG: Normal M:0 (A:-4503599627370496 V:-4503599627370496) P:1 A:0.00 V:0.00/T:5.00 (0,0,0,0) A:0% V:0% (0.00,6.34)
02:46:08 T:2032416871 DEBUG: Normal M:-200000 (A:1323544 V:1407944) P:1 A:1.52 V:1.61/T:5.00 (0,0,0,0) A:0% V:0% (1.34,6.34)
02:46:08 T:2032436528 DEBUG: Normal M:-200000 (A:1950489 V:1858389) P:1 A:2.15 V:2.06/T:5.00 (0,0,0,0) A:0% V:1% (1.90,6.34)
02:46:10 T:2034023659 DEBUG: Normal M:-200000 (A:3320456 V:2659189) P:1 A:3.52 V:2.86/T:5.00 (0,0,0,0) A:0% V:0% (3.20,6.34)
02:46:12 T:2035785588 DEBUG: Normal M:-200000 (A:4969078 V:2659189) P:1 A:5.17 V:2.86/T:5.00 (0,0,1,0) A:0% V:2% (4.87,6.34)
02:46:14 T:2037727017 DEBUG: Normal M:-200000 (A:6130078 V:2659189) P:1 A:6.33 V:2.86/T:5.00 (0,0,1,0) A:0% V:4% (5.98,6.34)
02:46:15 T:2039036348 DEBUG: Normal M:-200000 (A:6130078 V:2659189) P:1 A:6.33 V:2.86/T:5.00 (0,0,1,0) A:1% V:6% (5.98,6.34)
02:46:17 T:2041047108 DEBUG: Normal M:-200000 (A:6130078 V:265918
@dasl-
dasl- / gist:0e52feccff6caacecf0955011f925aeb
Created July 15, 2021 02:56
omxplayer --adev {0} --display {1} --crop {2} --no-keys --threshold 5 --genlog pipe:0
02:46:00 T:2024267445 DEBUG: DllBcm: Using omx system library
02:46:00 T:2024268660 DEBUG: DllOMX: Using omx system library
02:46:00 T:2024269317 DEBUG: DllAvFormat: Using libavformat system library
02:46:00 T:2024270690 DEBUG: DBus connection succeeded
02:46:00 T:2024270746 DEBUG: DllAvUtilBase: Using libavutil system library
02:46:00 T:2024270765 DEBUG: DllAvCodec: Using libavcodec system library
02:46:00 T:2024270783 DEBUG: DllAvFormat: Using libavformat system library
02:46:07 T:2030605103 DEBUG: COMXCoreComponent::Initialize OMX.broadcom.clock input port 80 output port 81 m_handle 0xcacc30
02:46:07 T:2030605537 DEBUG: OMXClock::OMXStop
02:46:07 T:2030605776 DEBUG: OMXClock::OMXSetSpeed(0.00) pause_resume:1
video profiling
See these results in a spreadsheet: https://docs.google.com/spreadsheets/d/1vP3O_LLLR4p_q1lOpIfwUwL1d7bTHbV2OFuT1eG205Q/edit#gid=0
how to:
mbuffer high water mark:
dsh -r ssh -c -M -m [email protected],[email protected],[email protected],[email protected],[email protected] "cat /tmp/mbuffer.out | awk '{ print \$14; }' | sort -n | tail -2" 2>/dev/null
socket receive buffer high water mark:
diff --git a/perf/micro/meson.build b/perf/micro/meson.build
index 5ee45b5..13bd27c 100644
--- a/perf/micro/meson.build
+++ b/perf/micro/meson.build
@@ -50,6 +50,7 @@ perf_micro_headers = [
'zrusin-another.h',
]
+incboilerplate = include_directories('boilerplate')
libcairoperfmicro = static_library('cairo-perf-micro',
#!/bin/bash
#
# Build gstreamer for Raspberry Pi
# Edit the SRC and DEST environment variables at the top and then
# run this script. You'll need to add the following two envronment
# variables to your .profile
#
# LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${PREFIX}/lib"
# PATH="${PATH}:${PREFIX}/bin"
#
#!/usr/bin/env bash
# summary of my testing for: https://www.raspberrypi.org/forums/viewtopic.php?f=67&t=309723
sudo apt update
sudo apt install gstreamer1.0-tools gstreamer1.0-plugins-base-apps gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
gst-launch-1.0 --version
# gst-launch-1.0 version 1.14.4
# GStreamer 1.14.4
Jun 1 20:23:56 pifi PIFI_QUEUE[19688]: 2021-06-01T20:23:56.476862+00:00 [info] [VideoProcessor__08Z8D] Starting process_and_play for url: https://www.youtube.com/watch?v=rR8s72aouNE, VideoSettings: {'_logger': <pifi.logger.Logger object at 0x731e85b0>, 'color_mode': 'color', 'display_width': 28, 'display_height': 18, 'brightness': 3, 'flip_x': False, 'flip_y': False, 'log_level': 'verbose', 'should_play_audio': True, 'should_save_video': False, 'should_check_playlist': True, 'should_predownload_video': False}
Jun 1 20:23:56 pifi PIFI_QUEUE[19688]: 2021-06-01T20:23:56.533309+00:00 [info] [VideoProcessor__08Z8D] Deleting orphaned ffmpeg_to_python_fifos...
Jun 1 20:23:56 pifi PIFI_QUEUE[19688]: 2021-06-01T20:23:56.577770+00:00 [info] [VideoProcessor__08Z8D] Deleting orphaned incomplete video downloads...
Jun 1 20:23:56 pifi PIFI_QUEUE[19688]: 2021-06-01T20:23:56.623785+00:00 [info] [VideoProcessor__08Z8D] Calculating video fps...
Jun 1 20:23:56 pifi PIFI_QUEUE[19688]: 2021-06-01T20:23:56.624134+00:00 [info]