[问题]mplayer能播放中文地址的流媒体吗?

Totem,mplayer,sopcast,realplayer,bmp
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

[问题]mplayer能播放中文地址的流媒体吗?

#1

帖子 tnger » 2008-06-15 19:48

mplayer播放mms, rtsp都没问题,当前提是英文地址,如果是中文地址该如何?
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#2

帖子 xiooli » 2008-06-15 20:00

试试不就行了吗?
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

#3

帖子 tnger » 2008-06-15 20:26

xiooli 写了:试试不就行了吗?
肯定是试过了不行。不然问这样的问题不是浪费大家时间吗?
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#4

帖子 xiooli » 2008-06-15 20:30

tnger 写了:
xiooli 写了:试试不就行了吗?
肯定是试过了不行。不然问这样的问题不是浪费大家时间吗?
可能是编码的问题

代码: 全选

echo "mms:XXX" |iconv -f utf-8 -t gb2312
然后把出来的地址再试试?
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

#5

帖子 tnger » 2008-06-15 21:12

echo "rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |iconv -f utf-8 -t gb2312
rtsp://210.29.99.11:555/����/���Ŵ�ʦ������/����.RM
头像
xiooli
帖子: 6956
注册时间: 2007-11-19 21:51
来自: 成都
联系:

#6

帖子 xiooli » 2008-06-15 21:29

tnger 写了:echo "rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |iconv -f utf-8 -t gb2312
rtsp://210.29.99.11:555/����/���Ŵ�ʦ������/����.RM
:em27 用real试试?
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

#7

帖子 tnger » 2008-06-15 21:57

xiooli 写了:
tnger 写了:echo "rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |iconv -f utf-8 -t gb2312
rtsp://210.29.99.11:555/����/���Ŵ�ʦ������/����.RM
:em27 用real试试?
real播放的时候显示是可以播放的,但几乎所有的视频都没有声音,很多连图像都没有,很少有能够正常播放的
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

#8

帖子 tnger » 2008-06-17 21:07

大家帮忙顶上去啊!
看有没有高手解决这个问题!
vvvli
帖子: 441
注册时间: 2006-10-26 7:02

#9

帖子 vvvli » 2008-06-17 22:59

转换一下:
echo "210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |xargs wget
出来信息:
--2008-06-17 22:56:06-- http://210.29.99.11:555/%E5%A5%A5%E8%BF ... 6%93%8D.RM

这就是转换后的url,加上rstp:// 试试。
不行的话 echo "210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |iconv -f utf8 -t gbk|xargs wget
上次由 vvvli 在 2008-06-18 1:00,总共编辑 1 次。
头像
HuntXu
帖子: 5776
注册时间: 2007-09-29 3:09

#10

帖子 HuntXu » 2008-06-17 23:00

ls的漂亮~
HUNT Unfortunately No Talent...
头像
tnger
帖子: 69
注册时间: 2007-10-06 0:07

#11

帖子 tnger » 2008-06-18 8:06

vvvli 写了:转换一下:
echo "210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |xargs wget
出来信息:
--2008-06-17 22:56:06-- http://210.29.99.11:555/%E5%A5%A5%E8%BF ... 6%93%8D.RM

这就是转换后的url,加上rstp:// 试试。
不行的话 echo "210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |iconv -f utf8 -t gbk|xargs wget
echo "210.29.99.11:555/奥运/跟着大师看奥运/体操.RM" |xargs wget
--08:03:41-- http://210.29.99.11:555/%E5%A5%A5%E8%BF ... 6%93%8D.RM
=> `��%93�%93%8D.RM'
正在连接 210.29.99.11:555... 已连接。
已发出 HTTP 请求,正在等待回应... 404 Not Found
08:03:41 错误 404:Not Found。
vvvli
帖子: 441
注册时间: 2006-10-26 7:02

#12

帖子 vvvli » 2008-06-18 8:33

我倒,转换出来url再用 mplayer 开阿。
fuhuizn
帖子: 947
注册时间: 2006-01-06 22:55
系统: ubuntu
联系:

#13

帖子 fuhuizn » 2008-06-18 9:40

转换成urlencode之前要先转换成gbk吧,弄个python脚本吧
头像
yaoms
帖子: 4952
注册时间: 2007-10-19 14:51
来自: 深圳

#14

帖子 yaoms » 2008-06-18 9:49

不需要转码吧。地址没问题,mplayer就能播;看看这些信息:
$ mplayer rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Celeron(R) M processor 1.60GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM.
Resolving 210.29.99.11 for AF_INET6...
Couldn't resolve name for AF_INET6: 210.29.99.11
Connecting to server 210.29.99.11[210.29.99.11]: 555...
connection timeout
STREAM_LIVE555, URL: rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM
This stream is non-cacheable
Stream not seekable!
file format detected.
$ ping 210.29.99.11
PING 210.29.99.11 (210.29.99.11) 56(84) bytes of data.

--- 210.29.99.11 ping statistics ---
39 packets transmitted, 0 received, 100% packet loss, time 38029ms
Nothing 有事请发邮件到 yms541 AT gmail.com
alias 爱慕颇雷尔='mplayer'
fuhuizn
帖子: 947
注册时间: 2006-01-06 22:55
系统: ubuntu
联系:

试试这个

#15

帖子 fuhuizn » 2008-06-18 10:02

urlenc.py:

代码: 全选

#!/usr/bin/python
import urllib
import sys

url = sys.argv[1]
try:
    url = url.decode('utf-8').encode('gbk')
except:
    pass
print urllib.quote(url,':/')
使用:

代码: 全选

mplayer `./urlenc.py rtsp://210.29.99.11:555/奥运/跟着大师看奥运/体操.RM`
回复