fifonik / FFBitrateViewer

Visualizes video bitrate received by ffprobe.exe
MIT License
72 stars 7 forks source link

Inputting audio files #2

Open suxragi opened 1 year ago

suxragi commented 1 year ago

I am posting for the first time. It is a very easy-to-use application that can analyze and compare multiple files instantly. If the files that can be analyzed depend on "ffprobe", I would like you to be able to import audio files as well. Consider Thank you.

fifonik commented 1 year ago

Cannot promise anything at this stage, but I will investigate how ffprobe reporting data for audio files.

suxragi commented 1 year ago

thank you. If it is possible, I would appreciate it if you could respond.

stevekmcc commented 7 months ago

This would be great! ffprobe handles audio in the same way as video. Just change -select_streams v:0 to -select_streams a:0. So in line 9 of ProgramConfig.cs change v:{{stream}} to a:{{stream}}. And however you want to parameterize that - a simple checkbox or radio button for 'Audio' vs. 'Video' would be easy.

For now, I just ran the ffprobe command manually (thanks for that!), eyeballed an average size from output lines like 'duration_time=0.021333|size=381', and calculated size * 8 / duration_time to get bps. Handy in cases where the stream metadata is missing the answer, so MediaInfo and similar don't show the bitrate.