Any way to change reading blocksize of input file?

Questions and answers on how to get the most out of FFAStrans
Post Reply
davep
Posts: 14
Joined: Mon Jan 14, 2019 11:52 am

Any way to change reading blocksize of input file?

Post 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
Attachments
Screen Shot 2019-03-15 at 10.42.37.png
Screen Shot 2019-03-15 at 10.42.37.png (86.59 KiB) Viewed 6208 times
admin
Site Admin
Posts: 1687
Joined: Sat Feb 08, 2014 10:39 pm

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

Post 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
emcodem
Posts: 1811
Joined: Wed Sep 19, 2018 8:11 am

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

Post by emcodem »

Hey Dave, this could maybe help you:
viewtopic.php?f=5&t=849&p=3641#p3641

cheers!
emcodem, wrapping since 2009 you got the rhyme?
davep
Posts: 14
Joined: Mon Jan 14, 2019 11:52 am

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

Post by davep »

That looks interesting, will have a look, thanks!
Post Reply