Posted By

ping_ch on 02/24/09


Tagged

Bash flv video batch convert gnome nautilus


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

sulfurito


Nautilus Script to Convert Video to FLV


 / Published in: Bash
 

URL: to_flv

  1. Save under .gnome2/nautilus-scripts/
  2. Right click some video file
  3. Select Scripts->toFlv

Works with multiple files.

  1. #!/bin/bash
  2.  
  3. while [ $# -gt 0 ]; do
  4.  
  5. clip=$1
  6. flv_clip=`echo "$clip" | sed 's/\.\w*$/.flv/'`
  7. ffmpeg -i "$clip" -vcodec libx264 -ab 64k -ac 1 -ar 44100 -minrate 400k -maxrate 1024k -r 20 "$flv_clip"
  8. shift
  9. done
  10.  
  11. res=`zenity --notification --title="toFlv" --window-icon=info --text="FLV conversion finished"`

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: ping_ch on August 7, 2009

2009-08-07 Update: Optimized ffmpeg command

You need to login to post a comment.