Nautilus Script to Convert Video to FLV


/ Published in: Bash
Save to your folder(s)

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

Works with multiple files.


Copy this code and paste it in your HTML
  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"`

URL: to_flv

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.