From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EDAcq-0008Lj-LR for garchives@archives.gentoo.org; Thu, 08 Sep 2005 00:50:49 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j880kMQ7012959; Thu, 8 Sep 2005 00:46:22 GMT Received: from www.rout.co.nz (203-79-82-53.adsl-wns.paradise.net.nz [203.79.82.53]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j880fGQ8014599 for ; Thu, 8 Sep 2005 00:41:17 GMT Received: from [192.168.1.2] (nick.rout.co.nz [192.168.1.2]) by www.rout.co.nz (Postfix) with ESMTP id 2C25B1CACE8 for ; Thu, 8 Sep 2005 12:43:34 +1200 (NZST) Date: Thu, 08 Sep 2005 12:44:51 +1200 From: Nick Rout To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] 4gb mpeg to 100mb xvid? In-Reply-To: References: <431F534E.1080308@planet.nl> Message-Id: <20050908123408.CCAB.NICK@rout.co.nz> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.21.04 [en] X-Archives-Salt: daa5c148-526d-400c-a720-af7a58118148 X-Archives-Hash: fe831fb176edbbff15634e9a25ba4932 On Wed, 7 Sep 2005 18:30:34 -0300 (ART) Arturo 'Buanzo' Busleiman wrote: > On Wed, 7 Sep 2005, Holly Bostick wrote: > > > Rar or Tar.gz or zip the file up and share it, or encode it down to an > > xvid (which will likely reduce the size at least somewhat, but anybody > > correct me if I'm wrong) and *then* rar/tar.gz/zip it up and share it. > > And how do I easily encode it down to an xvid? your sample file shows the following with mplayer -identify: ASF file format detected. ID_AUDIO_ID=1 ID_VIDEO_ID=2 VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s) ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 32000 Hz, 2 ch, s16le, 32.0 kbit/3.12% (ratio: 4000->128000) Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== ID_FILENAME=dd24_2005.wmv ID_VIDEO_FORMAT=WMV3 ID_VIDEO_BITRATE=0 ID_VIDEO_WIDTH=320 ID_VIDEO_HEIGHT=240 ID_VIDEO_FPS=1000.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_CODEC=ffwmav2 ID_AUDIO_FORMAT=353 ID_AUDIO_BITRATE=32000 ID_AUDIO_RATE=32000 ID_AUDIO_NCH=2 ID_LENGTH=3232 ========================================================================== Opening video decoder: [dmo] DMO video codecs DMO dll supports VO Optimizations 0 1 DMO dll might use previous sample when requested GetOutput r=0x0 size:230400 align:1 StreamCount r=0x0 1 1 Decoder supports the following YUV formats: YV12 YUY2 UYVY YVYU Decoder is capable of YUV output (flags 0x1b) VDec: vo config request - 320 x 240 (preferred csp: Packed YUY2) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. VO: [null] 320x240 => 320x240 Planar YV12 Selected video codec: [wmv9dmo] vfm:dmo (Windows Media Video 9 DMO) ========================================================================== Checking audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le... AF_pre: 32000Hz/2ch/s16le alsa-init: 1 soundcard found, using: default alsa: 32000 Hz/2 channels/4 bpf/43688 bytes buffer/Signed 16 bit Little Endian AO: [alsa] 32000Hz 2ch s16le (2 bps) Building audio filter chain for 32000Hz/2ch/s16le -> 32000Hz/2ch/s16le... Starting playback... Clearly the frames per second is misreported at 1000 (this seems a common problem with wmv files and ffmpeg/mplayer). However you can see that it has been coded down to 320x240 pixels. It is remarkably watchable, albeit I don't understand the language. Yu can use the above parameters to re-encode it with a variety of tools, you will have to do a little research as to what will work best. It will take a bit of cpu processing too! The possible tools are: ffmpeg mencoder (part of mplayer) transcode The common approach is to separate the audio and video channels, re-encode each of them to the required bitrate and size, and then mplex them back together again. There is no one tool or "right" approach. There is a lot of reading to do. avidemux does provide a gui which may be useful - it helps set up parameters for the various formats and ocdecs. It uses the same basic tools "under the hood" though. For a reasonably well documented script that does a similar thing, and may provide inspiration, see http://forums.gentoo.org/viewtopic.php?t=117709&highlight=codecs (this documents any2vob, which takes any old video file and converts it to a format suitable for burning to dvd. You are doing pretty much the opposite, but the steps and tools are the same.) > > -- > Buanzo > > -- > gentoo-user@gentoo.org mailing list -- Nick Rout -- gentoo-user@gentoo.org mailing list