PDA

View Full Version : A site can rtmpdump but just only few seconds


benny
02-04-2012, 09:05 PM
Hi all,

I have found a stream using rtmpdump to watch...

rtmpdump -r "rtmp://solive.wni.co.jp/live" -s "http://weathernews.jp/framework/current/mws_streaming_video.swf" -p "http://weathernews.jp/solive24" -a "live" -y "livestream1" -v | vlc -

original website: http://weathernews.jp/solive24/

but it just run for 2~3 seconds and then the rtmpdump will exit ...

(-v options shows too long but just some extract to here)....


DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: RTMP_ClientPacket, received: invoke 180261 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwcheck>
DEBUG: Invoking _result
DEBUG: RTMP_ClientPacket, received: invoke 40 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_onbwdone>
DEBUG: HandleCtrl, received ctrl. type: 32, len: 6
DEBUG: HandleCtrl, Stream BufferReady 1
162.180 kB / 1.96 sec
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
....
....
DEBUG: HandleCtrl, Stream BufferReady 1
[flv @ 0x89eca20] Estimating duration from bitrate, this may be inaccurate
181.228 kB / 2.48 sec
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
.....
.....
[0x8a5c2ec] xcb_xv generic error: no available XVideo adaptor
DEBUG: HandleCtrl, received ctrl. type: 32, len: 6
DEBUG: HandleCtrl, Stream BufferReady 1
225.479 kB / 3.03 sec
....
....
....
DEBUG: HandleCtrl, received ctrl. type: 32, len: 6
DEBUG: HandleCtrl, Stream BufferReady 1
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
283.093 kB / 4.86 sec
DEBUG: RTMP_Read returned: 0
Download complete
DEBUG: Closing connection.


any ideas?
Thanks a lot !

KSV
02-04-2012, 10:23 PM
replace -s with -W in your command line.

benny
02-06-2012, 09:19 AM
SOLVED!

Thanks....

but I have tried to put this into the ffserver and it can't work...

Port 8090
RTSPPort 554
BindAddress 0.0.0.0
MaxHTTPConnections 1000
MaxClients 200
MaxBandwidth 10000
CustomLog -

<Stream test2.flv>
Format rtp
File "rtmp://solive.wni.co.jp:1935/live app=live swfUrl=http://weathernews.jp/framework/current/mws_streaming_video.swf?1 pageUrl=http://weathernews.jp/solive24 playpath=livestream1 live=1"
MulticastAddress 224.124.0.1
MulticastPort 5000
MulticastTTL 16
NoLoop
</Stream>


the server starts and come with this error: (starts with "sudo ffserver")

ffserver version git-2012-01-17-7e62315 Copyright (c) 2000-2012 the FFmpeg developers
built on Jan 17 2012 17:44:01 with gcc 4.4.3
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
libavutil 51. 34.100 / 51. 34.100
libavcodec 53. 56.105 / 53. 56.105
libavformat 53. 30.100 / 53. 30.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 59.100 / 2. 59.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 51. 2.100 / 51. 2.100
Tue Feb 7 00:17:46 2012 Opening file 'rtmp://solive.wni.co.jp:1935/live app=live swfUrl=http://weathernews.jp/framework/current/mws_streaming_video.swf?1 pageUrl=http://weathernews.jp/solive24 playpath=livestream1 live=1'
Tue Feb 7 00:18:37 2012 Could not open 'rtmp://solive.wni.co.jp:1935/live app=live swfUrl=http://weathernews.jp/framework/current/mws_streaming_video.swf?1 pageUrl=http://weathernews.jp/solive24 playpath=livestream1 live=1': -5
Tue Feb 7 00:18:37 2012 FFserver started.


any ideas?

KSV
02-06-2012, 09:36 AM
your ffserver doesn't seems to be compiled with librtmp.

benny
02-06-2012, 10:22 AM
Yes....I just found that issue...

but ... how to install?
I have no idea... (just know how to install libvpx in this link:)

http://ubuntuforums.org/showthread.php?t=786095

currently using ubuntu lucid 64bit

KSV
02-06-2012, 11:02 AM
you are using linux then why don't you compile it yourself with whatever libs you want?

benny
02-06-2012, 11:14 AM
thanks for quick reply...

BTW... I am new to linux world so just know how to search the website and follow the instructions to install the packages...

I just follow the instructions and then sucessfully install the libvpx in the ffmpeg...

but I can't find any information or even files on librtmp....

Sorry about that....