ffmpeg -i input.avi -vcodec libx264 -crf 24 output.avi
trim start :
ffmpeg
#!/usr/bin/python3 | |
''' | |
.-----------. | |
.| decorator |. | |
/ '-----------' \ | |
/ \ | |
/ \ | |
/ \ | |
----' '------ |
''' | |
Made at 2020-05-07 15:31:52 | |
Asyncio Racing Show | |
run with: | |
$ clear; python3 -uB comp.py | |
''' | |
import asyncio, random, queue |
''' | |
Made at 2020-05-07 15:31:52 | |
Asyncio Racing Show | |
run with: | |
$ clear; python3 -uB comp_simple.py | |
''' |
#!/bin/bash | |
# | |
# ------------------------------------------------------ | |
# [ Дата создания: 2020-04-27 15:47:03 | |
# [ Название файла: test_my_keyboard_input.sh | |
# [ Название: Скрипт для теста консольный приложений | |
# [ Автор: nngogol | |
# ------------------------------------------------------ | |
# | |
# Интерфейс: |
# Prerequsitis | |
sudo apt-get install build-essential checkinstall | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev | |
# Prerequsitis | |
# downlaod, extract | |
sudo wget https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz | |
sudo tar xzf Python-3.8.0.tgz |
import os | |
import ffmpeg | |
import click | |
@click.command() | |
@click.option('-f', '--output_format', default='', help='format of output file') | |
@click.argument('fname', type=click.Path(exists=True)) | |
def cli(output_format, fname): | |
''' | |
Вытягивает аудио дорожку из файла. |
import os | |
import ffmpeg | |
import click | |
@click.command() | |
@click.argument('fname', type=click.Path(exists=True)) | |
def cli(fname): | |
''' | |
Вытягивает видео дорожку из файла. | |
Использование: |
s, sp, padd='*', 2, 45 | |
for i in range(5): | |
[print(' '*(padd-i), s*i, s*i, ' '*(padd-i), ' '*(padd-i), s*i, s*i, ' '*(padd-i), sep='') for i in range(1, 20, sp)] | |
[print(' '*(padd-i), s*i, s*i, ' '*(padd-i), ' '*(padd-i), s*i, s*i, ' '*(padd-i), sep='') for i in reversed(range(1, 20, sp))] | |
print('\n') |
cmd /K "cd /d %path_to_directory%\" | |
Example 1: cmd.exe /K "cd /d D:\music\" | |
Example 2: cmd.exe /K "cd /d D:\hello world\some folder\music\" | |
Example 3: cmd.exe /K "cd /d D:\music" - WRONG (no '\' at the end) |