Return to Snippet

Revision: 11929
at August 7, 2009 05:06 by ping_ch


Updated Code
#!/bin/bash

while [ $# -gt 0 ]; do

  clip=$1
  flv_clip=`echo "$clip" | sed 's/\.\w*$/.flv/'`
  ffmpeg -i "$clip" -vcodec libx264  -ab 64k -ac 1 -ar 44100 -minrate 400k -maxrate 1024k -r 20  "$flv_clip"
  shift
done

res=`zenity --notification --title="toFlv" --window-icon=info --text="FLV conversion finished"`

Revision: 11928
at February 24, 2009 04:51 by ping_ch


Initial Code
#!/bin/bash

while [ $# -gt 0 ]; do

  clip=$1
  flv_clip=`echo "$clip" | sed 's/\.\w*$/.flv/'`
  ffmpeg -i "$clip" -vcodec vp6 -ar 44100 -vb 1024k  "$flv_clip"
  shift
done

res=`zenity --notification --title="toFlv" --window-icon=info --text="FLV conversion finished"`

Initial URL
to_flv

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

Works with multiple files.

Initial Title
Nautilus Script to Convert Video to FLV

Initial Tags
Bash, video, convert

Initial Language
Bash