asticode / go-astiav

Golang ffmpeg and libav C bindings
MIT License
400 stars 45 forks source link

ffmpeg 7.1 #106

Open oldma3095 opened 13 hours ago

oldma3095 commented 13 hours ago

I try to use ffmpeg 7.1, has a error: The encoder timebase is not set image

image

But ffmpeg 7.0 is ok. astiav can support 7.1?

asticode commented 9 hours ago

go-astiav officially only supports ffmpeg n7.0 but in reality it should support n7.1 as well.

The error you're getting is pretty weird: can you print the value of astiav.NewRational(1, tr.VideoParams.FPS) you're providing tr.VideoTransStream.EncodeCtx.SetTimeBase() at the top of your screenshot?

voxeljorge commented 1 hour ago

The transcode example works for me with n7.1 fwiw