mplayer能直接播放iso镜像(dvd)

Totem,mplayer,sopcast,realplayer,bmp
回复
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15

mplayer能直接播放iso镜像(dvd)

#1

帖子 qqttdh » 2008-09-06 8:23

无意间发现的。。。
mplayer ×.iso
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#2

帖子 yaoms » 2008-09-06 8:27

呵呵
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15

#3

帖子 qqttdh » 2008-09-15 11:30

做个记录
Ubuntu 8.04混音完美解決方法 (pulseaudio問題)

mplayer config

代码: 全选

[default]
# Write your default config options here!
#ao=alsa
ao=pulse
vo=xv
monitoraspect=16:10
ontop=1
framedrop=yes
#cache = 8192
cache = 20480
#slang = en
subcp=cp936
subfont-autoscale=1
font=/usr/share/fonts/truetype/wqy/wqy-zenhei.ttf
overlapsub=1
sub-fuzziness=1
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15

Re: mplayer能直接播放iso镜像(dvd)

#4

帖子 qqttdh » 2008-09-25 20:03

藏一个脚本

代码: 全选

#!/bin/bash
#playdir_shuffle

#kill players
killall mpg123 ogg123 mplayer flac123 beep-media-player audacious;
if [ "`ps aux |grep ' mplayer '|grep -v grep|wc -l`" != 0 ];then
kill -9 `ps aux |grep ' mplayer '|grep -v grep|awk {'print $2'}`
fi

if [ "`ps aux |grep ' mpg123 ' |grep -v grep|wc -l`" != 0 ];then
kill -9 `ps aux |grep ' mpg123 '|grep -v grep|awk {'print $2'}`
fi

if [ "`ps aux |grep ' ogg123 '|grep -v grep|wc -l`" != 0 ];then
kill -9 `ps aux |grep ' ogg123 '|grep -v grep|awk {'print $2'}`
fi

#clean
if [ -s /tmp/mlist ]; then
rm /tmp/mlist
fi

#make play list
dr=`pwd`
#dr=`dirname "$1"`
#cd "$dr"
#st=${1##*\/}
st="`echo "$1"|sed 's/\[/\\\[/g;s/\]/\\\]/g'`"
echo "$st"
list="`ls "$dr"|grep -v ".jpg"|grep -v ".srt"|grep -v "padding_file"`"
a="`echo "$list"|grep -n "$st"|sed -n 1p|awk -F : '{print $1}'`"
b="`echo "$list"|wc -l`"
#error manage
c=$#
if [ -z $a ];then a=1;c=0;fi
#######
for((i=$a;i<=$b;i++))do
if [ $c = 0 ];then
song="`echo "$list"|sed -n $i,$(($i))p`"
echo "$dr/$song" >>/tmp/mlist
elif [ $c = 1 ];then
song="`echo "$list"|sed -n $i,$(($i))p`"
echo "$dr/$song" >>/tmp/mlist
else
song="`echo "$list"|sed -n $i,$(($i))p`"
song1="`echo "$song"|sed 's/\[/\\\[/g;s/\]/\\\]/g'`"
need_list="`echo "$*"|grep "$song1"|wc -l`"
if [ $need_list = 1 ];then
echo "$dr/$song" >>/tmp/mlist
fi
fi
done

#play with list
if [ -s /tmp/mlist ]; then
#if [ $c = 0 ];then
#mplayer -playlist /tmp/mlist
if [ $c = 1 ];then
mplayer -loop 0 -playlist /tmp/mlist -shuffle
else
mplayer -loop 0 -playlist /tmp/mlist -shuffle
fi
#clean
rm /tmp/mlist
fi

exit
有一次把mplayer格式写反了。。。改回来。
上次由 qqttdh 在 2008-09-25 21:07,总共编辑 1 次。
头像
qiang_liu8183
论坛版主
帖子: 10701
注册时间: 2006-09-10 22:36
系统: Arch Debian
来自: 北京

Re: mplayer能直接播放iso镜像(dvd)

#5

帖子 qiang_liu8183 » 2008-09-25 20:24

火星了 :em04
干不了大事就把小事干的大气点
回复