[FFmpeg-user] ffmpeg / ffprobe connection timeout

Kostas Psimoulis rondinos at hotmail.com
Thu Mar 14 17:01:49 CET 2013


Hello,
I really cannot understand what happens. Sometimes it works but sometimes it takes forever to get information. I let it running for over half an hour. I am trying to set a connection timeout, so if it doesn't have the information in 10 seconds, it should stop running. Is there a way to do this ?
Here is the log output:

user at dev:~$ ffprobe -analyzeduration 500000 -show_streams -show_format -loglevel verbose 'rtmp://192.168.0.15:1935/live/Cam1/flv:s_Cam1?tcp timeout=10 live=1'ffprobe version 1.1.1 Copyright (c) 2007-2013 the FFmpeg developers  built on Jan 31 2013 18:53:13 with gcc 4.4.5 (Debian 4.4.5-8)  configuration: --enable-gpl --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-avresample --enable-libspeex --enable-libaacplus --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libilbc --enable-libopus --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libxavs --enable-libschroedinger  libavutil      52. 13.100 / 52. 13.100  libavcodec     54. 86.100 / 54. 86.100  libavformat    54. 59.106 / 54. 59.106  libavdevice    54.  3.102 / 54.  3.102  libavfilter     3. 32.100 /  3. 32.100  libswscale      2.  1.103 /  2.  1.103  libswresample   0. 17.102 /  0. 17.102  libpostproc    52.  2.100 / 52.  2.100Parsing...Parsed protocol: 0Parsed host    : 192.168.0.15Parsed app     : live/Cam1RTMP_Connect1, ... connected, handshakingHandShake: Type Answer   : 03HandShake: Server Uptime : 184876458HandShake: FMS Version   : 3.5.1.1HandShake: Handshaking finished....RTMP_Connect1, handshakedInvoking connectHandleServerBW: server BW = 250000HandleClientBW: client BW = 250000 2HandleCtrl, received ctrl. type: 0, len: 6HandleCtrl, Stream Begin 0RTMP_ClientPacket, received: invoke 240 bytes(object begin)Property: <Name:           no-name., STRING:    _result>Property: <Name:           no-name., NUMBER:    1.00>Property: <Name:           no-name., OBJECT>(object begin)Property: <Name:             fmsVer, STRING:    FMS/3,5,1,516>Property: <Name:       capabilities, NUMBER:    31.00>Property: <Name:               mode, NUMBER:    1.00>(object end)Property: <Name:           no-name., OBJECT>(object begin)Property: <Name:              level, STRING:    status>Property: <Name:               code, STRING:    NetConnection.Connect.Success>Property: <Name:        description, STRING:    Connection succeeded.>Property: <Name:     objectEncoding, NUMBER:    0.00>Property: <Name:               data, OBJECT>(object begin)Property: <Name:            version, STRING:    3,5,1,516>(object end)(object end)(object end)HandleInvoke, server invoking <_result>HandleInvoke, received result for method call <connect>sending ctrl. type: 0x0003Invoking createStreamFCSubscribe: flv:s_Cam1?tcpInvoking FCSubscribeRTMP_ClientPacket, received: invoke 29 bytes(object begin)Property: <Name:           no-name., STRING:    _result>Property: <Name:           no-name., NUMBER:    2.00>Property: NULLProperty: <Name:           no-name., NUMBER:    1.00>(object end)HandleInvoke, server invoking <_result>HandleInvoke, received result for method call <createStream>SendPlay, seekTime=0, stopTime=0, sending play: flv:s_Cam1?tcpInvoking playsending ctrl. type: 0x0003RTMP_ClientPacket, received: invoke 21 bytes(object begin)Property: <Name:           no-name., STRING:    _result>Property: <Name:           no-name., NUMBER:    3.00>Property: NULLProperty: NULL(object end)HandleInvoke, server invoking <_result>HandleInvoke, received result for method call <FCSubscribe>HandleChangeChunkSize, received: chunk size change to 4096HandleCtrl, received ctrl. type: 0, len: 6HandleCtrl, Stream Begin 1RTMP_ClientPacket, received: invoke 170 bytes(object begin)Property: <Name:           no-name., STRING:    onStatus>Property: <Name:           no-name., NUMBER:    0.00>Property: NULLProperty: <Name:           no-name., OBJECT>(object begin)Property: <Name:              level, STRING:    status>Property: <Name:               code, STRING:    NetStream.Play.Reset>Property: <Name:        description, STRING:    Playing and resetting s_Cam1.>Property: <Name:            details, STRING:    s_Cam1>Property: <Name:           clientid, STRING:    RDTIjumt>(object end)(object end)HandleInvoke, server invoking <onStatus>HandleInvoke, onStatus: NetStream.Play.ResetRTMP_ClientPacket, received: invoke 164 bytes(object begin)Property: <Name:           no-name., STRING:    onStatus>Property: <Name:           no-name., NUMBER:    0.00>Property: NULLProperty: <Name:           no-name., OBJECT>(object begin)Property: <Name:              level, STRING:    status>Property: <Name:               code, STRING:    NetStream.Play.Start>Property: <Name:        description, STRING:    Started playing s_Cam1.>Property: <Name:            details, STRING:    s_Cam1>Property: <Name:           clientid, STRING:    RDTIjumt>(object end)(object end)HandleInvoke, server invoking <onStatus>HandleInvoke, onStatus: NetStream.Play.StartRTMP_ClientPacket, received: notify 24 bytes(object begin)Property: <Name:           no-name., STRING:    |RtmpSampleAccess>Property: <Name:           no-name., BOOLEAN:   FALSE>Property: <Name:           no-name., BOOLEAN:   TRUE>(object end)ignoring too small video packet: size: 2ignoring too small video packet: size: 2[flv @ 0x29d4d40] Stream discovered after head already parsed[flv @ 0x29d4d40] Unsupported video codec (1)[flv @ 0x29d4d40] Stream discovered after head already parsed[flv @ 0x29d4d40] Unsupported video codec (1)[flv @ 0x29d4d40] Stream #0: not enough frames to estimate rate; consider increasing probesize[flv @ 0x29d4d40] Stream #1: not enough frames to estimate rate; consider increasing probesize[flv @ 0x29d4d40] Could not find codec parameters for stream 1 (Video: none ([1][0][0][0] / 0x0001)): unspecified size
 		 	   		  


More information about the ffmpeg-user mailing list