LinuxQuestions.org
Visit Jeremy's Blog.
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 01-22-2005, 01:59 AM   #1
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Rep: Reputation: 30
Uncompressing AVIs in linux


Does anyone know of a program with which I can uncompress an AVI? I downloaded several apps for windoze, but they all give me some errors that dont make sense

 
Old 01-22-2005, 02:32 AM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
avi as in the video format?
 
Old 01-22-2005, 04:00 AM   #3
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
yeah, the AVI video format
 
Old 01-22-2005, 04:05 AM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Could I ask why you want to do it? By uncompress, do you mean to 'convert' it to another format? Most peoples around like to convert .avi's into play-ables DVD's or VCD's. If that's what you want, any modern burner software should do it.
 
Old 01-22-2005, 04:12 AM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
AVI is a wrapper IIRC. It combines a video, compressed with whatever codec the original author compressed it with, and audio, usually compressed as well. So a program to "uncompress" an AVI would be a mis-termed program. You could have an application that unwrapped the AVI (Audio/Video Interleaved IIRC), found the type of the compression used on the video, and then from there you could begin to transform it. To save that step of unwrapping though, mplayer does a great job of detecting the compression used by just playing it, you don't need to watch it even:
mplayer -vo null -ao null filename.avi
And just look at the headers.

Cool
 
Old 01-22-2005, 05:05 AM   #6
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
mplayer can decompress i think, using raw dumps ..... or if decompress you mean turn it into a bunch of images use "mplayer -vo help" any of the vo options listed that sound like image formats will turn the movie into a bunch of images in you current directory
 
Old 01-22-2005, 07:47 AM   #7
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
Quote:
Could I ask why you want to do it?
Well, my goal is to convert AVIs into rmvb (real media) files. I have a large collection of anime that is occupying a lot of disk space. By converting AVIs to rmvb, I can convert a 170MB Xvid or DivX compressed AVI into a 60MB file, with hardly any quality loss.

Now realproducer supports only uncompressed AVIs. "Uncompressed" as in without any video compression codec such as Xvid or DivX. I have found that the Intel Indeo Codec is also accepted by realproducer.

So what I want is a large uncompressed AVI file with both audio and video, something that I can convert to realplayer format.

I have tried using mplayer -vo mpegpes But I get only video, without any sound

Can anyone help? Thanks

Last edited by akudewan; 01-22-2005 at 07:49 AM.
 
Old 01-22-2005, 08:03 AM   #8
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
use mencoder, that's mplayer's encoder

mencoder anime.avi -ovc mpegpes -oac copy -o outputfile
 
Old 01-22-2005, 08:38 AM   #9
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
Thanks. I tried that, but I get an error:

Code:
akudewan@ranjan404:/mnt/c$ mencoder Naruto\ 72.avi -ovc mpegpes -oac copy -o outputfile
MEncoder 1.0pre5-3.3.4 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon Willamette 1600 MHz (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading /home/akudewan/.mplayer/codecs.conf: Can't open '/home/akudewan/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: 73 audio & 180 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/akudewan/.mplayer/mencoder: No such file or directory
Option ovc: Unknown suboption mpegpes
Exiting... (error parsing cmdline)
Now what?
 
Old 01-22-2005, 09:10 AM   #10
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
you don't have support for mpegpes

type

mencoder -vo help

to get a list of what codecs you can encode to
 
Old 01-22-2005, 09:27 AM   #11
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
This is weird... The available outputs does show mpegpes

Code:
Reading config file /home/akudewan/.mplayer/config
Available video output drivers:
        xv      X11/Xv
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        gl      X11 (OpenGL)
        gl2     X11 (OpenGL) - multiple textures version
        dga     DGA ( Direct Graphic Access V2.0 )
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        caca    libcaca
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        null    Null video output
        pgm     PGM file
        md5     MD5 sum
        mpegpes Mpeg-PES file
        yuv4mpeg        yuv4mpeg output for mjpegtools (to "stream.yuv")
        xvidix  X11 (VIDIX)
        cvidix  console VIDIX
        tga     Targa output
 
Old 01-22-2005, 04:07 PM   #12
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
That are MPlayer's output drivers, not MEncoder codecs. I forgot mpegpes is an output driver. To list all available codecs, use

mencoder -ovc help
 
Old 01-23-2005, 12:17 AM   #13
akudewan
Member
 
Registered: Apr 2004
Location: India
Distribution: Ubuntu
Posts: 364

Original Poster
Rep: Reputation: 30
Thanks, that was it! I did:

"mencoder anime.avi -ovc raw -oac copy -o anime_uncompressed.avi"

But there seems to be a 2 GB limit. And I cant play the output file
 
Old 01-23-2005, 03:42 AM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Recompile mplayer with --enable-large-files (or something very close to that, check the --help for the exact tag). Be sure you are using a filesystem that doesn't hinder you either.

Cool
 
Old 01-23-2005, 08:52 AM   #15
leadazide
Member
 
Registered: Apr 2004
Location: Germany
Distribution: SuSE 11.0, Ubuntu 7.10
Posts: 390

Rep: Reputation: 30
How do you want to convert the movies to realvideo?
 
  


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
'Uncompressing linux ' message Wolf Larsen Linux - Newbie 2 07-25-2005 03:56 AM
uncompressing Linux at boot linuxhippy Slackware 7 03-12-2005 09:38 AM
CONVERTING HALF-LIFE DEMOS TO AVIs IN LINUX IS VERY EASY! leadazide Linux - Games 5 09-23-2004 04:16 PM
Uncompressing MS-Backup files in Linux Mathieu Linux - Enterprise 0 08-02-2004 04:57 PM
Uncompressing Linux... Ok, booting the kernel GlobShim Linux - General 2 01-29-2004 06:24 PM

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

All times are GMT -5. The time now is 03:37 AM.

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