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 10-06-2014, 04:40 PM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

ERROR: RTMP_ReadPacket, failed to read RTMP packet header


I'm trying to receive live stream video from a site of a regional TV company.
I run
Code:
rtmpdump -v -r rtmp://ntk-origin2.cdn.ngenix.net:1935/live/_definst_/9tv-orb_ -W http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf -p http://kuban24.tv/tv/ -z
with -z option and I get ERROR: RTMP_ReadPacket, failed to read RTMP packet header.
What's wrong?
Attached Files
File Type: txt rtmpdump.txt (11.6 KB, 0 views)
Reply With Quote
  #2  
Old 10-06-2014, 05:11 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Your datas are wrong.Also your playpath is not complete.Try this below.
Code:
-v
-r "rtmp://ntk-live.cdn.ngenix.net/slive/_definst_/" 
-a "slive/_definst_/"
-W "http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf" 
-y "mp4:9tv-orb?t=1412632809&h=wHR0kJM1683OpDp8ZLxV4Q=="
-o "out.flv"
greetz
Reply With Quote
  #3  
Old 10-06-2014, 05:31 PM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Quote:
Originally Posted by troller12 View Post
Your datas are wrong.Also your playpath is not complete.Try this below.
Code:
-v
-r "rtmp://ntk-live.cdn.ngenix.net/slive/_definst_/" 
-a "slive/_definst_/"
-W "http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf" 
-y "mp4:9tv-orb?t=1412632809&h=wHR0kJM1683OpDp8ZLxV4Q=="
-o "out.flv"
greetz
Another error: Closing connection: NetStream.Play.StreamNotFound
Attached Files
File Type: txt rtmpdump_1.txt (14.3 KB, 0 views)
Reply With Quote
  #4  
Old 10-06-2014, 05:41 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Yes you need to refresh the playpath which is dynamic.Just reload the site to get the new session playpath.
Code:
-y "mp4:9tv-orb?t=1412635103&h=/p3er68fn+zbn9wbschbxg=="
This part below...
Code:
?t=1412635103&h=/p3er68fn+zbn9wbschbxg==
...before it was...
Code:
?t=1412632809&h=whr0kjm1683opdp8zlxv4q==
greetz
Reply With Quote
  #5  
Old 10-07-2014, 01:54 AM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Thank a lot for your advice. It works. I add curl and grep subcommands on my Linux system for extract current dynamic part and it's successful:
Code:
rtmpdump -v -r "rtmp://ntk-live.cdn.ngenix.net/slive/_definst_/" -a "slive/_definst_/" -W "http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf" -y "$(curl -s http://kuban24.tv/tv/ | grep -o "mp4:9tv-orb[^\"]*")"
Could you help me again with other site? I use the same way with dynamic part detection,
Code:
rtmpdump -v -r "rtmp://ua4.parom.tv:1935/stream/" -a "stream/" -W "http://ru.parom.tv/player.swf" -p "http://ru.parom.tv/ru/1tv" -y "$(curl -s http://ru.parom.tv/ru/1tv | grep -Po "file=\K[^\&]*")"
but I get the same error RTMP_ReadPacket, failed to read RTMP packet header. What's wrong?
P.S. Sorry for my bad English.
Attached Files
File Type: txt rtmpdump_2.txt (10.2 KB, 0 views)
Reply With Quote
  #6  
Old 10-08-2014, 02:23 PM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Quote:
Originally Posted by nostromo View Post
Could you help me again with other site? I use the same way with dynamic part detection,
Code:
rtmpdump -v -r "rtmp://ua4.parom.tv:1935/stream/" -a "stream/" -W "http://ru.parom.tv/player.swf" -p "http://ru.parom.tv/ru/1tv" -y "$(curl -s http://ru.parom.tv/ru/1tv | grep -Po "file=\K[^\&]*")"
but I get the same error RTMP_ReadPacket, failed to read RTMP packet header. What's wrong?
P.S. Sorry for my bad English.
I already decompiled http://ru.parom.tv/player.swf via ffdec, but there's not SecureToken in it. Other ideas how can I get this stream? What's wrong? Why I get ERROR: RTMP_ReadPacket, failed to read RTMP packet header? Please help me.
Reply With Quote
  #7  
Old 10-08-2014, 02:35 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


works fine...!

Code:
rtmpdump -v -r "rtmp://ntk-live.cdn.ngenix.net/slive/_definst_/" -a "slive/_definst_/" -f "WIN 15,0,0,167" -W "http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf" -p "http://kuban24.tv/tv/" -y "mp4:9tv-orb?t=1412796614&h=5r5M83V9SAfnxxcBx9/z4g==" -o "output.flv"
Code:
RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting Live Stream
INFO: Metadata:
INFO:   presetname              Custom
INFO:   creationdate            Sat Oct 04 17:42:40 2014
INFO:   videodevice             AVerMedia BDA Analog Capture
INFO:   framerate               25.00
INFO:   width                   448.00
INFO:   height                  354.00
INFO:   videocodecid            avc1
INFO:   videodatarate           650.00
INFO:   avclevel                31.00
INFO:   avcprofile              77.00
INFO:   videokeyframe_frequency 5.00
INFO:   audiodevice             Realtek HD Audio Input
INFO:   audiosamplerate         44100.00
INFO:   audiochannels           2.00
INFO:   audioinputvolume        22.00
INFO:   audiocodecid            .mp3
INFO:   audiodatarate           128.00
5748.160 kB / 63.48 sec
Reply With Quote
  #8  
Old 10-08-2014, 02:53 PM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


Quote:
Originally Posted by hasomaso View Post
works fine...!

Code:
rtmpdump -v -r "rtmp://ntk-live.cdn.ngenix.net/slive/_definst_/" -a "slive/_definst_/" -f "WIN 15,0,0,167" -W "http://kuban24.tv/bundles/frontend/js/flowplayer-3.2.5.swf" -p "http://kuban24.tv/tv/" -y "mp4:9tv-orb?t=1412796614&h=5r5M83V9SAfnxxcBx9/z4g==" -o "output.flv"
.........
It works well, but I say about another site (http://ru.parom.tv/ru/1tv) with the same error (my previous posts)
Reply With Quote
  #9  
Old 10-08-2014, 03:23 PM
hasomaso hasomaso is offline
Senior Member
 
Join Date: Apr 2011
Posts: 943
hasomaso is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


playpath line change every seconds that is the problem..!

Code:
rtmpdump -v -r "rtmp://ua4.parom.tv:1935/stream/" -a "stream/" -f "WIN 15,0,0,167" -W "http://ru.parom.tv/player.swf" -p "http://ru.parom.tv/ru/1tv" -y "stream237?87" -o "output.flv"
Code:
RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
INFO: Metadata:
INFO:   Server                  NGINX RTMP (github.com/arut/nginx-rtmp-module)
INFO:   width                   704.00
INFO:   height                  576.00
INFO:   displayWidth            704.00
INFO:   displayHeight           576.00
INFO:   duration                0.00
INFO:   framerate               25.00
INFO:   fps                     25.00
INFO:   videodatarate           683.00
INFO:   videocodecid            7.00
INFO:   audiodatarate           125.00
INFO:   audiocodecid            10.00
6357.014 kB / 46684.60 sec
Reply With Quote
  #10  
Old 10-08-2014, 04:19 PM
nostromo nostromo is offline
Junior Member
 
Join Date: Oct 2014
Posts: 9
nostromo is on a distinguished road
Default

Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet header


hasomaso,
It's intresting. When I watch network traffic via Wireshark I also see that the playpath (file) variable always changed, but it's always stream237?s=<big hex value (34 digits)>. You wrote -y "stream237?87". How you find it? Do you transform the big hex value after s= or do something else?
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 11:50 AM.


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