-
Install homebrew: http://brew.sh
-
Update homebrew. For that, in terminal, run:
brew update
- name: Set Europe/Moscow timezone | |
timezone: name=Europe/Moscow | |
become: yes | |
# Comment this out after the first run | |
- name: Upgrade all default packages | |
apt: | |
upgrade: yes | |
update_cache: yes |
# Usage: ffmpeg $(( echo input1.mp4; echo input2.mp4 ) | python3 concat_overlapping_video_framemd5_demuxer.py concat_file.txt) -y -an output.mp4 | |
import os | |
import sys | |
import subprocess | |
ffmpeg_concat_file, md5_last_frame = open(sys.argv[1], 'w'), None | |
for video_path in map(os.path.abspath, list(map(str.strip, sys.stdin))): | |
framemd5 = subprocess.check_output(['ffmpeg', '-nostats', '-hide_banner', '-i', video_path, '-an', '-f', 'framemd5', '-c', 'copy', '-'], stderr = open(os.devnull, 'w')) | |
inpoint, tb_num, tb_den = 0, 1, 1 |
Array.prototype.filter.call(document.getElementsByClassName('video-abstract-preview'), function(el) { el.style.height = 'auto'; }); |
Install homebrew: http://brew.sh
Update homebrew. For that, in terminal, run:
brew update
require 'json' | |
# batch-renaming files like | |
# 254--08.00-08.30--Комиссия.mp4 | |
# to | |
# 20c6655a-4b0d-11e1-8a16-001999c6cab9/1330833600-1330835400.mp4 | |
# | |
File.read("spec/sample_files/json_results.txt").lines.map do |line| | |
JSON.parse(line) | |
end.sort_by { |json| json["video_start"] }.each do |json| |
diff --git a/Library/Formula/gst-plugins-ugly.rb b/Library/Formula/gst-plugins-ugly.rb | |
index bad2771..c0ca39e 100644 | |
--- a/Library/Formula/gst-plugins-ugly.rb | |
+++ b/Library/Formula/gst-plugins-ugly.rb | |
@@ -34,7 +34,7 @@ class GstPluginsUgly < Formula | |
depends_on 'x264' => :optional | |
def install | |
- ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing" | |
+ ENV.append "CFLAGS", "-no-cpp-precomp -funroll-loops -fstrict-aliasing -I/usr/local/include/opencore-amrnb -I/usr/local/include/opencore-amrwb" |