/ Published in: Bash
URL: to_flv
- Save under .gnome2/nautilus-scripts/
- Right click some video file
- Select Scripts->toFlv
Works with multiple files.
Expand |
Embed | Plain Text
#!/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"`
Comments
Subscribe to comments
You need to login to post a comment.

2009-08-07 Update: Optimized ffmpeg command