Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
On Thu, May 5, 2022 at 1:49 AM smu johnson wrote: > On Thu, May 5, 2022 at 12:33 AM Peter van den Houten > wrote: > >> You need to download the Windows CLI version of MediaInfo. >> > > I tried, but the CLI .zip provided on their website doesn't even have an > .exe on it. Just some "graph" plugin or something... I extracted it anyway > into the MediaInfo directory but that didn't seem to do anything related to > the CLI parameter. Maybe it's a mistake on their part. (I'll email them > about it) > Oh sorry, nevermind. The download is a bit ambiguous, I managed to find the correct link. It does have the option you mentioned. Maybe I can play around with it and get in contact with the author more for that to be supported as it doesn't list anything different (from what I can tell) than the GUI. Thanks again. -- smu johnson ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
On Thu, May 5, 2022 at 12:33 AM Peter van den Houten wrote: > You need to download the Windows CLI version of MediaInfo. > I tried, but the CLI .zip provided on their website doesn't even have an .exe on it. Just some "graph" plugin or something... I extracted it anyway into the MediaInfo directory but that didn't seem to do anything related to the CLI parameter. Maybe it's a mistake on their part. (I'll email them about it) -- smu johnson ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
On 05/05/2022 02:37, smu johnson wrote: On Wed, May 4, 2022 at 1:31 AM Peter van den Houten wrote: FFmpeg will not always report bitrate, depending on the container format. Mediainfo is available for Windows and will scan an entire file and you might be able to change the switches for min & max bitrate. mediainfo --Parsespeed=1 filename I tried this from the command and couldn't get it to work. It considers the argument a filename. C:\Program Files\MediaInfo>mediainfo --Parsespeed=1 \tmp\encoding\jellyfish-30-mbps-hd-hevc.mkv Oh well. Thanks for the reply anyways. I wrote to MediaInfo support suggesting a feature request to possibly do this. You need to download the Windows CLI version of MediaInfo. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
On Wed, May 4, 2022 at 1:31 AM Peter van den Houten wrote: > FFmpeg will not always report bitrate, depending on the container format. > Mediainfo is available for Windows and will scan an entire file and you > might be able to change the switches for min & max bitrate. > > mediainfo --Parsespeed=1 filename I tried this from the command and couldn't get it to work. It considers the argument a filename. C:\Program Files\MediaInfo>mediainfo --Parsespeed=1 \tmp\encoding\jellyfish-30-mbps-hd-hevc.mkv Oh well. Thanks for the reply anyways. I wrote to MediaInfo support suggesting a feature request to possibly do this. -- smu johnson ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
Hi, On Wed 4 May 2022 at 09:31, Peter van den Houten wrote: > > FFmpeg will not always report bitrate, depending on the container format. > Mediainfo is available for Windows and will scan an entire file and you > might be able to change the switches for min & max bitrate. > > mediainfo --Parsespeed=1 filename Wow, I’d no idea that this feature existed in mediainfo, that’s super helpful! Best, Kieran ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
On 04/05/2022 05:11, smu johnson wrote: Hi, ffprobe / ffmpeg can show a video's avg. bitrate easily enough but I would like the option for ffmpeg to scan an entire video file (if need be, I don't think this info is stored anywhere) to find out the lowest (min) bitrate of a video stream as well as the highest (max) bitrate it uses and print them. Ideally it would be nice if x264 / Handbrake's logs showed you these values when encoding, but unfortunately they do not. My goal is that I'd like to know if I'm setting the right "L" encoding level or if it can be lower / higher. (e.g., 3.0 or 3.1 for DVDs). I realize the profile can probably change this but sometimes the "Auto" Encoder Level in Handbrake is all over the place instead of consistently say, L3.0 for all NTSC DVDs. This has been asked on Stack Exchange before by someone else here: https://video.stackexchange.com/questions/21661/is-there-any-ffmpeg-command-for-knowing-max-bit-rate-of-a-video . The only problem is people are suggesting running scripts and other hacks in order to do this instead of ffmpeg being able to just do it itself. I'm on Windows 11 so I don't know how easy it would be to run these scripts others wrote and I'd rather get an official answer from ffmpeg instead of some script that might not even work properly or give me accurate information. Any help is greatly appreciated. Thank you. FFmpeg will not always report bitrate, depending on the container format. Mediainfo is available for Windows and will scan an entire file and you might be able to change the switches for min & max bitrate. mediainfo --Parsespeed=1 filename ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
smu johnson (12022-05-03): > ffprobe / ffmpeg can show a video's avg. bitrate easily enough but I would > like the option for ffmpeg to scan an entire video file (if need be, I > don't think this info is stored anywhere) to find out the lowest (min) > bitrate of a video stream as well as the highest (max) bitrate it uses and > print them. ffprobe can print for you the size and timestamp of each packet. From that, you can compute what you want. Note that since the video is made of frames encoded as packets, a discrete series, there is no such thing as an instantaneous bit rate in which you can search a min and max: instantaneous bit rate is a derivative, derivatives are continuous beings. What exists is the average bit rate over a short period, the shortest being the duration of a single frame, and the corresponding bit rate the size of the corresponding packet divided by said duration. But that would be full of noise. For a less noisy and more relevant information, you would need to make an average over an interval containing at least one I-frame. The last two paragraphs were not about FFmpeg, they were math. I am not on this mailing list to teach math. > This has been asked on Stack Exchange before by someone else here: > https://video.stackexchange.com/questions/21661/is-there-any-ffmpeg-command-for-knowing-max-bit-rate-of-a-video > . The only problem is people are suggesting running scripts and other > hacks in order to do this instead of ffmpeg being able to just do it itself. And they are perfectly right. For specific and unique needs, scripting your own solution is infinitely superior to knocking on wood in the hope somebody already implemented exactly what you want. > I'm on Windows 11 so I don't know how easy it would be to run these scripts You can find a solution to this issue there: https://www.debian.org/ > others wrote and I'd rather get an official answer from ffmpeg instead of > some script that might not even work properly or give me accurate > information. I hope it is clear for you: you should not run a script you found on a random web site, it would be a huge security risk. You need to understand the script and adapt it to your needs. Regards, -- Nicolas George signature.asc Description: PGP signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Can ffmpeg calculate the min and max bitrate of a video?
Hi, ffprobe / ffmpeg can show a video's avg. bitrate easily enough but I would like the option for ffmpeg to scan an entire video file (if need be, I don't think this info is stored anywhere) to find out the lowest (min) bitrate of a video stream as well as the highest (max) bitrate it uses and print them. Ideally it would be nice if x264 / Handbrake's logs showed you these values when encoding, but unfortunately they do not. My goal is that I'd like to know if I'm setting the right "L" encoding level or if it can be lower / higher. (e.g., 3.0 or 3.1 for DVDs). I realize the profile can probably change this but sometimes the "Auto" Encoder Level in Handbrake is all over the place instead of consistently say, L3.0 for all NTSC DVDs. This has been asked on Stack Exchange before by someone else here: https://video.stackexchange.com/questions/21661/is-there-any-ffmpeg-command-for-knowing-max-bit-rate-of-a-video . The only problem is people are suggesting running scripts and other hacks in order to do this instead of ffmpeg being able to just do it itself. I'm on Windows 11 so I don't know how easy it would be to run these scripts others wrote and I'd rather get an official answer from ffmpeg instead of some script that might not even work properly or give me accurate information. Any help is greatly appreciated. Thank you. -- smu johnson ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".