ruby-av / paperclip-av-transcoder

Audio/Video Transcoder for Paperclip using FFMPEG/Avconv
MIT License
136 stars 83 forks source link

Too many packets buffered for output stream 0:1. #56

Closed joshuapinter closed 6 years ago

joshuapinter commented 6 years ago

I got this error while converting a video. It's an odd ffmpeg error that was introduced in 3.3+.

To resolve it, you just have to supply an output convert option like so:

mp4: { 
  format: 'mp4', 
  convert_options: { 
    output: { 
      max_muxing_queue_size: 1000 # Default is 128 but increasing this prevents the error.
    } 
  }  
}

For more information, see these posts:

https://trac.ffmpeg.org/ticket/6375 https://trac.ffmpeg.org/ticket/6472