LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-14-2004, 09:11 PM   #1
sk8guitar
Member
 
Registered: Jul 2003
Location: DC
Distribution: mandrake 9.1
Posts: 415

Rep: Reputation: 30
animating jpgs to mpg?


hey, i have a large collection of jpgs (from a webcam, taken every 30 seconds) and i was wondering if there was a way to piece these together into an mpg/avi (video format) somehow? does anyone have any suggestions?
 
Old 07-14-2004, 09:54 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
hmmm...
this i just a guess, but i know mEncoder is part of Mplayer.
and mPlayer is capable of converting Mpeg's to jpeg frames.

so maybe mEncoder can do the oposite ?

look it up.
 
Old 07-15-2004, 07:16 PM   #3
lubbus
LQ Newbie
 
Registered: Jun 2004
Distribution: slackware 9.1 w/dropline 2.6.1
Posts: 4

Rep: Reputation: 0
sure, you can do it using mencoder.... you have to install mplayer in your box, then use this line

mencoder mf://*.jpeg -mf fps=25 -ovc lavc -lavcopts vcodec=huffyuv:pred=2:format=422P:vstrict=-1 -noskip -o file.avi

fps = frames per second (25 o 30 should be fine)
-ovc lavc = to use the lavc codec library (it comes with mplayer) with options specified by -lavcopts
vcodec = huffyuv, it's a loss-less codec it helps you to create a smaller file (smaller than creating the video without using any codecs at all)
pred = 2, use median prediction for huffyuv
format = 422P, define the yuv color space (this is the best possible quality)
vstrict = flag necessary to enable huffyuv coding
-noskip = keep all frames for encoding

you can test the result with "mplayer -vo x11 file.avi"

later you can encode your movie with the DivX-like codec, using mencoder also.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and Kodak jpgs Tomasfuego Programming 1 05-03-2005 08:29 PM
Merge JPGs mddolloff Linux - Software 5 11-21-2004 07:41 AM
Animating Software for linux ZingSter Linux - Software 1 10-15-2004 01:46 PM
Need help with renaming jpgs joe_stevensen Programming 2 06-26-2004 04:29 AM
Mozilla 1.4 and jpgs. f0rmula Linux - Software 0 12-12-2003 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:58 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