alex
alex
Errors in `av_interleaved_write_frame` usually mean wrong input. There is no `WriteHeader()` in your code snippet. Please check and add it before packets loop. BTW, it's better to use `GetNextPacket` instead...
@fabian-z Great! Thanks. Could you make a PR?
Done. @fabian-z thanks!
Hi, @hanluner To get a current intput stream duration in seconds (to get a current second) you can use `(*Packet).Time()` method, e.g.: ```go currSec = pkt.Time(ist.TimeBase()) ``` read this code...
It returns seconds, calculated according timebase and current packet `pts`. ```go func (p *Packet) Time(timebase AVRational) int { return int(float64(timebase.AVR().Num) / float64(timebase.AVR().Den) * float64(p.Pts())) } ```
Hello. Well, filename field has been removed from `AVFormatContext` in latest version of `FFmpeg`. `GMF` doesn't have support for new "url's" for now. As a workaround You can build older...
This change was introduced at Feb 26 11:33:09 2021, so everything before [n4.3.2](https://github.com/FFmpeg/FFmpeg/releases/tag/n4.3.2) will work.
Hi. Yeah, unfortunately this is right — current version of `transcode.go` is obsolete. I'll write a new one soon. Thanks.
I have tested your example right now and everything works fine. May be it's a codec issue. Check what encoders your library supported and try different ones.
Well, possible issue might be the wrong destination path (in terms of Windows), default output path is `./tmp` this is linux specific.