you are here: codestackercodes [RSS] → tag convert [RSS]

convert an ISO file to DMG format in terminal

hdiutil convert /path/imagefile.iso -format UDRW -o /path/convertedimage.dmg

convert a DMG file to ISO in terminal

hdiutil convert /path/imagefile.dmg -format UDTO -o /path/convertedimage.iso

batch convertion: ffmpeg avi -> mpg

#!/bin/sh
for f in *.flv;
do
echo "Processing $f"
ffmpeg -i "$f" -target ntsc-dvd "${f%.flv}.mpg"
done
Displaying all 3 Code