LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 04-02-2012, 04:30 AM   #1
laulau
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:
Code:
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:

Code:
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
H_TeXMeX_H
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'...

http://ffmpeg.org/faq.html#How-do-I-...to-movies_003f

For the '%d', it comes from C programming, and is used for printing integers. For intricacies see:
http://www.cplusplus.com/reference/c...cstdio/printf/

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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
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.
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:18 PM.

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