FAQ  •  Register  •  Login

[SOLVED] ffmpeg command line options to increase buffer size

<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon May 07, 2012 6:20 pm

[SOLVED] ffmpeg command line options to increase buffer size

I would like the ability to override and change command line options sent to the ffmpeg. One thing that annoys me is the current buffer size is only 1 sec long. I need the buffer to be much longer (10 secs). I understand it will take more memory, which is a fine setting for a config file.

I see a property file something like
;ffmpeg streaming options
abuffer=$AUDIO_B_P_S*10
vbuffer=$VIDEO_B_P_S*30

;fmpeg in other mode
setting1
setting2
etc...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 07, 2012 6:23 pm

Re: ffmpeg command line options to increase buffer size

what is the ffmpeg command line argument for setting this?
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon May 07, 2012 9:34 pm

Re: ffmpeg command line options to increase buffer size

Sorry I am not at my computer. Could you send me a current ffmpeg command line that I can use as an example. It should have at least 10, likely 20, parameters.

Also is the code available to review anywhere?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 07, 2012 10:52 pm

Re: ffmpeg command line options to increase buffer size

you can enable detailed logging to see the ffmpeg command line
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon May 14, 2012 7:16 pm

Re: ffmpeg command line options to increase buffer size

right now it does

ffmpeg -i File.mkv -y -threads 4 -async 1 -vcodec mpeg2video -b 14336k -maxrate 14336k -bufsize 14336k -r 24000/1001 -g 15 -copyts -acodec ac3 -ab 384k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-74-MPEG2TS.stf


I would like it to be x30, i.e. maxrate x 30 or 430080 and also I would like a option to limit it to 720p i.e. -s hd720
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 14, 2012 7:36 pm

Re: ffmpeg command line options to increase buffer size

I'm not sure if this buffer actually means anything in this regard, I think it's a buffer used for keeping bitrate on the given level, the higher the closer to the target bitrate you get.
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon May 14, 2012 9:35 pm

Re: ffmpeg command line options to increase buffer size

Okay what about the 720p option?

Also, is there a way to buffer like http://mediatomb.cc/pages/transcoding
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 14, 2012 9:42 pm

Re: ffmpeg command line options to increase buffer size

1.0 will add option to transcode into a given height
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Mon May 14, 2012 9:48 pm

Re: ffmpeg command line options to increase buffer size

Sounds good about the height. It looks like the only way to do a buffer is within the application. Will that be in 1.0?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon May 14, 2012 10:14 pm

Re: ffmpeg command line options to increase buffer size

no
<<

robertsearle

Serviio lover

Posts: 66

Joined: Mon May 07, 2012 6:13 pm

Post Thu May 17, 2012 6:08 pm

Re: ffmpeg command line options to increase buffer size

Thanks for the silly questions. How do I mark this closed?

Return to Feature requests

Who is online

Users browsing this forum: Majestic-12 [Bot] and 65 guests

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