Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-02-2012, 04:30 AM   #1
LQ Newbie
Registered: Mar 2012
Posts: 3

Rep: Reputation: Disabled
image%d problem

Hi, I am rather new to linux, and now i have a problem, or at least, I dont understand what I am doing wrong

I have used this:
ffmpeg -i image%d.png -vcodec huffyuv test.avi
to some png's numbered 1-459 (image1.png..)

and this has worked fine

but when I try to do the same

to some png's numbered 1001-1285 (image1001.png..)

I get:

image%d.png: No such file or directory
I understand that is something I should understand, now I am mostly on a copy-and-paste-code-and-kind-of-understanding-the-functions level, so if someone can direct me to a place on the internet, where I can get a basic understanding of this, I would be grateful
Old 04-02-2012, 05:08 AM   #2
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
The main problem is that the images must start with one 'image1.png'...

For the '%d', it comes from C programming, and is used for printing integers. For intricacies see:

I would rename the images to start from '1'. If you need a command to do this, say so.
Old 04-02-2012, 05:10 AM   #3
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
Presuming that it would deal with leading zeroes, can you not just use "image1%d.png"? Obviously not a universal fix, but should work here, I'd like to think.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Restoration Problem jhaynes Red Hat 11 06-21-2011 07:22 AM
Image setting problem ngaisteve1 Ubuntu 4 04-24-2009 11:37 PM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
problem finding the right CD image inspiredbymetal Debian 2 12-24-2005 06:16 AM
dd image problem eksa Linux - Software 2 12-02-2005 11:18 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration