View Single Post
  #9 (permalink)  
Old 13-Oct-2009, 14:42
oldcpu's Avatar
oldcpu oldcpu is online now
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,741
oldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of lightoldcpu is rated a glorious beacon of light
Default Re: process multiple files from one command line??

Just a further update to this thread.

After a company function, in order to share the videos I took, I converted all of my videos to 3 different formats: DVD, SVCD, and VCD compatible. The command lines to do that were all very similar:
  • for i in *.mts; do ffmpeg -y -i "$i" -target pal-dvd 2009_10_08dvd_${i/%mts/mpg}; done #dvd
  • for i in *.mts; do ffmpeg -y -i "$i" -target pal-svcd 2009_10_08svcd_${i/%mts/mpg}; done #svcd
  • for i in *.mts; do ffmpeg -y -i "$i" -target pal-vcd 2009_10_08vcd_${i/%mts/mpg}; done #vcd
The #dvd/svcd/vcd at the end is a comment and should not be included
Reply With Quote