User Tools

Site Tools


software:mts2flv

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:mts2flv [2013/10/14 20:04] – [Manual installation] adminsoftware:mts2flv [2013/10/15 15:59] (current) admin
Line 1: Line 1:
 ====== Convert mts2flv with applescript and ffmpeg ====== ====== Convert mts2flv with applescript and ffmpeg ======
 This applescript below will per drag and drop convert mts files to flv using ffmpeg This applescript below will per drag and drop convert mts files to flv using ffmpeg
 +
 +====== Download ======
 +The scripts can be downloaded here: [[http://www.auditeon.com/xyz/mts2flv.app.zip]]. ffmpeg is already stored in the following directory:
 +  mts2flv.app/Contents/Resources/
 +For alternatives to quicktime, see here: [[http://www.rkuntz.org/pmwiki.php?n=Code.Mts2Mov]]
  
 ====== Manual installation ====== ====== Manual installation ======
   - Save the applescript, named mts2flv, from below to a directory. In Applescript editor save as Application   - Save the applescript, named mts2flv, from below to a directory. In Applescript editor save as Application
   - Copy ffmpeg into the following subdirectory of the applescript directory: %%mts2flv.app/Contents/Resources/%%   - Copy ffmpeg into the following subdirectory of the applescript directory: %%mts2flv.app/Contents/Resources/%%
-  - If not, make ffmpeg executable with:\\  chmod +x mts2flv+  - If not, make ffmpeg executable with:\\  chmod +x ffmpeg
  
 <code applescript>-- This droplet processes both files or folders of files dropped onto the applet <code applescript>-- This droplet processes both files or folders of files dropped onto the applet
Line 47: Line 52:
  set y to name of file x as text  set y to name of file x as text
  end tell  end tell
--- from http://www.petercarrero.com/content/2009/10/11/converting-mts-avchd-flv-ffmpeg + -- from http://www.petercarrero.com/content/2009/10/11/converting-mts-avchd-flv-ffmpeg 
-with timeout of 27000 seconds + display alert "Processing ..." message "Processing file " & this_item giving up after 1 
-               try + with timeout of 27000 seconds 
- do shell script ffmpeg_location & " -i " & quoted form of full_path & " -vcodec flv -f flv -r 25 -s 800x450 -aspect 16:9 -b:v 2000k -g 160 -cmp 2 -subcmp 2 -mbd 2 -trellis 2 -acodec libmp3lame -ac 2 -ar 44100 -ab 256k " & quoted form of full_path & ".mov+ do shell script ffmpeg_location & " -i " & quoted form of full_path & " -vcodec flv -f flv -r 25 -s 800x450 -aspect 16:9 -b:v 2000k -g 160 -cmp 2 -subcmp 2 -mbd 2 -trellis 2 -acodec libmp3lame -ac 2 -ar 44100 -ab 256k " & quoted form of full_path & ".flv
-end try+ end timeout
  on error the error_message number the error_number  on error the error_message number the error_number
  display dialog "Error: " & the error_number & ". " & the error_message  display dialog "Error: " & the error_number & ". " & the error_message
software/mts2flv.1381773892.txt.gz · Last modified: 2013/10/14 20:04 by admin