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 revision Previous revision
Next revision
Previous revision
mplayer:mplayer_usage [2009/09/10 11:27]
deva
mplayer:mplayer_usage [2019/11/12 21:56] (current)
deva
Line 6: Line 6:
 <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>
  
Line 61: Line 72:
 </code> </code>
 This is not exactly the mencoder approach... but this seemed to be the right place to put it. This is not exactly the mencoder approach... but this seemed to be the right place to put it.
 +
 +===Browser friendly videos===
 +<code>
 +ffmpeg -i my-original-video.wmv -vcodec libx264 -f mp4 -vb 1024k -preset slow my-new-video.mp4
 +</code>
mplayer/mplayer_usage.1252574842.txt.gz ยท Last modified: 2009/09/10 11:27 by deva