Skip to content

Instantly share code, notes, and snippets.

@nerdEd
Created February 8, 2009 04:30
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 nerdEd/60182 to your computer and use it in GitHub Desktop.
Save nerdEd/60182 to your computer and use it in GitHub Desktop.
# Convert all dvdmedia files in the current directory to iso images
# OSX only
# .dvdmedia files are really just folders that hold the VIDEO_TS/AUDIO_TS
# but adding .dvdmedia make OSX do nice things
movie_directory = Dir.open( Dir.pwd )
movie_directory.entries.each do |movie|
if movie.include? '.dvdmedia' then
movie_name = movie.chomp '.dvdmedia'
puts movie + " --> " + movie_name
result = `hdiutil makehybrid -udf -udf-volume-name #{movie_name} -o #{movie_name} #{movie}`
puts result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment