Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6215461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:03:36+00:00 2026-05-24T07:03:36+00:00

As far as I can tell from the ffmpeg docs, they don’t provide a

  • 0

As far as I can tell from the ffmpeg docs, they don’t provide a way to use timestamps in the filename rather than sequential numbers. What they provide allows you to create 0001.jpg, 0002.jpg, 0003.jpg but not 2011-08-01 7:30:00.jpg, 2011-08-01 7:30:01.jpg, 2011-08-01 7:30:02.jpg. Can anyone think of a solution that could take the sequentially named files from ffmpeg and name them using their created time?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:03:37+00:00Added an answer on May 24, 2026 at 7:03 am

    On unixoid systems, you can use find + ImageMagick to identify each file and its creation date-time. ImageMagick normally has to be installed:

    find -name "*.jpg" -execdir identify -verbose {} ";" -ls | egrep "(create|^Image)" 
    Image: ./logo-text-u-sinn.4.2.do.jpg
        date:create: 2011-08-03T12:16:55+02:00
    Image: ./tasten-in-tasse_3919.jpg
        date:create: 2011-06-14T22:37:07+02:00
    

    gnu:find is available for Windows too, but not normally distributed by Microsoft. Instead, Microsoft has its own, inferior (afaik) kind of find(.exe), with very different syntax.

    So if you install gnu-find, it has to be called with the whole path, or renamed to gfind for example, to prevent name collision.

    I would write a small script

    #!/bin/bash
    name=$1 
    dt=$(identify -verbose $name grep "create:")
    datetime=${dt/*create:/}
    mv $name $datetime.jpg 
    

    which is vulnerable to filenames, including blanks, but if your files are always named 0001.jpg and so on, it will be no problem.

    The script would produce 2011-08-03T12:39:42+02:00 for example as a filename, and could be called by find:

    find -name "*.jpg" -execdir ./myscript.sh {} ";"
    

    If you don’t use/have a bash, you need to modify it accordingly.

    Warning:

    You have to be careful. If the time of 2 or more files is identical, they will be silently overriden. Of course you may build a check into your script, and maybe your filesystem can store the date more precise than in seconds-interval.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As far as I can tell the only way to convert from BitmapSource to
my problem stems from the use of wxApp as far as I can tell.
As far as I can tell, the best way to do this is do
As far as I can tell, the only use for out parameters is that
I'm learning Git coming from Perforce. As far as I can tell you must
as far as i can tell the only way to play audio on silverlight
As far as I can tell, this is isn't possible, so I'm really just
As far as I can tell the iPhone multitouch framework sends the location of
As far as I can tell i'm doing everything by the book, but the
As far as I can tell, there is no API (official or unofficial) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.