User Tools

Site Tools


mplayer:mplayer_usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
mplayer:mplayer_usage [2009/09/10 11:25] devamplayer:mplayer_usage [2011/03/22 16:17] deva
Line 1: Line 1:
 =====MPlayer Usage (and some other video stuff)===== =====MPlayer Usage (and some other video stuff)=====
 ====MPlayer==== ====MPlayer====
-Play video stream from webcam through v4l2.+===Play video stream from webcam through v4l2===
 Make sure that mplayer is compiled with the v4l2 use flag. Make sure that mplayer is compiled with the v4l2 use flag.
-Make sure that the kerenl is compiled with video for linux support (Device Drivers ---> Multimedia support  ---> <*> Video For Linux)+Make sure that the kerenl is compiled with video for linux support (Device Drivers ---> Multimedia support  ---> <*> Video For Linux) and with proper device driver support (in the subsections of aforementioned config section).
 <code> <code>
 mplayer -fps 15 tv:// -tv driver=v4l2:device=/dev/video0 mplayer -fps 15 tv:// -tv driver=v4l2:device=/dev/video0
 +</code>
 +
 +===Play MTS files===
 +<code>
 +mplayer -demuxer lavf -lavdopts threads=4:fast:skiploopfilter=all:skipframe=none -fps 25 SOMEFILE.MTS
 </code> </code>
  
Line 37: Line 42:
  
 ===Grabbing from X11=== ===Grabbing from X11===
 +Low resolution and low quality:
 <code> <code>
 ffmpeg -f x11grab -s vga -i :0.0 /tmp/out.mpg ffmpeg -f x11grab -s vga -i :0.0 /tmp/out.mpg
 +</code>
 +
 +Better quality and higher resolution:
 +<code>
 +ffmpeg -r 24 -f x11grab -s 1024x768 -i :0.0 -threads 0 -vcodec libx264 -vpre lossless_ultrafast /tmp/out.mkv
 </code> </code>
  
mplayer/mplayer_usage.txt · Last modified: 2023/12/19 21:35 by deva