Feng Yu
deepin
2020-12-11 03:44 deepin表示这个锅我不背
Reply Like 1 View the author
deepin表示这个锅我不背
你的网络支持ipv6吗?
深度Linux支持IPV6协议的,而且是支持特别好,因为IPv6是内核去支持的,深度liunx就是让普通人好去配置,因为内核是用命令配置的,你不能使用IPv6,可能是你的宽带运营商没有支持或分配IPv6的地址给你,在或者是你路由器设置问题,也可能是那个软件没有设置对,你自己检查一下,现在有测试IPV6的网站,你去测试一下,看看你的网是不是IPV6,
1) 测试ipv6的网站,说我的电脑没有ipv6,不支持ipv6
2) 在配置文件里面关闭了ipv6以后重启,mplayer还是会使用ipv6去解析视频地址,感觉很奇怪
➜ sysctl.d tail 99-sysctl.conf
###################################################################
# Magic system request Key
# 0=disable, 1=enable all, >1 bitmask of sysrq functions
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
# for what other values do
#kernel.sysrq=438
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
举个例子,用mplayer播放网络视频
mplayer http://cntv.vod.cdn.myqcloud.com/flash/mp4video63/TMS/2020/11/25/c9d907b6b69248a5ae253eff407cdc87_h2642000000nero_aac16-1.mp4
MPlayer 1.3.0 (Debian), built with gcc-8 (C) 2000-2016 MPlayer Team
do_connect: could not connect to socket
connect: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing http://cntv.vod.cdn.myqcloud.com/flash/mp4video63/TMS/2020/11/25/c9d907b6b69248a5ae253eff407cdc87_h2642000000nero_aac16-1.mp4.
Resolving cntv.vod.cdn.myqcloud.com for AF_INET6...
Couldn't resolve name for AF_INET6: cntv.vod.cdn.myqcloud.com
Resolving cntv.vod.cdn.myqcloud.com for AF_INET...
Connecting to server cntv.vod.cdn.myqcloud.com[110.185.114.63]: 80...
Cache size set to 320 KBytes
Cache fill: 0.00% (0 bytes)
libavformat version 58.20.100 (external)
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f1b8c1a1e00]Protocol name not provided, cannot determine if input is local or a network protocol, buffers and access patterns cannot be configured optimally without knowing the protocol
Cannot open libmwv206dec.so, libmwv206dec.so: cannot open shared object file: No such file or directory
Cannot open libmwv206dec.so, libmwv206dec.so: cannot open shared object file: No such file or directory
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang eng
VIDEO: [H264] 1280x720 24bpp 25.000 fps 1872.7 kbps (228.6 kbyte/s)
Failed to open VDPAU backend libvdpau_i965.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.35.100 (external)
Cannot open libmwv206dec.so, libmwv206dec.so: cannot open shared object file: No such file or directory
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
major_brand: mp42
minor_version: 0
compatible_brands: mp42avc1
creation_time: 2020-11-25T19:24:25.000000Z
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, floatle, 125.4 kbit/4.08% (ratio: 15675->384000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [pulse] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1280x720 => 1280x720 Planar YV12
A: 2.1 V: 2.1 A-V: 0.000 ct: 0.040 0/ 0 10% 1% 0.4% 0 0 45%
Exiting... (Quit)
使用ipv6就会解析不成功,必须使用ipv4
➜ ~ mpv http://cntv.vod.cdn.myqcloud.com/flash/mp4video63/TMS/2020/11/25/c9d907b6b69248a5ae253eff407cdc87_h2642000000nero_aac16-1.mp4
Playing: http://cntv.vod.cdn.myqcloud.com/flash/mp4video63/TMS/2020/11/25/c9d907b6b69248a5ae253eff407cdc87_h2642000000nero_aac16-1.mp4
使用mpv播放直接卡住不动,估计mpv不会自动切换到ipv4去解析视频ip地址吧