TwonkyServer not starting if FFMPEG uses LIBFAAC?

General discussion about the media server. Feature requests. Hints, tips and tricks.
Locked
cbhwr
Posts:57
Joined:Sun Jun 03, 2007 9:23 pm
Location:Belgium, DK
TwonkyServer not starting if FFMPEG uses LIBFAAC?

Post by cbhwr » Sun Oct 17, 2010 4:39 pm

Hi

My TwonkyServer hangs during startup at 100% CPU if I require it to use FFMPEG to transcode to AAC/MP4.

I found that the version of FFMPEG that ships with Ubuntu 10.4 is broken, and instead I have downloaded the source from SVN and compiled from scratch.

Now I am having the issue that if the file ffmpeg.location points to the new binary (/usr/local/bin), TwonkyServer does not start - instead it hangs at 100-105% CPU.
If I alter ffmpeg.location to point to the original (/usr/bin), it can start.

I have removed all ffmpeg-*.desc except one I created myself:

Code: Select all

# transcode video
#(c) 2008 by PacketVideo
#exec: ffmpeg -i $infile -vcodec flv -f flv -s qvga -vb 256000 -ab 64000 -ac 2 -ar 44100 $outfile 
exec: ffmpeg -i $infile -acodec libfaac -vcodec copy -vbsf h264_mp4toannexb -f mpegts -y $outfile
# capabilities
from=video/x-matroska
to=video/mp4
asynchronous
priority=normal
(The exec-statement has been tested and proven to work via the CLI)

I note that if I remove this file, the server is also able to start up.
If I alter the acodec to use MP3, it is also able to start up.



* What is the TwonkyServer doing, since it requires calling FFMPEG and then failing to use libfaac?
* How can I determine what it is with libfaac, that TwonkyServer does not like?
* What alternative exists for encoding to MP4+AAC?


I do hope someone is able to answer these questions, and point me in a direction where TwonkyServer becomes useful again.

Regards,
Niels Chr. Ørgaard
Belgium

Locked