Home ffmpeg randomly hangs and takes huge cpu usage when recording audio streams
Reply: 0

ffmpeg randomly hangs and takes huge cpu usage when recording audio streams

Maximax40
1#
Maximax40 Published in 2017-12-06 21:11:17Z

I am trying to record 54 radio station using ffmpeg for Windows. I get those audio from different URL and separate instances of ffmpeg record and encode them to .wav format. It works great, it does it's job with a very low cpu and memory usage and I get the results I want. However, sometimes a random ffmpeg process seems to hang and start using 25% cpu usage on it's own and stop recording.

It happens several times a day, and everytime I need to restart the process. If I'm not paying attention to the processes when one is stall, others will start to hang as well. If 4 of them hangs, I get 100% cpu usage and more than half of the recordings stops working, probably because of overload or something.

When a process stall, I don't get any error in the cmd window, it just freezes. It really seems to be random, because 2 computers are doing the same thing and record the exact same streams, but when a process stall on a computer, the same process works fine on the other, so I don't think it's related to the stream input.

Here is an example of the command I use to launch a ffmpeg process:

ffmpeg -y -i "http://icecast-cftx.rncm.ca/cftx.mp3" -ab 3200 -ar 16000 -ac 1 -f segment -segment_time 600 -strftime 1 "audios/CBFFMTR %%Y-%%m-%%d %%H-%%M-%%S.wav"

Can anyone help me on this issue? It's really sad that I can't rely on this software because of this.

Thank you

EDIT: After another check, I realise that when a recording crash on one of the computers, the same one crash on the other.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.297559 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO