Streampunk / beamcoder

Node.js native bindings to FFmpeg.
GNU General Public License v3.0
392 stars 76 forks source link

Decoder options #75

Open slenin opened 3 years ago

slenin commented 3 years ago

We are planning to move much of our ffmpeg media processing to node. And this is a great library.

Media files are accessed from remote storage. For decoding, we set two parameters

  1. headers: The media we access requires custom auth headers, which we can set in ffmpeg through av_dict_set(.., "headers",..).
  2. timeout: To protect from long blocking calls, we set timeout using av_dict_set_int(.., "timeout",..)

How can we set these options through beamcoder?