Skip to content

Instantly share code, notes, and snippets.

View MrMusic25's full-sized avatar

Kyle Krattiger MrMusic25

View GitHub Profile
@MrMusic25
MrMusic25 / USB-convert-1.4.ps1
Created May 24, 2016 23:34
A script written for PowerShell that converts/copies files from an m3u file to an output directory in mp3 format.
# USB-convert-1.4.ps1
# Script to convert files in an m3u playlist to a USB stick in MP3 formatting
#
# Usage .\USB-convert-1.4.ps1 <OPTIONS>
# The program will ask you to input the variables, no need for there to be arguments
#
# 'artist', 'album', 'no-preserve' argument decides whether artist and album folders will be preserved
# Names should be self-explanatory, artist preserves artist folder, album preserves artist AND album, no-preserve preserves nothing. Default (blank) option is artist.
#
# Changelog:
@MrMusic25
MrMusic25 / USB-Convert-1.2.ps1
Created October 5, 2015 22:31
A PowerShell script that will convert all the files from an m3u playlist to MP3 and output them to a specified folder
# USB-convert-1.2.ps1
# Script to convert files in an m3u playlist to a USB stick in MP3 formatting
#
# Usage .\USB-convert-1.2.ps1 OR .\USB-convert-1.2.ps1 <m3u_playlist> <output_directory> <a, b, c, or blank>
# The program will ask you to input the variables, no need for there to be arguments
#
# "a, b, or c" argument decides whether artist and album folders will be preserved
# a = no file preservation, b = preserve artist folder, c = preserve artist and album folder
# NOTE! If the third argument is missing, script will assume no preservation of folders
#
@MrMusic25
MrMusic25 / USB-convert-1.1.ps1
Created September 23, 2015 06:40
Scipt to convert songs in an iTunes m3u playlist to mp3 in an output directory.
# USB-convert-1.1.ps1
# Script to convert files in an m3u playlist to a USB stick in MP3 formatting
#
# Usage .\USB-convert-1.1.ps1 OR .\USB-convert-1.1.ps1 <m3u_playlist> <output_directory>
# The program will ask you to input the variables, no need for them to be arguments
#
# Changelog:
# v1.1: - Switch from taglib-sharp and VLC to using ffmpeg to preserve id3 tags
# - Files can now be entered from the command line, that way you can automate the automation!
# - If arguments are passed, script will start automatically unless a check fails
@MrMusic25
MrMusic25 / USB-convert-1.0.ps1
Last active September 3, 2015 23:13
Script to convert files in an m3u playlist to a USB stick in MP3 formatting
# USB-convert-1.0.ps1
# Script to convert files in an m3u playlist to a USB stick in MP3 formatting
#
# Usage .\USB-convert-1.0.ps1
# The program will ask you to input the variables, no need for them to be arguments
#
# Look at 'function intro' for more info
# v1.0 Sept. 3, 2015 15:35 PST
# Made by Kyle Krattiger (https://github.com/mrmusic25)
# Script found on (https://gist.github.com/mrmusic25)
@echo off
::Variables for the script
set n=3
set vlc=C:\Program Files\VideoLAN\VLC\vlc.exe
set file=
:intro
echo This batch file will read an m3u file and convert the contents.
echo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~