[FFmpeg-trac] #1604(undetermined:new): Rtmp streaming fps continually drops

FFmpeg trac at avcodec.org
Fri Aug 10 17:48:04 CEST 2012


#1604: Rtmp streaming fps continually drops
-------------------------------------+-------------------------------------
             Reporter:  Pyriel0      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  rtmp         |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Defiancefew):

 I've got the same problem both with own3d.tv and justin.tv . One
 difference is

 Using this code is impossible to me because it eats ~1.5 GB memory
 instantly and start to real time buffer very soon (since i dont have any
 free memory anymore and my system crash)
 {{{
 ffmpeg -re -rtbufsize 100000k -r 25 -f dshow -i video="screen-capture-
 recorder" -f dshow -i audio="DirectSound Capture Device" -f dshow -i
 audio="Microphone (Realtek High Defini" -filter_complex
 amix=inputs=2:duration=first:dropout_transition=3 -c:a libmp3lame -ac 2
 -b:a 128k -ar 44100 -c:v libx264 -preset faster -pix_fmt yuv420p -x264opts
 vbv-bufsize=3600:vbv-maxrate=1800:crf=23 -s 1920x1080 -y -f flv "rtmp
 ://live-lhr-backup.justin.tv/app/STREAMKEY"
 }}}

 Splitting ffmpeg into two processes fixed memory usage (400mb for process
 that encodes dshow input and audio into test.flv and 3mb for process that
 sends test.flv to rtmp) :

 Input:
 {{{
 ffmpeg -re -rtbufsize 100000k -r 30 -f dshow -i video="screen-capture-
 recorder" -f dshow -i audio="DirectSound Capture Device" -f dshow -i
 audio="Microphone (Realtek High Defini" -filter_complex
 amix=inputs=2:duration=first:dropout_transition=3 -c:a libmp3lame -ac 2
 -b:a 128k -ar 44100 -c:v libx264 -preset faster -pix_fmt yuv420p -x264opts
 vbv-bufsize=3600:vbv-maxrate=1800:crf=23 -s 1920x1080 -y -f flv "test.flv"
 }}}

 Output:
 {{{
 ffmpeg -re -i "test.flv" -c copy -f flv "rtmp://live-lhr-
 backup.justin.tv/app/STREAMKEY"
 }}}

 But my FPS still drops from 25 to 12 in a few minutes in Output command
 line (when input is constant 25 fps at 1500 bitrate). CPU usage is around 40%
 from ffpmeg.

 Adding video too:

 [http://ru.twitch.tv/defiance_test/b/328108751]

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1604#comment:10>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list