VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Member
    Join Date
    Nov 2008
    Location
    Russian Federation
    Search Comp PM
    How do i run mencoder or ffmpeg to make multiple snapshots from a list of .flv files ?

    E.g. I have a list

    file01.flv
    file02.flv
    file03.flv
    etc.

    and i need to have 10 snapshots for each files, starting from 0 to 9

    e.g.
    file01.flv-0.jpg
    file01.flv-1.jpg
    file01.flv-2.jpg
    etc for each of flv file

    each snapshot is made after each 3rd second

    How do i run the command ?

    Your help is very appreciated
    Quote Quote  
  2. VH Wanderer Ai Haibara's Avatar
    Join Date
    Jan 2006
    Location
    Somewhere on VideoHelp...
    Search Comp PM
    Originally Posted by zoobie
    I use vlc
    I don't think VLC allows for batch or timed snapshots, though, as the OP seems to want. At least, not that I can remember... I could be wrong.
    If cameras add ten pounds, why would people want to eat them?
    Quote Quote  
  3. Member
    Join Date
    Nov 2008
    Location
    Russian Federation
    Search Comp PM
    No, no, I'm sure this can be done from command line or with .bat file
    Has anyone experience in running commands ?
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Yep, i'm using ffmpeg,
    Code:
    ffmpeg -i video.flv  -ss 00:00:03  -vframes 1 -f image2 -y image.jpg
    -ss is the start in the video.

    And make a batch file(.bat) in the same folder as the flvs and ffmpeg.exe with
    Code:
    FOR %%F IN ("*.flv") DO ffmpeg -i %%F -ss 00:00:03 -vframes 1 -f image2 -y %%F-0.jpg 
    
    FOR %%F IN ("*.flv") DO ffmpeg -i %%F -ss 00:00:06 -vframes 1 -f image2 -y %%F-1.jpg
    
    etc
    might work then. Be sure to backup your flvs first if something goes wrong.

    and just google for ffmpeg thumbnail for several more tips.
    Quote Quote  
  5. Member
    Join Date
    Nov 2008
    Location
    Russian Federation
    Search Comp PM
    thanks, along with you help, i've found proper command working

    Code:
    for f in *.flv; do ffmpeg -i $f -an -ss 00:00:01 -an -r 1 -vframes 1 -y -f image2 -s 190x142 $f-0.jpg; done
    for f in *.flv; do ffmpeg -i $f -an -ss 00:00:03 -an -r 1 -vframes 1 -y -f image2 -s 190x142 $f-1.jpg; done
    etc.[/quote]
    Quote Quote  
  6. Member
    Join Date
    Mar 2009
    Location
    Australia
    Search Comp PM
    Hi all

    I've just started using AVIDEMUX (http://avidemux.org/) - my initial goal was to find a tool that would actually do simple edit tasks in an FLV. It does it just fine.

    There is also a simple function in the main file menu to grab a jpg snapshot of same file type. BEAUTY!

    There also seems to be a great range of other tools / codecs /filters etc in there. As an example I ran a conversion of the same .vob file to FLV through both avidemux and Sorenson, my main compression tool. Sorenson had a better image finish and smaller file size (by about 25 %) but I expect with a bit of fooling around both could be improved with avidemux. Interestingly, the conversion time in demux was much quicker than Sorenson.

    Relatively easy GUI even for an unprogrammy numbnuts like me.

    Would be interested in others' feedback on new use or existing users.

    Cheers
    8)
    Quote Quote  
  7. Member
    Join Date
    Mar 2009
    Location
    Australia
    Search Comp PM
    Originally Posted by imediat_rob
    Hi all

    I've just started using AVIDEMUX (http://avidemux.org/) - my initial goal was to find a tool that would actually do simple edit tasks in an FLV. It does it just fine.

    There is also a simple function in the main file menu to grab a jpg snapshot of same file type. BEAUTY!

    There also seems to be a great range of other tools / codecs /filters etc in there. As an example I ran a conversion of the same .vob file to FLV through both avidemux and Sorenson, my main compression tool. Sorenson had a better image finish and smaller file size (by about 25 %) but I expect with a bit of fooling around both could be improved with avidemux. Interestingly, the conversion time in demux was much quicker than Sorenson.

    Relatively easy GUI even for an unprogrammy numbnuts like me.

    Would be interested in others' feedback on new use or existing users.

    Cheers
    8)
    ...oh and by the way, you can actually splice/apend flvs together in avidemux, something that Sorenson definitely can't do!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!