Linux.com

Home Linux Community Forums Linux Distributions Ubuntu mplayer video script question

mplayer video script question

Link to this post 10 May 11

I have a basch script to play my video but I want i want to do is have the video play at double sieze. In noraml video play i just right click the video screen and say double size but with the script i can not use the mouse.

#!/bin/bash
#update video list
find /media/M*port/torrent -type f \( -name "*" ! -name "video.txt" ! -name "playvideo" \) > video.txt
mplayer -shuffle -playlist video.txt

Link to this post 10 May 11

I can't get mplayer to start with the window double-sized, but I can pass it a specific size - which is almost as good, e.g.:

mplayer -vo xv -screenw 700 -screenh 480 /path/to/movie.mpg

i must say, it didn't resize it perfectly, but maybe it will work better for you. My video hardware sucks and my mplayer is way out of date...

have you tried SMplayer? It is a nice alternative front end GUI player, but apart from that, it might have more command line oriented features.

Link to this post 11 May 11

mplayer -xy 2 -shuffle -playlist video.txt

thank you for your help

Link to this post 11 May 11

lancebermudez wrote:

mplayer -xy 2 -shuffle -playlist video.txt

thank you for your help

-xy 2 ... brilliant! it doesn't work quite right on my ancient mplayer, but that's my problem. thx for posting.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board