These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

ffmpeg background mode?

user-586

I download radio programmes and convert them in to mp3 having configured my options file thus

Code:
ffmpegradioopts -acodec libmp3lame -ac 2 -ar 24000 -ab 48k -loglevel quiet
aactomp3 1





it would be nice if the process ffmpeg did not block to next download.
I've got 4 cpus and they are generally not being used most
of the time.
Perhaps each new call to ffmpeg could be "spawned" and ran in the background.

user-2

No chance. The files get some post-processing, so can't just spin off ffmpeg in the background. If you just want smaller files, use
Code:
--radiomode=flashaaclow
or
Code:
--radiomode=hlsaaclow
. If you have some old hardware that can't deal with M4A/AAC, and you don't want to wait for get_iplayer, then do your transcoding in bulk after downloading. You should be able to find tools that can either run multiple ffmpeg instances in parallel (in a controlled manner) or do multithreaded transcoding. The
Code:
--aactomp3
option was a mistake - get_iplayer really shouldn't do transcoding - but it fills a very limited niche.

user-586

Thanks dp.

I can do bulk transcoding - and have done in the past.
But please do retain your
Code:
--aactomp3
option - it's really useful when I'm not in any hurry!

Your continual efforts are much appreciated here.

Code:
To make a prairie it takes a clover and one bee,—    
One clover, and a bee,    
And revery.    
The revery alone will do    
If bees are few.

These forums are archived

See this post for further info