Install ffmpeg
for macOS
brew install ffmpeg
Command for scanning a single file. Will generate a log file, if there's no error, the log file will be empty.
ffmpeg -v error -i \path\to\file.avi -f null - >error.log 2>&1
<html> | |
<head> | |
<meta name="robots" content="noarchive"> | |
<head> | |
</html> |
Install ffmpeg
for macOS
brew install ffmpeg
Command for scanning a single file. Will generate a log file, if there's no error, the log file will be empty.
ffmpeg -v error -i \path\to\file.avi -f null - >error.log 2>&1
{ | |
// Config for VsCode Tailwind CSS IntelliSense extension for React | |
// Type hints for className and class attributes | |
"tailwindCSS.classAttributes": [ | |
"class", | |
"className", | |
], | |
// Type hints for variables and properties ending with *className | |
"tailwindCSS.experimental.classRegex": [ |
import argparse | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import coremltools as ct | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
# When using float16, all predicted logits are 0. To be debugged. | |
compute_precision = ct.precision.FLOAT32 | |
compute_units = ct.ComputeUnit.CPU_ONLY |
# scan a single file | |
ffmpeg.exe -v error -i \path\to\file.avi -f null 2>error.log | |
# batch scan | |
find \path\to -name "*.{mp4,mkv}" -exec sh -c "ffmpeg -v error -i '{}' -map 0:1 -f null 2>'{}.log'" \; |
img { | |
max-width: 100%; | |
height: auto; | |
vertical-align: middle; | |
font-style: italic; | |
background-repeat: no-repeat; | |
background-size: cover; | |
shape-margin: 0.75rem; | |
} |
#! /usr/bin/env bash | |
#################################################### | |
# Required Libraries | |
# | |
# library name | commands used | verified version | |
# ------------------------------------------------ | |
# ffmpeg | ffmpeg/ffprobe | 3.1.4 3.2 | |
# gpac | mp4box | 0.6.1 | |
# mp4v2 | mp4chaps | 2.0.0 |
-- Two dashes start a one-line comment. | |
--[[ | |
Adding two ['s and ]'s makes it a | |
multi-line comment. | |
--]] | |
---------------------------------------------------- | |
-- 1. Variables and flow control. | |
---------------------------------------------------- |
from threading import Thread | |
from queue import Queue | |
from typing import Any, Literal, Optional, TypeVar, Union, Generator, Generic | |
T = TypeVar("T") | |
class BackgroundGenerator(Thread, Generic[T]): | |
def __init__(self, generator: Generator[T, Any, Any], lookahead: Union[int, Literal[10]] = 10): | |
Thread.__init__(self) |
function* from(i) { while (true) { yield i; i++; } } | |
function* genFilter(gen, cond) { | |
for (let e of gen) { if (cond(e)) yield e; } | |
} | |
function* prime(gen) { | |
let head = gen.next().value; | |
yield head; | |
yield* prime(genFilter(gen, (x) => x % head !== 0)); |