public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nick Rout <nick@rout.co.nz>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] 4gb mpeg to 100mb xvid?
Date: Thu, 08 Sep 2005 12:44:51 +1200	[thread overview]
Message-ID: <20050908123408.CCAB.NICK@rout.co.nz> (raw)
In-Reply-To: <Pine.LNX.4.62.0509071829550.15598@mail.wholenet.com.ar>


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 <nick@rout.co.nz>

-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2005-09-08  0:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-07 18:19 [gentoo-user] 4gb mpeg to 100mb xvid? Arturo 'Buanzo' Busleiman
2005-09-07 18:34 ` Holly Bostick
2005-09-07 18:43   ` Arturo 'Buanzo' Busleiman
2005-09-07 19:18     ` Holly Bostick
2005-09-07 19:49       ` Arturo 'Buanzo' Busleiman
2005-09-07 20:15         ` Holly Bostick
2005-09-07 20:21           ` Arturo 'Buanzo' Busleiman
2005-09-07 20:53             ` Holly Bostick
2005-09-07 21:30               ` Arturo 'Buanzo' Busleiman
2005-09-07 22:25                 ` Neil Bothwick
2005-09-08  0:30                   ` Arturo 'Buanzo' Busleiman
2005-09-08 19:34                     ` Antoine
2005-09-07 22:33                 ` Willie Wong
2005-09-08  0:44                 ` Nick Rout [this message]
2005-09-07 22:40               ` Willie Wong
2005-09-07 20:41         ` Willie Wong
2005-09-07 18:53 ` Antoine
2005-09-07 20:59 ` Bryan Whitehead

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050908123408.CCAB.NICK@rout.co.nz \
    --to=nick@rout.co.nz \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox