On 01/20/2011 05:51 PM, Ivan wrote: > I want to use mplahyer with options: > > mplayer -vo vdpau -vc ffh264vdpau,ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau > > How to add vc option to mplayer parameters ? > > MPLAYER_VO_DEV = 'vdpau'
One of two ways is how I do it ... if CONF.display in ( 'directfb', 'dfbmga' ): MPLAYER_ARGS_DEF = ('-autosync 100 -nolirc -autoq 100 -fs ') else: MPLAYER_ARGS_DEF = (('-ac hwdts,hwac3,a52, -autosync 100 -nolirc -autoq 100 -screenw %s ' + '-screenh %s -fs') % (CONF.width, CONF.height)) OR MPLAYER_ARGS = { 'dvd' : '-cache 8192 -vo xvmc -vc ffmpeg12mc', 'vcd' : '-cache 4096', 'cd' : '-cache 1024 -cdda speed=2', 'tv' : '-nocache', 'ivtv' : '-cache 8192', 'dvb' : '-cache 1024', 'avi' : '-cache 5000 -idx', 'rm' : '-cache 5000 -forceidx', 'rmvb' : '-cache 5000 -forceidx', 'mpeg' : '-cache 5000 -vo xvmc -vc ffmpeg12mc -ao alsa:device="iec958=CMI8768"', 'mpg' : '-cache 10000 -vo xvmc -vc ffmpeg12mc -ao alsa:device="iec958=CMI8768"', 'ts' : '-cache 5000 -vo xvmc -vc ffmpeg12mc -ao alsa:device="iec958=CMI8768"', 'webcam' : 'tv:// -tv driver=v4l:width=352:height=288:outfmt=yuy2:device=/dev/video2', 'mp3' : '-cache 5000', 'ogg' : '-cache 5000', 'default': '-cache 5000' } Hope that helps. Jim ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users