Changes

MPlayer

3,440 bytes added, 28 November
/* rtsp */
The following lines were added (+) and removed (-):
== [http://www.mplayerhq.hu/design7/news.html MPlayer] ==MPlayer is a movie player for Linux and also works on Windows and other operating systems.  It plays most MPEG/VOB, AVI, ASF/WMA/WMV, RM, QT/MOV/MP4, Ogg/OGM, MKV, VIVO, FLI, NuppelVideo, yuv4mpeg, FILM and RoQ files, supported by many native and binary codecs. You can watch VCD, SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264.  MPlayer has a fully configurable, command-driven control layer which allows you to control MPlayer using keyboard, mouse, joystick or remote control. video and audio output drivers:  X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, libcaca, DirectFB, Quartz, Mac OS X CoreVideo, GGI, SDL, VESA. The mplayer family:  #mplayer - command line driven video and audio player#mencoder - video encoder and converter#gmplayer - MPlayer with a graphical user interface == mplayer ==Open Analog TV Tuner or Capture Device mplayer tv:// -tv driver=v4l2:norm=NTSC:input=0:amode=1:outfmt=yv12:device=/dev/video0=== rtsp ===although mplayer does rtsp and depending on how it is compiled, it demonstrated poor ability with dropped frames compared to other options. mplayer rtsp://192.168.0.15:554obviously depends on encoding, however better results were achieved by alternatively using ffplay like this: ffplay rtsp://192.168.0.15:554ffplay uses FFmpeg libraries and the SDL library. On Ubuntu Mplayer has it's own FFmpeg implementation.  Depending on your distribution and/or if you build from source your results will differ.  You can build mplayer against the ffmpeg you have installed on your system.  To do so add --disable-libavcodec_a --disable-libavutil_a --disable-libavformat_a --disable-libpostproc_a and --disable-libswscale_a to the mplayer configure line.  To find out how your mplayer is linked type this: ldd `which mplayer`ldd `which mplayer`|grep ffmpeg== mencoder ==MEncoder can convert all the formats that MPlayer recognizes into a variety of compressed and uncompressed formats using different codecs.  It can decode all media which MPlayer can decode and it supports all filters which MPlayer can use. Supported filters: cropping, scaling, vertical flipping, horizontal mirroring, expanding to create letterboxes, rotating, brightness/contrast, changing the aspect ratio, colorspace conversion, hue/saturation, color-specific gamma correction, filters for reducing the visibility of compression artifacts caused by MPEG compression (deblocking, deringing), automatic brightness/contrast enhancement (autolevel), sharpness/blur, denoising filters, several ways of deinterlacing, and reversing telecine.=== Rip / Encode a DVD ===You can use libavcodec to encode the video.  Identify the source video.  * Identify video framerate* Identify video frames/fields/pulldown/telecine* Encode constant bitrate (CBR), constant quantizer, and multipass* Crop black borders or letterboxing* select resolution and bitratesee: http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-dvd-mpeg4.html=== Rip from TV or Composite Source (V4L capture) ===Using mencoder for this is considered inefficient.  It is possible to capture and encode live TV in [[H.264]].  mencoder -tv driver=v4l2:device=/dev/video0$DEV:fps=30000/1001:audiorate=32000:adevice=/dev/dsp$DEV:input=0:amode=1:normid=4:width=512:height=384-ovc x264 -x264encopts threads=2:bitrate=800:subq=2:me=2:frameref=4:8x8dct-oac mp3lame -lameopts cbr:br=96 -endpos $TIM -o $DIR/$FIL.avi tv:// > /dev/null== References and External Resources ==* http://www.mplayerhq.hu/design7/news.html
Bureaucrat, administrator
14,711
edits