One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
const readline = require('readline'); | |
const readLineAsync = () => { | |
const rl = readline.createInterface({ | |
input: process.stdin | |
}); | |
return new Promise((resolve) => { | |
rl.prompt(); | |
rl.on('line', (line) => { |
const { Builder } = require('selenium-webdriver'); | |
require('chromedriver'); | |
const Page = require('./page'); | |
(async function example() { | |
const driver = await new Builder().forBrowser('chrome').build(); | |
try { | |
const page = new Page(driver); | |
await page.openAndTestPage(); | |
} finally { |
import sys | |
import subprocess | |
def extract_audio(input_file, output_file): | |
subprocess.run(['ffmpeg', '-i', input_file, '-vn', '-acodec', 'copy', output_file]) | |
def concatenate_audio(input_file, output_file): | |
subprocess.run(['ffmpeg', '-i', f'concat:{input_file}|{input_file}', '-c', 'copy', output_file]) | |
def get_video_duration(input_file): |