Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-18-2012, 04:50 AM
yegorov-p yegorov-p is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
yegorov-p is on a distinguished road
Default

[rtmpgw] - video starts to play only when I stop rtmpgw


Hi everyone.

I'd like to receive video stream from that camera:
http://www.centrettc.ru/cam3-stream-jw/ or direct link
http://www.centrettc.ru/pub/jwp/play....94.30/rtplive

So, I start rtmpgw:
Code:
rtmpgw -r "rtmp://62.33.94.30/rtplive/cam3-pf1.stream" -t "rtmp://62.33.94.30/rtplive/cam3-pf1.stream" -s "http://www.centrettc.ru/pub/jwp/player.swf" -p "http://www.centrettc.ru/cam3-stream-jw/" -g 81
In several seconds rtmpgw connects and it shows something like
Code:
260.394 KB / 10.22 sec
But VLC, connected to http://127.0.0.1:81 shows nothing! Then, in 3-4 minutes, rtmpgw stops and vlc starts to show video from the camera =)
Then, after 3-4 minutes, vlc stops and rtmp writes something like that:
Quote:
D:\[DROPBOX]\My Dropbox\rtmp>rtmpgw -r "rtmp://62.33.94.30/rtplive/cam3-pf1.stre
am" -t "rtmp://62.33.94.30/rtplive/cam3-pf1.stream" -s "http://www.centrettc.ru/
pub/jwp/player.swf" -p "http://www.centrettc.ru/cam3-stream-jw/" -g 81
HTTP-RTMP Stream Gateway 2.4 git-6230845 2011-9-25
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on http://0.0.0.0:81
processTCPrequest, Range request not supported
Connecting ... port: 1935, app: rtplive/cam3-pf1.stream
5238.459 KB / 215.39 sec
ERROR: RTMP_ReadPacket, failed to read RTMP packet body. len: 18634
Closing connection... done!
Can somebody help me with that?
Reply With Quote
  #2  
Old 01-18-2012, 11:44 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


use Mplayer
Code:
rtmpdump -r "rtmp://62.33.94.30/rtplive" -a "rtplive" -f "WIN 10,3,183,10" -W "http://www.centrettc.ru/pub/jwp/player.swf" -p "http://www.centrettc.ru/cam3-stream-jw/" --live -y "cam3-pf2.stream" | "C:\PROGRA~1\MPlayer\mplayer.exe" - -cache 8192 -framedrop
Reply With Quote
  #3  
Old 01-18-2012, 12:19 PM
yegorov-p yegorov-p is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
yegorov-p is on a distinguished road
Default

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


I know how to dump it and how to play it with mplayer ;-)
I don't understand, why rtmpgw doesn't work.
Reply With Quote
  #4  
Old 01-18-2012, 12:33 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


it's not rtmpgw's fault. open the url 127.0.0.1:81 in your browser and it will start saving data normally. it means rtmpgw is sending back data as intended but player is choking on that particular stream. even when you try to pipe through rtmpdump player shows exactly same behavior.
Reply With Quote
  #5  
Old 01-18-2012, 12:53 PM
yegorov-p yegorov-p is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
yegorov-p is on a distinguished road
Default

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


Ok. Here's another example

Source: Run rtmpgw as
Quote:
rtmpgw -r "rtmp://62.149.26.240/tv/inter" -t "rtmp://62.149.26.240/tv/inter" -s "http://inter.ua/images/player.swf" -g 81
VLC plays it perfectly. Why? =)
Reply With Quote
  #6  
Old 01-18-2012, 01:05 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


Quote:
Originally Posted by yegorov-p View Post
Ok. Here's another example

Source:

Run rtmpgw as


VLC plays it perfectly. Why? =)
read the bold part again. it may be due to improper stream format.

Quote:
Originally Posted by KSV View Post
it's not rtmpgw's fault. open the url 127.0.0.1:81 in your browser and it will start saving data normally. it means rtmpgw is sending back data as intended but player is choking on that particular stream. even when you try to pipe through rtmpdump player shows exactly same behavior.
Reply With Quote
  #7  
Old 01-18-2012, 04:48 PM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: [rtmpgw] - video starts to play only when I stop rtmpgw


do not know, maybe I was wrong code - but it works
use mplayer(try cache8192,framedrop)
Code:
rtmpgw -r "rtmp://62.33.94.30/rtplive" -a "rtplive" -W "http://www.centrettc.ru/pub/jwp/player.swf" -p "http://www.centrettc.ru/cam3-stream-jw/" --live -y "cam3-pf2.stream" -g 81 | ping -n 1 -w 100 192.168.254.254 >nul | "C:\PROGRA~1\MPlayer\mplayer.exe" - http://127.0.0.1:81


use vlc(try cache 30000ms - 50000ms)
Code:
rtmpgw -r "rtmp://62.33.94.30/rtplive" -a "rtplive" -W "http://www.centrettc.ru/pub/jwp/player.swf" -p "http://www.centrettc.ru/cam3-stream-jw/" -v -y "cam3-pf2.stream" -g 81 | ping -n 1 -w 100 192.168.254.254 >nul | "C:\PROGRA~1\VideoLAN\VLC\vlc.exe" - http://127.0.0.1:81

Last edited by chap : 01-19-2012 at 03:00 AM.
Reply With Quote
Reply Post New Thread
Tags:



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 01:03 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons