Activity Stream
48,167 MEMBERS
6936 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Member

    Default [linux] Create video thumbnails for all video in a specific folder

    Need totem installed

    - Copy the following script and save it as videothumb.sh

    PHP Code: 
    #!/bin/bash

    for video in "$1"/*.avi;
    do
    file=${video##*/
    }
    wext=${file%%.*}
    totem-video-thumbnailer -g 18 -s 200 "$video" "$wext".png
    done

    for video in "$1"/*.mpg;
    do
    file=${video##*/
    }
    wext=${file%%.*}
    totem-video-thumbnailer -g 18 -s 200 "$video" "$wext".png
    done

    for video in "$1"/*.mpeg;
    do
    file=${video##*/
    }
    wext=${file%%.*}
    totem-video-thumbnailer -g 18 -s 200 "$video" "$wext".png
    done 
    - Move it to folder /bin

    - Make it executable
    Code: 
    chmod +x videothumb.sh
    Usuage:

    Code: 
    videothumb.sh <folder>
    Snell Reviewed by Snell on . [linux] Create video thumbnails for all video in a specific folder Need totem installed - Copy the following script and save it as videothumb.sh #!/bin/bash for video in "$1"/*.avi; do file=${video##*/} wext=${file%%.*} Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Member
    don't we need to install totem-video-thumbnailer first?

  4.     
    #3
    Member
    Install just totem (which is normally installed by default)

  5.     
    #4
    Member
    Website's:
    wscripts.net damnlolscript.com lulzjet.com
    thanks, but this is only for avi, mpg and mpeg?
    also, can i save it as jpeg?

  6.     
    #5
    Member
    If you want to add other video extension

    add the following code at the end and replace mpeg with your desired video extension (it must be supported by totem)

    PHP Code: 
    for video in "$1"/*.mpeg;
    do
    file=${video##*/
    }
    wext=${file%%.*}
    totem-video-thumbnailer -g 18 -s 200 "$video" "$wext".png
    done 
    Yes, you can have the output to jpeg or jpg

    by changing all png throughout the script by jpeg or jpg

    -----

    If you want to reduce the file size, change 200 (which is the width of each thumbnail) and 18 (which is the number of thumbnail to be taken) to a lower value

  7.     
    #6
    Member
    thanks man im sure i will try this

  8.     
    #7
    Member
    Website's:
    google.com
    any tools similar like this for windows server 2008 ?

  9.     
    #8
    Banned
    google movie thumbnailer

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 11 tips to create a video blog that brings!
    By errabbaa in forum Webmasters, Money Making
    Replies: 1
    Last Post: 4th Sep 2012, 01:22 AM
  2. how to create video thumbnails in ubuntu
    By asprilla in forum Tutorials and Guides
    Replies: 3
    Last Post: 20th Apr 2012, 04:16 PM
  3. Create thumbnail of a video stored in a server?
    By Sukitha in forum Technical Help Desk Support
    Replies: 2
    Last Post: 16th Jul 2011, 10:11 AM
  4. How to Convert HD Video Between HD Video and General Video
    By shockwavekunal51 in forum General Discussion
    Replies: 0
    Last Post: 14th Jan 2011, 05:02 AM
  5. [Hiring] a guy know how to create pop-up page video
    By warezme in forum Completed Transactions
    Replies: 1
    Last Post: 7th Oct 2010, 03:37 PM

Tags for this Thread

BE SOCIAL