Jump to content

FFmpeg: batch converting several videos all to avi and generating thumbnails


Guest kilbad

Recommended Posts

Guest kilbad

I want to setup a system on my website that deals with videos like I have created for my photo gallery..

 

My Photo Gallery

Basically, I use FTP to upload the JPG photos into a directory, and then I used a single script that generates the thumbnails using ImageMagick (via PHP system commands), and then displays those photos in the gallery.  So this whole process is very simple for me, basically I upload and I'm done!

 

My Video Gallery:: What I want..

Currently, I upload videos (which may be any format, .mov, .avi, .mpeg, etc, because I get them from different cameras/phones), and then convert them individually using FFmpeg via SSH using PuTTY.  Then, I also generate thumbnails for those videos using FFmpeg again, with syntax like this::

 

ffmpeg -1 /some/video/test.avi -y -ss 1 -t 0.01 -f mjpeg /that/videos/thumbnail.jpg

 

My question is this:: Is there a way to batch convert many different videos, of possibly different formats, with FFmpeg, all to AVI, and then batch create thumbnails for each of those videos?

 

Thank you all so much for the help!

 

Brendan

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.