ffmpeg -i <input_file> -ss <start_time> -to <end_time> -c:v copy -c:a copy <output_file>
ffmpeg -i <input_file> -ss <start_time> -t <duration> -c:v copy -c:a copy <output_file>
:: ---- Lines beginning with :: are comments ---- | |
:: This script is meant to make it easy to transcribe a video file using WhisperCPP. | |
:: You can simply drag a video file into the cmd window, then it will use ffmpeg to extract the audio, then transcribe using WhisperCPP and output to a text file. | |
:: | |
@echo off | |
set /p videopath="Enter the full path to the video file to transcribe: " | |
:: Remove quotes from the input path | |
set videopath=%videopath:"=% |
# ------------------------------------------------------------------------------ | |
# Adapted from https://github.com/activitynet/ActivityNet/ | |
# Original licence: Copyright (c) Microsoft, under the MIT License. | |
# ------------------------------------------------------------------------------ | |
import argparse | |
import glob | |
import json | |
import os | |
import shutil | |
import ssl |
import unittest | |
from selenium import webdriver | |
from selenium.webdriver.common.action_chains import ActionChains | |
import time | |
from selenium.webdriver.common.keys import Keys | |
class SwitchTab(unittest.TestCase): | |
def setUp(self): | |
# self.driver = webdriver.Firefox() | |
self.driver = webdriver.Chrome(chrome webdriver executable location) | |
def test_switch_tab(self): |
# Remove duplicated lines from a .vtt file generated by youtube-dl when | |
# downloading auto-subs from a Youtube video using the --write-auto-sub option | |
# This script only prints the lines so save the edited subs as: | |
# | |
# python this_script.py original_sub.vtt > new_sub.vtt | |
import re | |
import sys | |
f = open(sys.argv[1]) |
import moviepy.editor | |
from pytube import * | |
from datetime import * | |
from moviepy.editor import * | |
import moviepy.video.fx.all as vfx | |
def audioSplit(dirVideo, dirAudio): | |
video = moviepy.editor.VideoFileClip(dirVideo) | |
audio = video.audio |
import os | |
import subprocess | |
import os | |
import sys | |
import argparse | |
from pathlib import Path # Move to Parse | |
in_dir = os.path.abspath('.') |
import asyncio | |
import time | |
async def say_after(delay, what): | |
print(time.time(),'Start say_after(%s, %s)' % (delay,what)) | |
await asyncio.sleep(delay) | |
print(time.time(),what) | |
return | |
async def main(): |
You experience one or more of these symptoms
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.