libav: disable logging
This commit is contained in:
parent
88e9bef29e
commit
ea1451cb97
3 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func RemuxFile(inputFile string) error {
|
func RemuxFile(inputFile string) error {
|
||||||
|
astiav.SetLogLevel(astiav.LogLevelQuiet)
|
||||||
|
|
||||||
ext := strings.ToLower(filepath.Ext(inputFile))
|
ext := strings.ToLower(filepath.Ext(inputFile))
|
||||||
var muxerName string
|
var muxerName string
|
||||||
switch ext {
|
switch ext {
|
||||||
|
|
|
@ -11,6 +11,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExtractVideoThumbnail(videoPath string, imagePath string) error {
|
func ExtractVideoThumbnail(videoPath string, imagePath string) error {
|
||||||
|
astiav.SetLogLevel(astiav.LogLevelQuiet)
|
||||||
|
|
||||||
formatCtx := astiav.AllocFormatContext()
|
formatCtx := astiav.AllocFormatContext()
|
||||||
defer formatCtx.Free()
|
defer formatCtx.Free()
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,8 @@ package av
|
||||||
import "github.com/asticode/go-astiav"
|
import "github.com/asticode/go-astiav"
|
||||||
|
|
||||||
func GetVideoInfo(filePath string) (int64, int64, int64) {
|
func GetVideoInfo(filePath string) (int64, int64, int64) {
|
||||||
|
astiav.SetLogLevel(astiav.LogLevelQuiet)
|
||||||
|
|
||||||
formatCtx := astiav.AllocFormatContext()
|
formatCtx := astiav.AllocFormatContext()
|
||||||
if formatCtx == nil {
|
if formatCtx == nil {
|
||||||
return 0, 0, 0
|
return 0, 0, 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue