Increase ffmpeg buffer to avoid edge cases where ffmpeg just exits right away
parent
ad9dfa44ca
commit
d11799c5f7
|
@ -71,7 +71,7 @@ RETRY:
|
||||||
|
|
||||||
// FFmpeg requires a certain buffer size to start writing. This seems to be enough?
|
// FFmpeg requires a certain buffer size to start writing. This seems to be enough?
|
||||||
// This will grow big enough to fit the whole song.
|
// This will grow big enough to fit the whole song.
|
||||||
ff.Out = bytes.NewBuffer(make([]byte, 43920))
|
ff.Out = bytes.NewBuffer(make([]byte, 128*1024))
|
||||||
ff.Cmd.Stdout = ff.Out
|
ff.Cmd.Stdout = ff.Out
|
||||||
|
|
||||||
exitctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
exitctx, cancel := context.WithTimeout(context.Background(), 2*time.Second)
|
||||||
|
|
Loading…
Reference in New Issue