[MPlayer-users] video encoding

Ko Ko kkl_sg at yahoo.com
Tue Dec 20 08:08:26 CET 2005


Thanks for your reply. Your command lines works. Thanks alot. May I ask you a little more? When I use this copy for encoding, the result frame is not very smooth. Alot of pixels here and there, and when I play with Windows Media Player it is crushed. It is quite essential for me to get the output file being able to play with Windows Media Player because I am actually wanting to embed the movie as preview movie. That's why I want to encode the first 10 second or so of the movie in the first place.
   
  And another question will be, 
   
  "What will happen if I encode the movie longer than the duration of the original file? Will the rest of the time it will show blank or?"
   
  And lastly,
   
  I don't know how to add in more codecs to mplayer. How can I do it? I only have
  copy
  frameno
  raw
  nuv
  lavc
  vfw
  qtvideo 
  in my list for now. I wanna add in more codecs. 
   
  Thanks alot for your command lines suggestion. It does miracle.
   
  Regards,
  Ko Ko

The Wanderer <inverseparadox at comcast.net> wrote:
  On 12/19/2005 11:32 PM, Ko Ko wrote:

> Hi,
> 
> I am still a pretty much newbie with mplayer. I wish to do the
> followings and I am not too sure what kind of command to issue to get
> the result.
> 
> 1. Encode the first 10 seconds of a movie file to another movie file
> (in same format. i.e avi to avi, mpg to mpg)

mencoder input_file -o output_file -ovc copy -oac copy -endpos 10

If that gives you any problems, then try actually transcoding the video
and/or audio, rather than copying them directly. It should be fine,
though.

> 2. Detect the duration of the movie file (5 mins or 10 mins etc)

mplayer -identify -frames 0 input_file

Look for the line reading ID_LENGTH=. The number will be the
total number of seconds in the file; from there, it's just basic math.

> 3. Change the resolution of the movie file (1024x768 to 640x480 etc)

This can be done, although not without loss of quality, but it's
something I've never needed to do so I'm not sure of exactly how. I
believe you need to use -vf scale; read the man page, and don't be
afraid to experiment.

-- 
The Wanderer

Warning: Simply because I argue an issue does not mean I agree with any
side of it.

Secrecy is the beginning of tyranny.

_______________________________________________
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
http://mplayerhq.hu/mailman/listinfo/mplayer-users
  




Reality starts with Dream 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the MPlayer-users mailing list