Skip to content

Instantly share code, notes, and snippets.

@base10
Created January 22, 2017 21:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save base10/05f2c0cdc590b63f480df937fbf3c461 to your computer and use it in GitHub Desktop.
Save base10/05f2c0cdc590b63f480df937fbf3c461 to your computer and use it in GitHub Desktop.
Throwaway Scripting
#!/usr/bin/env ruby
files = [
{
source: "Caribou _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-j755GoKSrUE.mp4",
destination: "Caribou_Pitchfork_Music_Festival_Paris_2014.m4a"
},
{
source: "Four Tet Boiler Room London DJ Set-s_Bn6FlvflM.mp4",
destination: "Four_Tet_Boiler_Room.m4a"
},
{
source: "Four Tet _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-_z6BXpBDSGY.mp4",
destination: "Four_Tet_Pitchfork_Music_Festival_Paris_2014.m4a"
},
{
source: "Hot Chip _ Full Set _ Pitchfork Music Festival Paris 2013 _ PitchforkTV-ZbpoozOvKqE.mp4",
destination: "Hot_Chip_Pitchfork_Music_Festival_Paris_2013.m4a"
},
{
source: "Massive Attack - Live at Melt Music Festival (July 2010)-TqYA7uJUbqE.mp4",
destination: "Massive_Attack_Live_at_Melt_Music_Festival_2010.m4a"
},
{
source: "Mogwai _ Full Set _ Pitchfork Music Festival Paris 2014 _ PitchforkTV-T2aFPe7mrhg.mp4",
destination: "Mogwai_Pitchfork_Music_Festival_Paris_2014.m4a"
},
{
source: "massive attack and portishead live bristol-JeAEv1R4wMY.mp4",
destination: "Massive_Attack_and_Portishead_Live_in_Bristol.m4a"
},
{
source: "Explosions In The Sky Live at AB - Ancienne Belgique (Full concert)-VUuz68zkJu8.mkv",
destination: "Explosions_in_the_Sky_Live_at_Ancienne_Belgique.m4a"
}
]
files.each do |file|
`ffmpeg -i "#{file.fetch(:source)}" -vn -acodec copy converted/#{file.fetch(:destination)}`
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment