V 
VPS Hosting Referral Code PCGPDB


MAN PAGES INDEX
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 31, 2010, 09:09:24 AM

Login with username, password and session length
« previous next »
Pages: [1] Print
Author Topic: mplayer, mencoder  (Read 433 times)
bashconsole
Administrator
Newbie
*****
Posts: 30


View Profile Email
« on: May 09, 2009, 11:31:26 PM »

NAME
       mplayer  - movie player
       mencoder - movie encoder

SYNOPSIS
       mplayer [options] [file|URL|playlist|-]
       mplayer [options] file1 [specific options] [file2] [specific options]
       mplayer [options] {group of files and options} [group-specific options]
       mplayer [dvd|dvdnav]://[title|[start_title]-end_title] [options]
       mplayer vcd://track[/device]
       mplayer tv://[channel][/input_id] [options]
       mplayer radio://[channel|frequency][/capture] [options]
       mplayer pvr:// [options]
       mplayer dvb://[card_number@]channel [options]
       mplayer mf://[filemask|@listfile] [-mf options] [options]
       mplayer [cdda|cddb]://track[-endtrack][:speed][/device] [options]
       mplayer cue://file[:track] [options]
       mplayer sdp://file [options]
       mplayer mpst://host[:port]/URL [options]
       mplayer tivo://host/[list|llist|fsid] [options]
       gmplayer [options] [-skin skin]
       mencoder [options] file [file|URL|-] [-o file | file://file | smb://[user:pass@]host/filepath]
       mencoder [options] file1 [specific options] [file2] [specific options]

DESCRIPTION
       mplayer  is  a movie player for Linux (runs on many other platforms and CPU architectures, see the docu-
       mentation).  It plays most MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM,  MKV,  VIVO,  FLI,  Nup-
       pelVideo, yuv4mpeg, FILM and RoQ files, supported by many native and binary codecs.  You can watch Video
       CD, SVCD, DVD, 3ivx, DivX 3/4/5 and even WMV movies, too.

       MPlayer supports a wide range of video and audio output drivers.  It works with X11,  Xv,  DGA,  OpenGL,
       SVGAlib, fbdev, AAlib, libcaca, DirectFB, Quartz, Mac OS X CoreVideo, but you can also use GGI, SDL (and
       all their drivers), VESA (on every VESA-compatible card, even without X11), some low-level card-specific
       drivers (for Matrox, 3dfx and ATI) and some hardware MPEG decoder boards, such as the Siemens DVB, Haup-
       pauge PVR (IVTV), DXR2 and DXR3/Hollywood+.  Most of them support software or hardware scaling,  so  you
       can enjoy movies in fullscreen mode.

       MPlayer  has an onscreen display (OSD) for status information, nice big antialiased shaded subtitles and
       visual feedback for keyboard controls.  European/ISO8859-1,2 (Hungarian, English, Czech, etc),  Cyrillic
       and  Korean  fonts are supported along with 12 subtitle formats (MicroDVD, SubRip, OGM, SubViewer, Sami,
       VPlayer, RT, SSA, AQTitle, JACOsub, PJS and our own: MPsub) and DVD subtitles (SPU streams,  VOBsub  and
       Closed Captions).

       mencoder (MPlayer's Movie Encoder) is a simple movie encoder, designed to encode MPlayer-playable movies
       (see above) to other MPlayer-playable formats (see below).  It encodes to MPEG-4 (DivX/Xvid), one of the
       libavcodec codecs and PCM/MP3/VBRMP3 audio in 1, 2 or 3 passes.  Furthermore it has stream copying abil-
       ities, a powerful filter system (crop, expand, flip, postprocess, rotate, scale, noise, RGB/YUV  conver-
       sion) and more.

       gmplayer is MPlayer with a graphical user interface.  It has the same options as MPlayer.

       Usage examples to get you started quickly can be found at the end of this man page.

http://bashconsole.org/man.1.mplayer
http://bashconsole.org/man.1.mencoder
Logged
bashconsole
Administrator
Newbie
*****
Posts: 30


View Profile Email
« Reply #1 on: May 09, 2009, 11:35:56 PM »

Video scaling for PPC

Code:
#!/bin/bash

#usage: ppc-video-scale.sh <videofilename>

F_IN=$1
SIZE=$2
VBR=$3
F_OUT=ppc_$F_IN



# remove conflicting files
rm -f divx2pass.log frameno.avi

# rip audio track
nice -n 1 mencoder -oac mp3lame -lameopts vbr=3 \
 -ovc frameno -o frameno.avi $F_IN

# video track (pass: 1)
nice -n 1 mencoder -sws 2 -oac copy -ovc lavc \
 -lavcopts vcodec=mpeg4:vbitrate=$VBR:vhq:vpass=1 \
 -ffourcc XVID -vf scale -zoom -xy $SIZE $F_IN -o /dev/null

# video track (pass: 2)
nice -n 1 mencoder -sws 2 -oac copy -ovc lavc \
 -lavcopts vcodec=mpeg4:vbitrate=$VBR:vhq:vpass=2 \
 -ffourcc XVID -vf scale -zoom -xy $SIZE $F_IN -o "$F_OUT"

# done



Convert DVD to AVI
Code:
#!/bin/bash

mencoder dvd:// -ovc frameno -oac mp3lame -lameopts fast:preset=medium -quiet -slang eng -o "frameno.avi"
mencoder dvd:// -ffourcc divx -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=400:vpass=1 -oac copy -quiet -slang eng -o "dest.avi"
mencoder dvd:// -ffourcc divx -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=400:vpass=2 -oac copy -quiet -slang eng -o "dest.avi"
Logged
Pages: [1] Print
« previous next »
Jump to:  

Page created in 0.059 seconds with 21 queries. (Pretty URLs adds 0.01s, 2q)