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 |
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
Exact Audio Copy V1.6 from 23. October 2020 | |
EAC extraction logfile from 4. July 2022, 15:56 | |
Unknown Artist / Unknown Title | |
Used drive : ASUS BW-XXXX-X Adapter: 1 ID: 0 | |
Read mode : Secure | |
Utilize accurate stream : Yes |
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 (ffmpeg -i "%i" -vf "fps=12,setpts=0.25*PTS,scale=720:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" -loop 0 %~ni.gif) |