首页 > 代码库 > mplayer 在线播放错误

mplayer 在线播放错误

CPU: ARM

Playing rtsp://admin:12345@192.168.1.198/mpeg4/main/ch01/av_stream.
Connecting to server 192.168.1.198[192.168.1.198]: 554...
librtsp: server responds: ‘RTSP/1.0 405 Method Not Allowed‘
STREAM_LIVE555, URL: rtsp://admin:12345@192.168.1.198/mpeg4/main/ch01/av_stream
Stream not seekable!
file format detected.
Unable to determine our source address: This computer has an invalid IP address: 0x0

这个错误是因为没有设置网关造成的

route add default gw   x.x.x.x  eth0

设置后问题消失

 

Playing rtsp://admin:12345@192.168.1.198/mpeg4/main/ch01/av_stream.
Connecting to server 192.168.1.198[192.168.1.198]: 554...
librtsp: server responds: ‘RTSP/1.0 401 Unauthorized‘
STREAM_LIVE555, URL: rtsp://admin:12345@192.168.1.198/mpeg4/main/ch01/av_stream
Stream not seekable!
file format detected.
Initiated "video/H264" RTP subsession on port 39284
Initiated "audio/PCMU" RTP subsession on port 33848
demux_rtp: Failed to guess the video frame rate
VIDEO: [H264] 0x0 0bpp 0.000 fps 0.0 kbps ( 0.0 kbyte/s)
FPS not specified in the header or invalid, use the -fps option.
==========================================================================
Opening audio decoder: [alaw] aLaw/uLaw audio decoder
AUDIO: 8000 Hz, 1 ch, s16le, 64.0 kbit/50.00% (ratio: 8000->16000)
Selected audio codec: [ulaw] afm: alaw (uLaw)
==========================================================================
[AO OSS] audio_setup: Can‘t open audio device /dev/sound/dsp: No such device or address
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 8000Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 26.4 (26.4) of 0.0 (unknown) 0.8%

 

播放RTSP/ /管理员12345@192.168.1.198/mpeg4/main/ch01/av_stream

连接到服务器192.168.1.198 [ 192.168.1.198 ]554

librtsp服务器响应RTSP/1 401未经授权

stream_live555网址:RTSP/ /管理员12345@192.168.1.198/mpeg4/main/ch01/av_stream

可搜索

文件格式检测

发起的“视频/ H264RTP会话在端口39284

发起的“音频/ PCMURTP会话在端口33848

demux_rtp未能视频帧速率

视频:[ H264 ] 0x0 0bpp 0帧0 kbps的0字节/秒)

FPS在页眉或无效没有指定,使用FPS的选项

==========================================================================

打开音频解码器[]/ ulaw音频解码器

音频:8000赫兹1通道s16le64 kbit/50%比:8000 - 16000)

选定的音频编解码器:[ ulaw ]一个原子力显微镜ulaw

==========================================================================

[] audio_setup OSS不能打开音频设备/ dev /声音/ DSP没有这样的设备或地址

打开/ dev / DVB / adapter0 / audio0

DVB音频设备没有这样的文件或目录

[] 8000Hz 1Ch s16le(每个样品的2个字节)

视频:视频无

开始播放