mirror of
https://github.com/harshabose/transcode.git
synced 2025-10-06 21:12:47 +08:00
general commit 26-02-2024 22:49
This commit is contained in:
@@ -3,7 +3,6 @@ package transcode
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/asticode/go-astiav"
|
"github.com/asticode/go-astiav"
|
||||||
@@ -101,7 +100,7 @@ loop1:
|
|||||||
return
|
return
|
||||||
case bitrate := <-encoder.bandwidthChan: // TODO: MIGHT NEED A MUTEX FOR THIS ONE CASE
|
case bitrate := <-encoder.bandwidthChan: // TODO: MIGHT NEED A MUTEX FOR THIS ONE CASE
|
||||||
encoder.encoderContext.SetBitRate(bitrate)
|
encoder.encoderContext.SetBitRate(bitrate)
|
||||||
fmt.Printf("bitrate set: %d\n", bitrate)
|
// fmt.Printf("bitrate set: %d\n", bitrate)
|
||||||
case frame = <-encoder.filter.WaitForFrame():
|
case frame = <-encoder.filter.WaitForFrame():
|
||||||
if err = encoder.encoderContext.SendFrame(frame); err != nil {
|
if err = encoder.encoderContext.SendFrame(frame); err != nil {
|
||||||
encoder.filter.PutBack(frame)
|
encoder.filter.PutBack(frame)
|
||||||
|
Reference in New Issue
Block a user