Ubuntu Pastebin

Paste from nwgat at Wed, 4 Jan 2017 16:39:46 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
i have this
./playsmb.sh smb://server/share/file.mkv` and i want it to play in mpv as
mpv smb://guest:guest@server/share/file.mkv

this is what i have so far

smb=echo $1 | awk '{gsub("server", "guest:guest@server", $0); print}'
echo ""
echo $smb
echo $1
echo ""
echo "mpv playing"
mpv --hwdec=vaapi --fs $smb
Download as text