A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
@echo off | |
:: This script converts all .mkv files in the current directory to .mp4 format | |
:: using ffmpeg. Make sure ffmpeg is installed and available in the system PATH. | |
setlocal enabledelayedexpansion | |
:: Loop through all .mkv files in the current directory | |
for %%f in (*.mkv) do ( | |
:: Set the base name by removing the file extension | |
set "basename=%%~nf" |
@echo off | |
:: Enable delayed expansion for dynamic variable handling | |
setlocal enabledelayedexpansion | |
:: Loop through all .wav files in the current directory | |
for %%f in (*.wav) do ( | |
:: Extract the base name without extension | |
set "basename=%%~nf" | |
echo Converting "%%f" to "!basename!.mp3" |
# PT linux | |
for i in *.MOV; do ffmpeg -i "$i" "${i%.*}.mp4"; done | |
# PT windows - cmd | |
for %f in (*.mkv) do ffmpeg -i "%f" -vn -acodec libmp3lame -q:a 4 "%~nf.mp3" |
Redenumirea_fisierelor_dupa_taken_date_sau_modify_date |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
import os | |
import subprocess | |
def removeSpacesandRenameFileFromFileName (oldFile): | |
newFileName = oldFile.replace(' ','_') | |
os.rename(oldFile,newFileName) | |
return newFileName | |
fileList = os.listdir(os.getcwd()) |