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 %input% -vn -filter_complex amix=inputs=2:duration=longest -ac 2 -c:a libfdk_aac -cutoff 20000 -afterburner 1 -vbr 0 output.m4a |
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
| for ($i=1; $i -le 34; $i++){$out = new-object byte[] 1073742000; (new-object Random).NextBytes($out);[IO.File]::WriteAllBytes("random_data_file$i.txt", $out)} |
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 ffmpeg # pip install ffmpeg-python (not to be cinfused with python) | |
| import psutil # pip install psutil (might require wheels, which might be incompatible with versions above Python 3.9) | |
| import os | |
| import glob | |
| import csv | |
| # The path in which you would like to look for video files | |
| directory = 'M:\VIDEO\MOVIES' | |
| # The file types you want to check |
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
| from mutagen.mp3 import MP3 | |
| from mutagen.id3 import ID3, APIC | |
| audio_path = 'sample_original - Copy.mp3' | |
| audio = MP3(audio_path, ID3=ID3) | |
| # Remember to change to image/jpeg if JPG or image/png if PNG. | |
| # https://mutagen-specs.readthedocs.io/en/latest/id3/id3v2.4.0-frames.html#attached-picture | |
| # Remember that no description should be similar. |
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 subprocess | |
| ffmpeg_options = [ | |
| 'ffmpeg', | |
| "-i", 'C:\\Users\\admin\\Desktop\\your_file.xyz', | |
| '-c:v', 'copy', | |
| '-c:a', 'copy', | |
| '-y', | |
| 'out.mp4' | |
| ] |
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 os | |
| import subprocess | |
| import shutil | |
| from os import startfile | |
| import codecs | |
| # Check if FLAC.exe exists in PATH | |
| if not shutil.which('flac') is not None: | |
| print('\nSeems like FLAC.exe is missing...') | |
| print('Please download FLAC from: https://xiph.org/flac/download.html') |
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
| for /r %i in (*.mkv) do (mkvpropedit "%i" --edit track:a1 --set "name=") |
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
| SUBTAG | LANGUAGE | |
|---|---|---|
| aa | Afar | |
| ab | Abkhazian | |
| ae | Avestan | |
| af | Afrikaans | |
| ak | Akan | |
| am | Amharic | |
| an | Aragonese | |
| ar | Arabic | |
| as | Assamese |
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
| 1 | |
| 00:00:01,043 --> 00:00:03,837 | |
| [ Gunfire, explosion ] | |
| 2 | |
| 00:00:04,838 --> 00:00:06,757 | |
| Get us out of here. | |
| I'll hold them off. | |
| 3 |