Audio/video stream recording forums 
 | 
| Attention Visitor: | 
You may have to register or log in before you can post: 
  | 
		
			
  | 	
	
	
		
		|||||||
     
		  
 
	
	 | 
| 
		 | 
	Thread Tools | Display Modes | 
| 
		 
			 
			#1  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			ERROR: RTMP_ReadPacket, failed to read RTMP packet headerI'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 What's wrong?  | 
| 
		 
			 
			#2  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerYour 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"  | 
| 
		 
			 
			#3  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerQuote: 
	
  | 
| 
		 
			 
			#4  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerYes 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==" Code: 
	?t=1412635103&h=/p3er68fn+zbn9wbschbxg== Code: 
	?t=1412632809&h=whr0kjm1683opdp8zlxv4q==  | 
| 
		 
			 
			#5  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerThank 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[^\"]*")" 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[^\&]*")" P.S. Sorry for my bad English.  | 
| 
		 
			 
			#6  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerQuote: 
	
  | 
| 
		 
			 
			#7  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerworks 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 ![]()  | 
| 
		 
			 
			#8  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerQuote: 
	
  | 
| 
		 
			 
			#9  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerplaypath 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 ![]()  | 
| 
		 
			 
			#10  
			
			
			
			
			
		 
		
		
	 | 
|||
		
		
  | 
|||
	
	
		
			
			Re: ERROR: RTMP_ReadPacket, failed to read RTMP packet headerhasomaso, 
		
	
		
		
		
		
		
	
		
		
	
	
	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?  | 
 
 
 | 
		
	
		
| Tags: rtmpdump | 
| Thread Tools | |
| Display Modes | |
		
  | 
	
		
  |