LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2005, 04:30 PM   #1
dovkruger
LQ Newbie
 
Registered: Nov 2003
Location: NY area
Distribution: redhat EE3, Fedore Core 4
Posts: 23

Rep: Reputation: 15
converting to mpg using convert


the command:

convert *.png out.gif

works and creates an animgif

the command:

convert *.png out.mpg

does not work because it cannot find the command mpg2encode
is not found. The only reference I can find to that is an obsolete (unsupported) mpeg client at mpeg.org.

I assume there are other ways to get the convert utiltiy to convert a sequence of png to an mpeg, or perhaps a totally different program in Linux?
 
Old 10-06-2005, 04:58 PM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
Why is this in the Programming forum? You're much better off posting in the forum related to what you're asking.
 
Old 10-06-2005, 10:28 PM   #3
Dave Kelly
Member
 
Registered: Aug 2004
Location: Todd Mission Texas
Distribution: Linspire
Posts: 215

Rep: Reputation: 31
Re: converting to mpg using convert

Quote:
Originally posted by dovkruger
I assume there are other ways to get the convert utiltiy to convert a sequence of png to an mpeg, or perhaps a totally different program in Linux?
Walk me through why you think that a sequence of png formated images can be make into an animated image. In particularly a video movie image format.
 
Old 10-07-2005, 02:34 PM   #4
dovkruger
LQ Newbie
 
Registered: Nov 2003
Location: NY area
Distribution: redhat EE3, Fedore Core 4
Posts: 23

Original Poster
Rep: Reputation: 15
>Why is this in the Programming forum?
The programming forum is a hodge podge of stuff. There does not appear to be any other forum as relevant to this question. I might well ask why various problems in C++, Java, etc unrelated to Unix are here. This is a UNIX-based programming question. I want to write a shell script, or perl, or C++ or Java for that matter, program to convert a sequence of images to an mpg. I am fairly sure this is reasonably easy to do, and have no desire to do it at the library level.

>Walk me through why you think that a sequence of png formated images can be make into an animated image
???
Huh? Did you read my post? How about BECAUSE I'VE DONE IT?

I think my initial post established that I can convert a sequence of png files to an animgif, and that clearly the intention is that convert should be able to convert to an mpeg, since it tries to invoke a program called mpeg2encode, but the encoder is not there on Red Hat EE 3. I'll gladly take any solution. I didn't think it would be difficult.
 
Old 10-09-2005, 12:36 PM   #5
trajjm
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
maybe mencoder?

to give you a hint; i have used this in a scriptfile to generate a avi or also an mpeg file from jpgs or pngs

Code:
mencoder 'mf://*.jpg' -mf type=jpg:fps=7 -ovc copy -oac copy -o movie.avi
joerg
 
Old 10-10-2005, 09:29 AM   #6
dovkruger
LQ Newbie
 
Registered: Nov 2003
Location: NY area
Distribution: redhat EE3, Fedore Core 4
Posts: 23

Original Poster
Rep: Reputation: 15
Wow!

Great answer! I didn't know mplayer had an associated encoder, and it's already on my system because I installed mplayer.

I get some errors related to missing files. Any suggestions?

Reading /home2/dkruger/.mplayer/codecs.conf: Can't open '/home2/dkruger/.mplayer/codecs.conf': No such file or directory
Reading /opt/etc/mplayer/codecs.conf: Can't open '/opt/etc/mplayer/codecs.conf':
 
  


Reply



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
convert .wmv to .avi or .mpg PeaceTank Linux - Software 9 08-16-2009 03:57 AM
Convert mpg to avi (xvid) ? bomix Linux - Software 4 03-10-2005 03:53 PM
converting .avi to .mpg!? ungua Linux - Software 6 02-06-2005 06:05 PM
convert divx to mpg/svcd citrus Linux - General 2 04-08-2004 05:24 PM
convert avi to mpg jbogins Linux - Software 1 12-28-2003 09:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:11 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
Open Source Consulting | Domain Registration