View Full Version : ffmpeg bitrate variable?
jriker1
21st October 2020, 22:05
was looking to bulk convert some files and reduce the bitrate to 60% of original. Thought I could use ffmpeg but in order to do this quickly would need ffmpeg to be able to read the bitrate which I thought may be in a bit_rate variable and multiply it by .60 and pass that to ffmpeg for the bitrate to encode in. Is this possible? Thought bit_rate was a variable but wasn't sure or how to use it in ffmpeg.
Blue_MiSfit
22nd October 2020, 21:22
Use a combination of ffprobe/mediainfo and ffmpeg in a script. Python and Bash are both popular for stuff like this. Python has a big community and is easy to learn :)
jriker1
27th October 2020, 19:20
Use a combination of ffprobe/mediainfo and ffmpeg in a script. Python and Bash are both popular for stuff like this. Python has a big community and is easy to learn :)
Thanks. I went with C# for this. Tried batch, tried PowerShell, both of those had issues with square brackets in the file/folder names, and other characters. C# didn't have those challenges and left me a lot more room to code with faster.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.