John Pateman | 23 Jun 16:14 2016

Crosshair target over video

I am wanting to use a webcam to determine and adjust a CNC milling machine
position and to use it to guide the position the cutter over edges/holes
The camera is in the machine cutting head. I need the video feed displayed
a crosshair pattern in the dead centre.

I have managed to get the video feed displayed and a sort of crosshair
with the following instruction. This is in ‘linuxcnc’ and the image pops up
a window in the control software.

mplayer -wid {XID} tv://0 -vf rectangle=-1:2:-1:240,rectangle=2:-1:320:-1

What I would like is to be able to select an alternative crosshair
pattern - ideally a crosshair with a central circle (and possibly some
designs I have in mind)

Obviously I can create the necessary image - in whatever format is
but how do I get it to display over my video?

Many thanks in advance

MPlayer-users mailing list
MPlayer-users <at>
(Continue reading)

benny | 15 Jun 03:44 2016

Does mplayer for windows support hardware acceleration?

Using mplayer to player a 3840*2160 mp4 movie, the CPU usage is 31%. but using windows media player the CPU
usage is less than 3%.  
Does mplayer for windows support hardware acceleration? Is there any command line option can use?
media info:GeneralFormat                      : MPEG-4Format profile              : Base Media / Version 2Codec ID                    : mp42
(mp42/mp41/isom)File size                   : 48.0 MiBOverall bit rate            : 20.1 Mbps
video:Format                      : AVCFormat/Info                 : Advanced Video CodecFormat profile              : High <at> L5.1Format settings, CABAC      :
YesFormat settings, ReFrames   : 4 framesCodec ID                    : avc1Codec ID/Info               : Advanced Video CodingBit rate                    :
20.0 MbpsMaximum bit rate            : 36.7 MbpsWidth                       : 3 840 pixelsHeight                      : 2 160 pixelsDisplay aspect ratio        :
16:9Frame rate mode             : ConstantFrame rate                  : 25.000 fpsColor space                 : YUVChroma subsampling          : 4:2:0Bit
depth                   : 8 bitsScan type                   : ProgressiveBits/(Pixel*Frame)          : 0.096
MPlayer-users mailing list
MPlayer-users <at>
Thomas Keller | 13 Jun 09:43 2016

play audio in window (gui)

when I open audio file from commandline, such as

  mplayer my_audio.mp3

mplayer plays the audio inside the commandline.

How can I tell it to open a window, same as when playing video file ?

I don't care what the window background would be, it can be all black.
But I need individual window for each audio file, so that I can switch
between them.

MPlayer-users mailing list
MPlayer-users <at>
Peter Irbizon | 12 Jun 20:07 2016

How to compile mplayer on ARMv8?

Hello, because I didn't find in
deb compilation for ARMv8, I tried to compile mplayer with mencoder on
ARMv8 by myself (RaspberryPi3, Raspbian Jessie - I know there is no
mencoder available for Jessie)
I did it like this:
$ wget
$ tar xf MPlayer-1.3.0.tar.xz
$ cd MPlayer-1.0rc2
$ ./configure
$ sudo make && sudo make install

I made it via ssh. Then I found out that:
- I can just run mplayer via ssh terminal (only when I run mplayer via ssh
console, video shows on my hdmi monitor)
- just -vo fbdev is working
- -vf crop and -vf pp are not working (mplayer simply does not run)

When I install mplayer from package repo via sudo apt-get install mlpayer,
it works ok (but mencoder is not included, as known).
Any idea what am I doing wrong during my compilation?
MPlayer-users mailing list
MPlayer-users <at>
Peter Irbizon | 12 Jun 18:49 2016

mencoder to fifo and play fifo with mplayer

I'd like to post this question related to mencoder.
I would like to encode with mencoder stream from my /dev/video0 camera and
save it to fifo pipe and then play it immediatelly with mplayer (or any
other player => this is why I need to encode it with mencoder first)

I tried something like this:
$ mkfifo output.avi
$ mencoder tv:// -tv driver=v4l2:width=720:height=576:device=/dev/video0
-ovc lavc -lavcopts vcodec=mpeg4:vbitrate=900 -o output.avi -v -nosound
BUT this produces no results (likek "video buffer full - dropping frame")
$ mplayer output.avi (this is how I wanted to play it)

When I save stream to normal file, mencoder works ok.
Any idea please how to put strem into pipe and then play it?
MPlayer-users mailing list
MPlayer-users <at>
jd1008 | 11 Jun 00:26 2016

3D vid problem

Need to convert 3D to 2D without losing the audio.

MPlayer-users mailing list
MPlayer-users <at>
Peter Irbizon | 9 Jun 10:11 2016

pipe /dev/video0 to fifo

I am trying to pipe /dev/video0 to out.raw and then immediately read it in
omxplayer. But I am getting no picture in omxplayer (I tried the same with
mplayer out.raw -> Playing out.raw but no picture shown)

My commands:
mkfifo out.raw
mplayer tv:///dev/video0 -dumpstream -dumpfile out.raw &
omxplayer out.raw

Any idea why I am not getting picture?
MPlayer-users mailing list
MPlayer-users <at>
Peter Irbizon | 8 Jun 18:29 2016

shifted image in fast scenes/moving

Hello, I would like ask you for help:
During fast scenes (or when fast moving with  my usb camera) I have always
under one line shifted picture (but after a while when it stabilizes
picture everything is clear again).
My deinterlacing is set to pp=lb.

Any idea how could I supress this line shift?
Many thanks.
MPlayer-users mailing list
MPlayer-users <at>
jd1008 | 6 Jun 21:08 2016

mplayer 1.3.0 tarball

I tried to build it on fedora 20 using it's mplayer.spec.

rpmbuild -v -tb MPlayer-1.3.0.tar.xz

it dies with the message:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.LIPsGf
+ umask 022
+ cd /sdb3/home/jd/rpmbuild/BUILD
+ cd /sdb3/home/jd/rpmbuild/BUILD
+ rm -rf mplayer-export-2016-06-06
+ /usr/bin/tar -xf -
+ /usr/bin/bzip2 -dc 
+ '[' 0 -ne 0 ']'
+ cd mplayer-export-2016-06-06
/var/tmp/rpm-tmp.LIPsGf: line 37: cd: mplayer-export-2016-06-06: No such 
file or directory
error: Bad exit status from /var/tmp/rpm-tmp.LIPsGf (%prep)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.LIPsGf (%prep)

The untarring of the tarball creates:

so of course the build will fail.

MPlayer-users mailing list
(Continue reading)

Peter Irbizon | 2 Jun 20:00 2016

read answer from slave

Hello, one more question. I am using command
echo "pausing_keep_force get_property pause" > /home/user/mplayer-control
and it outputs ANS_pause in terminal window, where mplayer was launched.

But how could I get it into my second terminal, when I initiated echo
"pausing_keep_force get_property pause" > /home/user/mplayer-control

Many thanks
MPlayer-users mailing list
MPlayer-users <at>
Peter Irbizon | 2 Jun 19:11 2016

How to use -slave option with bash and terminal (python)

Hello, I have this
res=$(mkfifo /home/user/mplayer-control)
res=$(mplayer -slave -input file=/home/user/mplayer-control movie.mp4)

When I run it, mplayer starts. But I am not able to pause it from another
terminal with:
echo "pause" > /home/user/mplayer-control

What am I doing wrong?
MPlayer-users mailing list
MPlayer-users <at>