LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 06-10-2004, 09:54 AM   #1
BeetleBailey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Rep: Reputation: 0
Exclamation converting JPEG images to MPEG-2 video using <convert>?


I find myself presented with the task of converting a directory of JPEG image files into an MPEG-2 video format. I'm basically using my digital camera as a home security system. It's set up to take pics every so often & then store them in a directory on my new Linux box. Scrolling through pages of pictures isn't very fun & the process could be quicker if I could convert it to a movie format & just hit play. I want to go straight from JPEG to MPEG-2. I'm currently doing research as to what tools I can use and according to some sites it looks like this can be done with the Linux <convert> command. Though it seems possible I have yet to see an example of this form, or see any posts about success stories. {Kind of leaves me in the dark since no site explicitly states that it can convert JPEG to MPEG-2}
- If anyone here may be able to shed any light on my situation please do so, I'd appreciate it greatly!
 
Old 06-10-2004, 11:49 AM   #2
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
Have you tried:

convert *.jpeg my_movie.mpeg

to specify an order check here: http://imagemagick.sourceforge.net/www/ImageMagick.html and do a 'find' in your browser for 'mpeg'

If it asks for mpeg2encode go here :
ftp://ftp.mpeg.org/pub/mpeg/mssg/
and download mpeg2vidcodec_v12.tar.gz, untar it, type make and move the program compiled into your path e.g. ~/bin/ or whatever

Last edited by dakensta; 06-10-2004 at 11:50 AM.
 
Old 06-11-2004, 08:12 AM   #3
BeetleBailey
LQ Newbie
 
Registered: Jun 2004
Posts: 10

Original Poster
Rep: Reputation: 0
-- Thanks for the tip

Okay, I'm pretty new to the Linux OS.
Logging in as root would my path just be /root/ ???

and also if I do the:
@ ./configure
@ make
and then put it in /root (or whatever the path for root is), when someone from the admin or root group privelages loggs into the machine will they have access to these library files & tools without having to do anything special ?

Just to throw this out there for anyone, is there a better way to do this then the route that I've chosen??
 
Old 06-11-2004, 09:07 AM   #4
dakensta
Member
 
Registered: Jun 2003
Location: SEUK
Distribution: Debian & OS X
Posts: 194

Rep: Reputation: 35
Ok, sorry!

Your path is just where your shell (the shell is the program that launches all the other programs, a bit like double clicking in windows on a file icon to start a program in windows) looks for programs to run.

Type
echo $PATH
at the command line to see what it includes.

To compile mpeg2encode, download the source file to a temporary directory (yopu might want to make a directory for compiled packages)
and type
tar -zxf mpeg2vidcodec_v12.tar.gz
then change into the newly created sub-directory, and for this program, you only have to type
'make'
in the new directory (the one with files like README).

After a minute (if you have an old computer like me) the computer will stop spouting stuff and you can look in (I think) the subdirectory src/mpeg2enc and there should be a file called mpeg2encode.

Copy this to one of the places listed under your path.

If it does not exist already, you might want to create your own bin directory in your home directory or maybe use /usr/local/bin to give everyone access.
/usr/bin and /bin are generally used for system executables.
/opt/bin (if you have it) is often used for precompiled binary packages you may have purchased.
I suggest, on balance, that you put it in /usr/local/bin if you have root access.

The program should compile setting mpeg2encode to world executable so yes everyone can run it.
 
  


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
converting tiff to jpeg freebies Linux - Software 8 06-26-2013 10:17 PM
viewing jpeg images in kde justwantin Slackware 5 11-15-2005 03:30 PM
displaying jpeg images Dave31836 Programming 2 01-25-2005 10:28 AM
How to convert mpeg file in mpeg-PS or TS hawkgreatelf Linux - Software 1 05-01-2003 06:09 AM
converting .bmp to .jpeg wincrk Programming 5 03-04-2003 08:21 PM


All times are GMT -5. The time now is 04:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration