Page 1 of 1

[SOLVED] Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Jul 30, 2012 3:21 am
by robertsearle
Hi,

I think I need the ablitiy to set ffmpeg's -bt and -b parameters. This limits the video bit rate, which help reduce the file size and bandwidth...

  Code:
 -threads 6 -copyts -c:v mpeg2video   -bt 1024k   -b 1024k -b:v 8192k


http://en.wikibooks.org/wiki/FFMPEG_An_ ... Options#-b
http://en.wikibooks.org/wiki/FFMPEG_An_ ... ptions#-bt

Re: Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Jul 30, 2012 7:16 am
by will
Provided you use Serviio 1.0, use the following (1000 = 1Mbit/s)
  Code:
 maxVBitrate="1000"


Have a look in application-profiles.xml for examples, both MediaBrowser and ServiiGo use it to deliver lower quality video, you can also drop the resolution at the same time.

Re: Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Jul 30, 2012 1:19 pm
by robertsearle
I use that already. I think I need the -b and -bt options as well. Which java class sets the ffmpeg options? I assume that decompiling the code for patches is still okay?

Re: Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Jul 30, 2012 2:25 pm
by zip
Why would you need those? v:b should be what you need - unless you want to specify b:a as well (b = b:v + b:a).

You can decompile for your personal use, class is FFmpegWrapper

Re: Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Jul 30, 2012 4:07 pm
by robertsearle
When I use those switches, my player appears to handle the file correctly. I want to decompile the file and then add the switches to see if it works correctly. I'll post if it makes a difference either way.

Re: Adding a parameter for -bt and -b in ffmpeg

PostPosted: Mon Aug 27, 2012 2:56 am
by robertsearle
SOLVED with 1.0.1. See viewtopic.php?f=7&t=7209 for all the details