TheLastMan wrote: 
> Are you able to point me to a web site that will give me some
> instructions how to do this?
> 
> I have installed the debian chroot on my Synology DS214 but have never
> compiled anything before. I am happy to follow some Linux step-by-step
> instructions if there are any out there.
> 
> I would be interested to see if I could get it to work.  If it does, I
> could then make the compiled ffmpeg available to other Armada based
> Synology owners.

Well I wouldn't say compiling stuff is one of my strong points, and
instructions on setting up and using the debian-chroot package are hard
to find.  This is what I did and assumes you are starting from scratch.

0. Stop LMS on your Synology.

1. Follow this in order to add the synocommunity sources to your NAS:

https://synocommunity.com/#easy-install

2. There is no need to run the "debain-chroot" as a service on your NAS
for this exercise.

3. Get to a root terminal by connecting to your NAS as root via ssh.

4.  Use this command to enter your "debian-chroot".


Code:
--------------------
    /var/packages/debian-chroot/scripts/start-stop-status chroot
--------------------


5.  You need to update your debian sources, install and configure
locales (you might get some error messages during this)


Code:
--------------------
    
  apt-get update
  apt-get install locales
  dpkg-reconfigure locales
  dpkg-reconfigure tzdata
  
--------------------


Choose your locales with space to select a value and enter, basically
just pick what matches your main Synology system. e.g. en_US.utf8

6. Install packages needed for the fetching and compiling ffmpeg source
code:


Code:
--------------------
    
  apt-get install wget tar bzip2 yasm gcc make
  
--------------------


7. Download ffmpeg source code and untar -  I did this in /root dir of
the chroot.


Code:
--------------------
    
  cd /root
  wget http://ffmpeg.org/releases/ffmpeg-2.5.4.tar.bz2
  tar xvf ffmpeg-2.5.4.tar.bz2
  cd ffmpeg-2.5.4
  
--------------------


8. Compile ffmpeg ( configure, make, make install). Let each step
complete before moving to the next.  


Code:
--------------------
    
  ./configure
  
--------------------



Code:
--------------------
    make -j2
--------------------


Use j2 as you have two cores.


Code:
--------------------
    make install
--------------------


This could be slow on an ARM processor.

9. Check status of ffmpeg.


Code:
--------------------
    ffmpeg -version 
--------------------


10.  If all OK, exit chroot  


Code:
--------------------
    
  exit
  
--------------------


11. Now copy ffmpeg in chroot directory to main /usr/bin of Synology


Code:
--------------------
    
  cp /volume1/@appstore/debian-chroot/var/chroottarget/usr/local/bin/ffmpeg  
/usr/bin/ffmpeg
  
--------------------


11. Check ffmpeg is found by Synology system


Code:
--------------------
    
  which ffmpeg
  
--------------------


This should return "/usr/bin/ffmpeg"

12. Restart  LMS and complete config for HLS streams.

Remember I did this x86 arch.  A quick look at the files in the ffmpeg
source tarball would suggest it should compile on ARM arch.  The
question is which arm processors will it compile on. As the DS214 model
uses a MARVELL Armada XP MV78230, which is Armv7 compliant, it should
compile.


------------------------------------------------------------------------
Krisbee's Profile: http://forums.slimdevices.com/member.php?userid=59080
View this thread: http://forums.slimdevices.com/showthread.php?t=103158

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to