{"id":612,"date":"2011-01-11T17:58:21","date_gmt":"2011-01-11T16:58:21","guid":{"rendered":"https:\/\/thebc.ch\/blog\/?p=612"},"modified":"2013-06-26T22:33:00","modified_gmt":"2013-06-26T20:33:00","slug":"mplayer-mencoder","status":"publish","type":"post","link":"https:\/\/thebc.ch\/blog\/?p=612","title":{"rendered":"Mplayer \/ mencoder"},"content":{"rendered":"<p>dump a:<\/p>\n<p>dvd<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -dumpstream -dumpfile filename.dump dvd:\/\/1 (or 2, or3, or...)<\/pre>\n<\/div>\n<p>only a chapter<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -dumpstream -dumpfile chapter1.dump VTS_03_1.VOB<\/pre>\n<\/div>\n<p>real stream<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -dumpstream -dumpfile xxx.rm rtsp:\/\/where\/the\/stream\/is<\/pre>\n<\/div>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>cat avi&#8217;s<\/p>\n<div dir=\"ltr\">\n<pre>cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o output.avi -<\/pre>\n<\/div>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>wmv2avi (multible)<\/p>\n<div dir=\"ltr\">\n<pre>mencoder lola_* -oac pcm -ovc copy -cache 8192 -ofps 100.0 -o lola_final.avi<\/pre>\n<\/div>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>wma2wav<\/p>\n<div dir=\"ltr\">\n<pre>mplayer file.wma -ao pcm -aofile file.wav<\/pre>\n<\/div>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>export audio from a video<\/p>\n<p>if you wan to export the audio stream from a video use:<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -ao pcm:file=dump.wav -vo null video.video<\/pre>\n<\/div>\n<p>this will give you a nice &#8220;wav&#8221; from the whole video without any picture.<\/p>\n<pre>-ao  pcm:file=dump.wav\u00c2\u00a0: tells mplayer to use the standard pcm output and give him the name \"dump.wav\".\r\n-vo null              \u00c2\u00a0: tells mplayer to use no video output.<\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>export single key frames from a video note: this will require a lot of disk space if you don&#8217;t use compression<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -nosound -vo png video.video<\/pre>\n<\/div>\n<pre>-nosound\u00c2\u00a0: tells mplayer that only video will be used.\r\n-vo png \u00c2\u00a0: tells mplayer to use the png image output format.\r\nz=&lt;0-9&gt; \u00c2\u00a0: specifies the compression level. 0 is no compression, 9 is maximum<\/pre>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>this are old ones. playing videos in a given geometry with stopping xscreensaver<\/p>\n<div dir=\"ltr\">\n<pre>mplayer -geometry -0:0 -screenh 480 -screenw 640 -fs -stop-xscreensaver<\/pre>\n<\/div>\n<div dir=\"ltr\">\n<pre>mplayer -geometry -0:0 -screenh 480 -screenw 640 -fs # for DPMS without screensaver<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>dump a: dvd mplayer -dumpstream -dumpfile filename.dump dvd:\/\/1 (or 2, or3, or&#8230;) only a chapter mplayer -dumpstream -dumpfile chapter1.dump VTS_03_1.VOB real stream mplayer -dumpstream -dumpfile xxx.rm rtsp:\/\/where\/the\/stream\/is &nbsp; cat avi&#8217;s cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy &hellip; <a href=\"https:\/\/thebc.ch\/blog\/?p=612\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,24,16],"tags":[27],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-linux","category-mplayer","category-software","tag-oneliners"],"_links":{"self":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=612"}],"version-history":[{"count":6,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions"}],"predecessor-version":[{"id":3150,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/612\/revisions\/3150"}],"wp:attachment":[{"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thebc.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}