This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Correctly transcode in-device screen recordings from Android, so they | |
| # do not cause all kinds of mishaps later down the editing and rendering | |
| # pipeline. In particular, enforces a fixed framerate to avoid problems | |
| # with widely varying dynamic frame rates, which can go from anywhere | |
| # a frame every 10s of seconds to 100fps or so. Additionally, we | |
| # enforce the correct color coefficients for the transcoding to avoid | |
| # video tools to guesstimate completely nonsense transformation -- ffmpeg, | |
| # I'm looking at you here. | |
| shopt -s extglob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # TheDiveO | |
| function log { | |
| local OPTS="" | |
| if [[ "$1" = "-n" ]]; then | |
| shift; OPTS+="-n" | |
| fi | |
| MSG="$1" | |
| shift |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* modified from: https://github.com/a34729t/exp/blob/master/tunclient.c */ | |
| #define _GNU_SOURCE | |
| #include <sched.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #include <net/if.h> | |
| #include <linux/if_tun.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # (Re-) Extract frame images directly from its corresponding video media | |
| # file. The frame image filenames are expected to be in the format of | |
| # videofilename-f000000.png, that is: the filename of the video media file, | |
| # but without its extension, then followed by "-f" and a six digit frame | |
| # number (base 10), and finally the ".png" suffix. | |
| # | |
| # Copyright 2018 TheDiveO | |
| # |
NewerOlder