Skip to content

Instantly share code, notes, and snippets.

@mat127
mat127 / sei.awk
Last active November 24, 2023 09:41
Timestamp SEI (MISB ST 604) parser
#!/bin/awk -f
#
# Parses the ffmpeg trace_headers output and displays timestamp SEI (MISB ST 0604)
# contents in a readable format:
#
# ${ts.identifier}: ${datetime.of.timestamp}: ${timestamp.value}
# cf848278-ee23-306c-9265-e8fef22fb8b8: Fri Nov 24 09:40:48 UTC 2023 : 1700818848602427904
#
# Expects the H.265 SEI i.e. nano precision timestamps. For the H.264 (microseconds precision)
# update the timestamp dividing and identifier dump.
@mat127
mat127 / jenkins_build_trigger.sh
Created December 11, 2020 08:17
Mercurial changegroup hook triggering a Jenkins job build only if particular branch is changed
#!/bin/sh
JENKINS_URL=http://hg.somewhere.net
JENKINS_TOKEN=token
JENKINS_JOB=""
HG_REPOSITORY=/path/to/repository
HG_BRANCH=""
HG_NODE=""