LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Uncompressing AVIs in linux (https://www.linuxquestions.org/questions/linux-software-2/uncompressing-avis-in-linux-280737/)

akudewan 01-22-2005 12:59 AM

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

:newbie:

SciYro 01-22-2005 01:32 AM

avi as in the video format?

akudewan 01-22-2005 03:00 AM

yeah, the AVI video format

Mega Man X 01-22-2005 03:05 AM

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.

MasterC 01-22-2005 03:12 AM

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

SciYro 01-22-2005 04:05 AM

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

akudewan 01-22-2005 06:47 AM

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

leadazide 01-22-2005 07:03 AM

use mencoder, that's mplayer's encoder

mencoder anime.avi -ovc mpegpes -oac copy -o outputfile

akudewan 01-22-2005 07:38 AM

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? :(

SciYro 01-22-2005 08:10 AM

you don't have support for mpegpes

type

mencoder -vo help

to get a list of what codecs you can encode to

akudewan 01-22-2005 08:27 AM

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


leadazide 01-22-2005 03:07 PM

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

akudewan 01-22-2005 11:17 PM

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 :(

MasterC 01-23-2005 02:42 AM

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

leadazide 01-23-2005 07:52 AM

How do you want to convert the movies to realvideo?


All times are GMT -5. The time now is 03:45 PM.