View Single Post
  #8 (permalink)  
Old 28-Sep-2009, 01:00
oldcpu's Avatar
oldcpu oldcpu is online now
Global Moderator
 
Join Date: Mar 2008
Location: Europe
Posts: 10,766
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??

Quote:
Originally Posted by oldcpu View Post
Thanks ! Works like magic !!
.......
To finish this thread (apologies for not posting the code I eventually ended up using) - for a mass conversion to 1280x720 at a reasonably high bit rate, I use the following:
Code:
for i in *.mts; do ffmpeg -y -i "$i" -f avi -vcodec mpeg4 -b 8000000 -acodec ac3 -ab 128000 -s 1280x720 2009_06_21_${i/%mts/avi}; done
Typically I run that from a terminal in the directory where the mts files are kept. I typically store both the output avi and the original mts files. ... where I change the "2009_06_21_" for each directory .... I keep the mts files in directories associated with each day that I take the video.
Reply With Quote