ffmpeg -i input.avi -vcodec libx264 -crf 24 output.avi
trim start :
ffmpeg
| <?xml version="1.0" encoding="utf-8" ?> | |
| <CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
| <CodeSnippet Format="1.0.0"> | |
| <Header> | |
| <Title>Define a curd structure</Title> | |
| <Shortcut>crudVM</Shortcut> | |
| <Description>Final Code snippet for a crud structure with C# + XAML code</Description> | |
| <Author>NNGogol</Author> | |
| <SnippetTypes> | |
| <SnippetType>Expansion</SnippetType> |
| python -c "import os; os.system('echo hello from sys'); print ('hello form python')" |
| #!/usr/bin/env python | |
| #-*- coding: UTF-8 -*- | |
| from reportlab.lib import colors | |
| from reportlab.platypus import Paragraph, SimpleDocTemplate, Table, TableStyle | |
| from reportlab.lib.styles import getSampleStyleSheet | |
| from reportlab.lib.pagesizes import A4 | |
| from reportlab.pdfbase import pdfmetrics | |
| from reportlab.pdfbase.ttfonts import TTFont |
| run this C:\Windows\system32\ctfmon.exe |
| import winsound | |
| notes = {'C':0, 'D':2, 'E':4, 'F':5, 'G':7, 'A':9, 'B':11} | |
| def play_note(note, duration=500): | |
| winsound.Beep(int(256*(2**(notes[note]/12))), duration) | |
| song = "E E F G G F E D C C D E E D D".split() | |
| for note in song: | |
| play_note(note) |
| 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) |
| 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') |
| import os | |
| import ffmpeg | |
| import click | |
| @click.command() | |
| @click.argument('fname', type=click.Path(exists=True)) | |
| def cli(fname): | |
| ''' | |
| Вытягивает видео дорожку из файла. | |
| Использование: |
| 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): | |
| ''' | |
| Вытягивает аудио дорожку из файла. |