Results 1 to 2 of 2

Thread: Bash video screenshots maker

  1. #1
    Join Date
    Nov 2006
    Beans
    17
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Bash video screenshots maker

    Hello,

    I need to make png format screenshots on all videos. And the problem is that there are about 300 files in totals. What I want to do is to take a single snapshot of the movie frame 1:50 minute and put same name as video but diferrent extension (png). I know I should make a bash script for this, but any suggestions which application should I use? Or even better way maybe you did something same and can share the script? I use OGG theora format to all my videos.

    Thanks for help, hope I'll be responded here

  2. #2
    Join Date
    Nov 2006
    Beans
    17
    Distro
    Kubuntu 8.10 Intrepid Ibex

    Re: Bash video screenshots maker

    OK, found how to do it with ffmpeg. Anyway, sorry for flooding forum, but if it's interesting here's the web page:
    http://code.coneybeare.net/how-to-ge...s-using-ffmpeg

    Thanks

    for k in $(ls -1 | sed 's/\(.*\)\..*/\1/'); do avconv -ss 00:1:50 -t 1 -i $k.ogg -f mjpeg images/$k.png; done
    Does the trick
    Last edited by rokixz; March 10th, 2012 at 10:22 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •