Open Janix520 opened 1 year ago
grabber.getFormatContext().bit_rate(), Using this method returns non zero, This should be a minor issue
Interesting, could you open a pull request with a fix?
Sorry, I can only modify Java code, although it can be changed to if(audio c.bitRate()==0){oc.bitRate()}, but this doesn't feel like the best solution. The problem may be with native, FFmpegFrameGrabber line 1022 audio C=avcodec Alloc Context3 (codec). Thank you for this open source library. If I can fix it later, I will support it
FFmpegFrameGrabber.getAudioBitrate() is a Java method: https://github.com/bytedeco/javacv/blob/1.5.9/src/main/java/org/bytedeco/javacv/FFmpegFrameGrabber.java#L537
I tried it out and it seems like Flac is like this. Other formats have returns, but Flac has always been 0