snippets / SebDE / 

All SebDE's snippets (2)

  1. Make screenshots of videos with mplayer

    Makes screenshots after 2 seconds playing the videos.

    1 for i in *.avi; do (sleep 2 && echo -n s && sleep 0.1 && mv shot0001.png "$i"".png" && echo q) | mplayer -vf screenshot "$i"; done
    first posted by SebDE to shell mplayer screenshot video bash ... saved by 1 person ... 0 comments ... 7 months, 3 weeks
  2. get gnome thumbnail filename for a file

    usage: thumb-path "filename"

    1 alias thumb-path "python -c \"import gnome.ui, gnomevfs, os.path, sys; print gnome.ui.thumbnail_path_for_uri(gnomevfs.get_uri_from_local_path(os.path.abspath(sys.argv[1])), 'normal')\""
    first posted by SebDE to python gnome thumbnail ... saved by 1 person ... 0 comments ... 7 months, 3 weeks
showing 10, 25, 50 items per pages

Pages : 1