tomaszzmuda / Xabe.FFmpeg

.NET Standard wrapper for FFmpeg. It allows to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.
https://xabe.net/product/xabe_ffmpeg/
Other
714 stars 128 forks source link

Audio stream bitrate is 0 for some audio tracks #472

Open siewers opened 10 months ago

siewers commented 10 months ago

It looks like DTS-X and Dolby TrueHD tracks sometimes don't have the bit rate property set in the JSON output from ffprobe. However, I can see the bit rate is provided as a tag named BPS and BPS-eng, but these tags are not available as part of the IAudioStream interface.

Would it be possible to expose all the tags from each stream as a dictionary? Alternatively, try find the bit rate from the tags and use that value in case the properties doesn't contain it.