Thanks a lot! As pointed out the problem was the incorrect placing of -threads option! Works like a charm now!
Thanks again!! :D On Tue, Aug 12, 2014 at 4:34 PM, Reindl Harald <h.rei...@thelounge.net> wrote: > > Am 12.08.2014 um 12:56 schrieb Rohit Talwar: > > Thanks for looking into my query. I have a main java program within > which I > > run ffmpeg (using exec). Often there comes a scenario wherein my program > > needs to create 4+ different instances of ffmpeg program for converting > > files into different formats. When this happens the cpu gets 'too busy' > > running the ffmpeg instances which affects the performance of my java > > program. > > I think lowering the priority(using nice or start /LOW ) of the ffmpeg > > process might be a possible strategy to solve this, but would be glad if > > you can help me point towards a platform independent solution > > you missed the most important part > > wrong: > ffmpeg -threads <number of threads> -i <my file.avi> > > correct: > ffmpeg -i <my file.avi> -threads <number of threads> > > params before "-i" are for the inout file / decoder > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > -- Regards Rohit Talwar _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user