[FFmpeg-user] ffmpeg hangs when encoding rtmp input stream

Junior wpajunior at gmail.com
Fri Aug 12 16:57:43 EEST 2016


Hi there,

I'm using ffmpeg to reencode the input coming from nginx_rtmp module with
the command below:

ffmpeg -i rtmp://localhost/publish/if_livestream -c:a libfdk_aac -b:a 64k
-c:v libx264 -b:v 136K -f flv "rtmp://localhost/live/if_livestream_lo
live=1 timeout=0 buffer=0" -c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 436K
-f flv "rtmp://localhost/live/if_livestream_hi live=1 timeout=0 buffer=0"
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --pkg-config-flags=--static --enable-gpl --enable-nonfree
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libvorbis --enable-libvpx --enable-libx264
  libavutil      55. 28.100 / 55. 28.100
  libavcodec     57. 48.101 / 57. 48.101
  libavformat    57. 41.100 / 57. 41.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 47.100 /  6. 47.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100

Unfortunately sometimes ffmpeg hangs exactly at that point. The last output
displayed is the line "  libpostproc    54.  0.100 / 54.  0.100" and it
stops there. Sometimes it works fine.

Have anyone already faced this problem?

Thanks in advance,

Junior


More information about the ffmpeg-user mailing list