Cutting videos with FFMpeg without re-encoding
Here's how you use it:
./cut.sh conf2.mp4 out1.mp4 00:00:05 00:53:47Cutting videos with FFMpeg without re-encoding
Here's how you use it:
./cut.sh conf2.mp4 out1.mp4 00:00:05 00:53:47| def make_batches(seq, n): | |
| result = [] | |
| for i in range(0, len(seq), n): | |
| batch = seq[i:i+n] | |
| result.append(batch) | |
| return result |
| from concurrent.futures import ThreadPoolExecutor | |
| from tqdm import tqdm | |
| num_threads = 4 | |
| pool = ThreadPoolExecutor(max_workers=6) | |
| def map_progress(pool, seq, f): | |
| results = [] |
| from glob import glob | |
| from random import shuffle | |
| import requests | |
| coupon_codes = [ | |
| 'mlbookcamp-1', | |
| 'mlbookcamp-2', | |
| 'mlbookcamp-3', | |
| 'mlbookcamp-4', |
| FROM amazonlinux:2017.03 | |
| RUN yum -y install git \ | |
| python36 \ | |
| python36-pip \ | |
| python36-devel \ | |
| zip \ | |
| gcc \ | |
| gcc-c++ \ | |
| cmake \ |
| from glob import glob | |
| import multiprocessing | |
| from concurrent.futures import ProcessPoolExecutor | |
| import cv2 | |
| from PIL import Image | |
| import imagehash | |
| from tqdm import tqdm |
| pip install grpcio-tools | |
| wget https://github.com/tensorflow/tensorflow/archive/v1.9.0.zip -O tf-190.zip | |
| unzip tf-190.zip && rm tf-190.zip | |
| wget https://github.com/tensorflow/serving/archive/1.9.0.zip -O tf-serving-190.zip | |
| unzip tf-serving-190.zip && rm tf-serving-190.zip | |
| mv serving-1.9.0/tensorflow_serving tensorflow-1.9.0 |
| import sys | |
| import time | |
| import threading | |
| from io import StringIO | |
| from multiprocessing import Process | |
| from queue import Queue | |
| import boto3 | |
| from botocore.exceptions import ClientError |
| import sys | |
| import time | |
| from io import StringIO | |
| import subprocess | |
| from multiprocessing import Process, Pipe | |
| from threading import Thread |
| package avro; | |
| import org.apache.avro.Schema; | |
| import org.apache.avro.generic.GenericData; | |
| import org.apache.avro.generic.GenericRecord; | |
| import org.apache.avro.reflect.ReflectData; | |
| import java.util.ArrayList; | |
| import java.util.List; |