Is it possible to install ffmpeg and x264 on a Synology Diskstation 209?
- by Kieran Benton
Hi,
Complete linux novice here! :)
I'm trying to get my brilliant DS209 NAS box to do some transcoding for me of a few AVI videos to a format suitable for my Apply iTouch - yes I could do it with another machine and Handbrake but it would be really useful to offload some of this to the NAS to do overnight.
I've managed to install ipkg onto my DS209 NAS box and have played around with installing some packages (binutils, mono, bash etc).
I've even managed to install ffmpeg from ipkg and put together the correct command line profile to do the encoding as a .sh file:
time ffmpeg -y -i $1 -f mp4 -title $2 -vcodec libx264 -level 21 -s 426×320 -b 512k -bt 512k -bufsize 4M -maxrate 4M -g 250 -coder 0 -threads 0 -acodec libfaac -ac 2 -ab 64k $3
However running this I get a missing dependency on libx264.
I've tried building this from the latest source in git, but I get errors during the make process that I just don't understand (way out of my depth).
encoder/set.c: In function 'x264_sei_version_write':
encoder/set.c:491: error: 'X264_VERSION' undeclared (first use in this function)
encoder/set.c:491: error: (Each undeclared identifier is reported only once
encoder/set.c:491: error: for each function it appears in.)
make: *** [encoder/set.o] Error 1
Can anyone else try building it or give me a pointer as to what I can do to get this going? Its been a good learning experience so far!
Thanks.