Hi there, I've been experiencing some trouble with a few rtmp streams lately. The context is that I'm trying to capture some streams from street cameras avaiable in the interent. Some cameras are not working though but their streams have not been shut down.<div>
<br></div><div>What happens then is that since these streams have no data, the play command doesnt do anything. I suppose some socket calls a blocking read somewhere and the program just hangs there. What I would like to have is some sort of timeout of some kind for these "faulty streams".</div>
<div><br></div><div>To give you guys an example, here's the command to grab video from a camera that works.</div><div><br></div><div><div>ffmpeg -i "rtmp://<a href="http://200.141.78.68:1935/cet-rio/1.stream">200.141.78.68:1935/cet-rio/1.stream</a> pageUrl=<a href="http://transito.rio.rj.gov.br">http://transito.rio.rj.gov.br</a> --live" -vcodec copy -an out.flv</div>
</div><div><br></div><div>And here is an example of the problematic one:</div><div><br></div><div><div>ffmpeg -i "rtmp://<a href="http://200.141.78.68:1935/cet-rio/74.stream">200.141.78.68:1935/cet-rio/74.stream</a> pageUrl=<a href="http://transito.rio.rj.gov.br">http://transito.rio.rj.gov.br</a> --live" -vcodec copy -an out.flv</div>
</div><div><br></div><div>Does somebody have a suggestion to fix this issue?</div><div><br></div><div>Nelson</div>