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-16-2012, 03:10 PM
blousefet blousefet is offline
Junior Member
 
Join Date: Dec 2011
Posts: 11
blousefet is on a distinguished road
Default

rtmpdump and "no frame" error


Hi everyone,

I managed to write a perl script to launch rtmpdump perfectly...
It works as a charm and allows me to schedule download for some livestreams.
Typical command would be :
/usr/local/bin/rtmpdump -r rtmpe://rtmpstreamwebsite.com -a typicalApp -f flashVer -W swfUrl --live -C AMFconnectparams -y playpath -o flvfile

Most of the time (say 90%), my downloaded streams are playable through vlc and when not through mplayer which seems more tolerant with errors.
However, sometimes the stream wont be playable at all without a clue of what's wrong in it...
vlc/mplayer/ffmpeg tells me "no frame".

Typical output in that case :
[h264 @ ???] no frame!
Last message repeated 38 times

Sometimes its playable even though but I would get this :
[flv @ ???] Stream discovered after head already parsed
Truncating packet of size 13574511 to 12471295

Now, i test the file by running an ffmpeg -i command which will tell me instantly if the stream will not be playable.

I then launch GetFlv (that I purchased) to download the same stream. The resulting flv is playable with no problem.
I know that rtmpdump dumps the stream as it downloads it ... (or am I wrong ?).
So what's the problem ? is there something I need to do to avoid these streams not to be unplayable ? How can I manage to play corrupted downloaded streams ?

Thanks for help
Reply With Quote
  #2  
Old 01-17-2012, 05:34 PM
blousefet blousefet is offline
Junior Member
 
Join Date: Dec 2011
Posts: 11
blousefet is on a distinguished road
Default

Re: rtmpdump and "no frame" error


No answers ... but I found something interesting about this cases..;

Once i read output for command rtmpdump, it shows this annoying message :
WARNING: Received FLV packet before play()! Ignoring.

Then i had the idea to try to toggle debug mode on rtmpdump, and saw that problems :
Code:
DEBUG2: RTMP_ReadPacket: fd=332
DEBUG2:   0000:  05 00 00 00 00 00 2d 09  01 00 00 00               ......-.....      
DEBUG2:   0000:  17 00 00 00 00 01 4d 00  1f ff e1 00 19 67 4d 40   ......M......gM@  
DEBUG2:   0010:  1f 96 54 05 01 ed 80 a8  40 00 00 03 00 40 00 00   ..T.....@....@..  
DEBUG2:   0020:  05 27 68 48 9a 80 01 00  04 68 ce 35 20            .'hH.....h.5      
WARNING: Received FLV packet before play()! Ignoring.
And then again :
Code:
DEBUG2: RTMP_ReadPacket: fd=332
DEBUG2:   0000:  05 00 00 00 00 00 02 09  01 00 00 00               ............      
DEBUG2:   0000:  57 00                                              W.                
DEBUG: ignoring too small video packet: size: 2


could it be the reason for my problem ?
Reply With Quote
  #3  
Old 01-18-2012, 01:00 AM
chap chap is offline
Senior Member
 
Join Date: Feb 2011
Location: Ukraine
Posts: 1,165
chap is on a distinguished road
Default

Re: rtmpdump and "no frame" error


example url video
Reply With Quote
  #4  
Old 01-18-2012, 11:12 AM
blousefet blousefet is offline
Junior Member
 
Join Date: Dec 2011
Posts: 11
blousefet is on a distinguished road
Default

Re: rtmpdump and "no frame" error


as you can see the rtmpdump command, it's a live stream (webcam).
Reply With Quote
  #5  
Old 01-19-2012, 06:50 AM
blousefet blousefet is offline
Junior Member
 
Join Date: Dec 2011
Posts: 11
blousefet is on a distinguished road
Default

Re: rtmpdump and "no frame" error


Another point is that when I edit the flv stream using an HEX editor :
- a valid FLV stream shows "onMetaData" tag and other tags at the beginning of the file (ASCII)
- a invalid/corrupted FLV stream won't show that tag

... to be continued ...
Reply With Quote
  #6  
Old 01-20-2012, 04:42 AM
blousefet blousefet is offline
Junior Member
 
Join Date: Dec 2011
Posts: 11
blousefet is on a distinguished road
Default

Re: rtmpdump and "no frame" error


In fact, the previous point is false.
This night, I recorded a stream which had FLV info tags dumped by rtmpdump. That allows ffmpeg to show codec infos. But still, the stream isn't playable.
It shows one frame (or none) and then "no frame" when using vlc, mplayer or ffplay.
There are SRS errors too being reported by mplayer.

weird...


FYI, the stream showed well using adobe flashplayer or getflv on my notebook.

This week-end, I will try to compile rtmpdump with more DEBUG info (defining _DEBUG in .h). Then I'll try to catch a "no frame" stream.
It seems that this behaviour is dependant on the hardware/software used to produce the live stream.

However, obviously, getflv or flash players are more tolerant to stream errors. Getflv dumps the same livestream without frame errors. Sure, Getflv is a commercial and gets its value to perform that.


Is there someone that is interested to work with me on that ?
I'm willing to contribute to rtmpdump effort if allowed by the project.

It's seems rtmpdump won't wait for a valid keyframe to download the livestream. If you use "-k" option with "-v" it has no consequences because "-k" needs that you resume a download (and seeks for a keyframe already downloaded in the file being resumed. Am I wrong ?
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:44 PM.


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