Page 1 of 1

Any way to change reading blocksize of input file?

Posted: Fri Mar 15, 2019 12:05 pm
by davep
Hi all,

I've noticed that regardless of how many simultaneous threads are running and whatever settings I choose, FFAStrans/ffmpeg always seems to read from the disk with approx 190KB block size (see the attached screenshot, it's the red line).

I was wondering if there's any way for it to read 512KB or 1024KB at a time, to reduce the overall IO on the drive.

I'm going to be transcoding media which will be on a RAID so I'd like to minimise the IO requests if possible, making fewer but larger IO requests.

It seems that ffmpeg has a blocksize setting (see here: https://ffmpeg.org/ffmpeg-all.html#file) but I can't seem to get it working in the custom ffmpeg module (as it requires modifying the -i parameter which presumably FFA uses to set the correct source path).

Anyone have any ideas? Or is the blocksize for reads fixed internally in FFA?

Many thanks again,
Dave

Re: Any way to change reading blocksize of input file?

Posted: Sat Mar 16, 2019 9:17 pm
by admin
Hi Dave,

FFAStrans has no specific settings on block reading size but I will take a look at the ffmpeg input file options and how they can be utilized. Thanks for notifying :-)

-steinar

Re: Any way to change reading blocksize of input file?

Posted: Tue Mar 19, 2019 10:57 am
by emcodem
Hey Dave, this could maybe help you:
viewtopic.php?f=5&t=849&p=3641#p3641

cheers!

Re: Any way to change reading blocksize of input file?

Posted: Tue Mar 19, 2019 1:23 pm
by davep
That looks interesting, will have a look, thanks!