无意间发现的。。。
mplayer ×.iso
mplayer能直接播放iso镜像(dvd)
- qqttdh
- 帖子: 896
- 注册时间: 2007-07-20 22:15
- yaoms
- 帖子: 4952
- 注册时间: 2007-10-19 14:51
- 来自: 深圳
- qqttdh
- 帖子: 896
- 注册时间: 2007-07-20 22:15
做个记录
Ubuntu 8.04混音完美解決方法 (pulseaudio問題)
mplayer config
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)
藏一个脚本
有一次把mplayer格式写反了。。。改回来。
代码: 全选
#!/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
上次由 qqttdh 在 2008-09-25 21:07,总共编辑 1 次。
- qiang_liu8183
- 论坛版主
- 帖子: 10701
- 注册时间: 2006-09-10 22:36
- 系统: Arch Debian
- 来自: 北京