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
echo */ | wc --> Count the number of directories in a folder | |
for f in *\ *; do mv "$f" "${f// /_}"; done --> replace spaces in folder names, not recursive | |
for f in model/* ; do mv "$f" `echo "$f" | sed 's/_//g'` ; done --> Remove underscores from the file names | |
./sout.py 2>&1 | tee test.txt --> To print the logs to the terminal as well as save them to a text file |
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
import json | |
from pprint import pprint | |
import glob | |
import os | |
import shutil | |
import sys | |
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip | |
import subprocess | |
import cv2 | |
from moviepy.editor import * |
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
ffmpeg -i data/video.mp4 -vcodec h264 -b:v 1000k -acodec mp2 data/output.mp4 |