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 03-03-2007, 12:18 PM   #1
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
avi to mpeg, reduce size of mpeg?


Hi, I've just converted a number of videos from avi to mpeg using this command:

mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=4/3:acodec=ac3:abitrate=192 -ofps 25 -o file.mpg file.avi

A 1 hour video takes about 2,2 GB.

I've got another video I converted once on a windows box with tmpgenc, it's an hour and 20 minutes but only takes a bit less then 1 GB. mplayer gives this info on it (the video is decent quality for me):
VIDEO: MPEG1 352x288 (aspect 8) 25.000 fps 1150.0 kbps (143.8 kbyte/s)


on the other I just converted:
VIDEO: MPEG2 720x576 (aspect 2) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)

another I just converted which I made a lower res, ended up being 1250MB for a bit less then an hour:
VIDEO: MPEG2 352x288 (aspect 2) 25.000 fps 9800.0 kbps (1225.0 kbyte/s)

I see the first MPEG1 video I did convert a while ago with TMPGENC uses much less kbyte/s .

How can I convert my avi files to mpeg files which don't take too much space so I can fit them all on one dvd ?

Last edited by gunnix; 03-03-2007 at 12:20 PM.
 
Old 03-03-2007, 12:40 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
How can I convert my avi files to mpeg files which don't take too much space so I can fit them all on one dvd ?
The short answer is: you can't.
MPEG-2 is an older standard, MPEG-4 (which is used in avi files) is newer. In MPEG-4 the compression algorithm is improved, resulting in smaller files.
 
Old 03-03-2007, 02:47 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
just out of curiosity, what does the command "file" have to say about the newly encoded files?

More important tho, why is using mpeg2 codec so important? Why not another, more improved codec do?

Last edited by SciYro; 03-03-2007 at 02:49 PM.
 
Old 03-04-2007, 05:51 AM   #4
gunnix
Member
 
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Original Poster
Rep: Reputation: 30
Well it's important because I want to put it on a dvd and let it play in a dvd player which sadly isn't able of playing divx.

file has this to say: MPEG sequence, v2, program multiplex

I think I can make it smaller by not using dvd format but svcd. Just reducing the quality of the video and sound, but still keeping it good to watch on tv, it's no bigscreen after all
 
Old 03-04-2007, 05:48 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I have done allot of video editing using different compression ratios, I believe DVD Lab Pro is from the same vendor as your TMPGENC. It's allot of work using this vendors products but can be done by re-editing, trouble is, the more times you edit a video, the more the quality degrades. The best application I've found so far for combining different compression types as well as different formats into one DVD by simply adding the files to the project and select "auto" for size to fit on single layer DVD, and with/without menu, is Ahead Nero Premium 7. Which I downloaded for free with keygen through shareware app. Unfortunately it is ported for Windows, but simple & easy once you get the hang of it.
 
Old 03-04-2007, 05:55 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
An excellent Linux app for this is Avidemux. It has even presets for DVD, SVCD and VCD.
 
  


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
avi to mpeg emokid Linux - Software 7 04-03-2008 12:42 AM
avi - mpeg pychosis Linux - Software 2 09-16-2006 07:58 PM
AVI vs MPEG inTUXicated Linux - Software 2 09-05-2003 11:03 AM
avi to mpeg sbadelt Linux - Software 2 06-07-2003 02:42 PM
Avi -> MPEG Ztyx Linux - Software 5 09-04-2002 05:10 AM

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

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