利用ubuntu实现上网看电视两不误
在widows下装载一个ubuntu linux系统。可以在一个系统下上网,在一个系统下看电视,我一般在widows下上网,在linux下看电视。
我在linux下用mplayer观看,打开终端输入以下命令:
Myplayer (这是中央3的地址)结果只是有声音,没有图像如下:
ahlian@Ahlian:~$ mplayer
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 2500+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 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
STREAM_ASF, URL:
Resolving tv.lzu.edu.cn for AF_INET6...
Connecting to server tv.lzu.edu.cn[2001:da8:c000::200]: 1755...
Connected
unknown object
unknown object
file object, packet length = 8000 (8000)
unknown object
stream object, stream ID: 1
stream object, stream ID: 2
unknown object
unknown object
data object
mmst packet_length = 8000
Cache size set to 64 KBytes
Cache fill: 0.00% (0 bytes)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 768x576 24bpp 1000.000 fps 950.0 kbps (116.0 kbyte/s)
Clip info:
name: 中央三套
author: netstorms@metc
copyright: 中央电视台
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6003->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
输入以下结果就可以拉:
ahlian@Ahlian:~$ mplayer -vo x11
运行如下:
ahlian@Ahlian:~$ mplayer -vo x11
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) Processor 2500+ (Family: 15, Model: 44, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 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
STREAM_ASF, URL:
Resolving tv.lzu.edu.cn for AF_INET6...
Connecting to server tv.lzu.edu.cn[2001:da8:c000::200]: 1755...
Connected
unknown object
unknown object
file object, packet length = 8000 (8000)
unknown object
stream object, stream ID: 1
stream object, stream ID: 2
unknown object
unknown object
data object
mmst packet_length = 8000
Cache size set to 64 KBytes
Cache fill: 0.00% (0 bytes)
ASF file format detected.
[asfheader] Audio stream found, -aid 1
[asfheader] Video stream found, -vid 2
VIDEO: [WMV3] 768x576 24bpp 1000.000 fps 950.0 kbps (116.0 kbyte/s)
Clip info:
name: 中央三套
author: netstorms@metc
copyright: 中央电视台
xscreensaver_disable: Could not find XScreenSaver window.
GNOME screensaver disabled
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0 size:1327104 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 768 x 576 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 768x576 => 768x576 Planar YV12
[swscaler @ 0x89357b0]SwScaler: using unscaled yuv420p -> rgb32 special converter
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6003->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
AO: [pulse] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
当然也可以用mplayer的打开,open url即可。当然也可以在widows下看电视,在linux下上网赫赫,看自己的兴趣拉。
- 最新评论