[FFmpeg-user] generating jpgs and sound at the same time problem with specific inputs

Kostas Psimoulis rondinos at hotmail.com
Tue Feb 26 00:14:06 CET 2013


Hello,
Thank you for the response Carl. I noticed that whenever I use analyzeduration != 0 ffmpeg can sit there and wait over 20 mins with no response. I don't understand this, shouldn't the default be 5 seconds or something? There is no information in the man page of ffmpeg about analyzeduration. When I put 1, it's almost as not putting analyzeduration at all. I manage to make it work one time with -analyzeduration 500000 but it worked one time and then it failed again. Here is some output, I hope it will be useful:

user at dev:~$ ffprobe -analyzeduration 0 -i 'rtmp://192.168.0.15:1935/live/Cam1/flv:s_Cam1?tcp 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.100[flv @ 0x369ed40] max_analyze_duration 0 reached at 0[flv @ 0x369ed40] Estimating duration from bitrate, this may be inaccurateInput #0, flv, from 'rtmp://192.168.0.15:1935/live/Cam1/flv:s_Cam1?tcp live=1':  Duration: N/A, start: 0.000000, bitrate: N/A    Stream #0:0: Video: flv1, yuv420p, 640x480, 1k tbr, 1k tbn, 1k tbc
user at dev:~$ ffprobe -analyzeduration 500000 -i 'rtmp://192.168.0.15:1935/live/Cam1/flv:s_Cam1?tcp 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.100[flv @ 0x22efd40] max_analyze_duration 500000 reached at 506000[flv @ 0x22efd40] Estimating duration from bitrate, this may be inaccurateInput #0, flv, from 'rtmp://192.168.0.15:1935/live/Cam1/flv:s_Cam1?tcp live=1':  Duration: N/A, start: 0.000000, bitrate: N/A    Stream #0:0: Video: flv1, yuv420p, 640x480, 1k tbr, 1k tbn, 1k tbc    Stream #0:1: Audio: nellymoser, 11025 Hz, mono, flt

user at dev:~$ ffprobe -analyzeduration 0 -i 'rtmp://192.168.0.15:1935/live/Cam2/flv:s_Cam2?tcp 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.100[flv @ 0x35bbd40] max_analyze_duration 0 reached at 0[flv @ 0x35bbd40] Estimating duration from bitrate, this may be inaccurateInput #0, flv, from 'rtmp://192.168.0.15:1935/live/Cam2/flv:s_Cam2?tcp live=1':  Duration: N/A, start: 0.000000, bitrate: N/A    Stream #0:0: Video: flv1, yuv420p, 640x480, 1k tbr, 1k tbn, 1k tbcuser at dev:~$ ffprobe -analyzeduration 500000 -i 'rtmp://192.168.0.15:1935/live/Cam2/flv:s_Cam2?tcp 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.100


> To: ffmpeg-user at ffmpeg.org
> From: cehoyos at ag.or.at
> Date: Mon, 25 Feb 2013 21:31:30 +0000
> Subject: Re: [FFmpeg-user] generating jpgs and sound at the same time	problem with specific inputs
> 
> Kostas Psimoulis <rondinos <at> hotmail.com> writes:
> 
> > ffmpeg command:ffmpeg -y -f flv 
> > -i rtmp://192.168.0.15:1935/cam1/flv:s_Cam1?tcp live=1
> > -analyzeduration 0 -q:v 2 -r 15 
> > /home/user/camera/living_room/%d.jpg -analyzeduration 1
> 
> Without looking at the fine documentation, I strongly 
> suspect that analyzeduration is a global option and 
> cannot be specified more than once (in a useful manner).
> 
> Generally, to get support on this mailing list, please 
> always post the command line you tried together with 
> the complete, uncut console output, never post the 
> command line alone.
> 
> Carl Eugen
> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
 		 	   		  


More information about the ffmpeg-user mailing list