FAQ  •  Register  •  Login

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

<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon Jul 30, 2012 3:21 am

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

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
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Mon Jul 30, 2012 7:16 am

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

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.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon Jul 30, 2012 1:19 pm

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

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?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jul 30, 2012 2:25 pm

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

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
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon Jul 30, 2012 4:07 pm

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

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.
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon Aug 27, 2012 2:56 am

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

SOLVED with 1.0.1. See viewtopic.php?f=7&t=7209 for all the details

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 46 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.