Page 1 of 1

How can install the last version of ffmpeg?

PostPosted: Thu Dec 10, 2015 3:01 pm
by Acquarious81
In the firmware there is ffmpeg command... but it's too old.. (2008).. and also in ipkg there is a 2008 ver... how i can do to install the last version? with h264 support?... do i've to recompile ffmpeg package?... how i can do that on the nat?...

thx

Re: How can install the last version of ffmpeg?

PostPosted: Thu Dec 10, 2015 6:46 pm
by Jocko
if I remember well your nas has not enough resources to use it to transcode in a decent time any video

Re: How can install the last version of ffmpeg?

PostPosted: Thu Dec 10, 2015 6:57 pm
by fvdw
No for on the fly transcoding the cpu and size of the ram are not suuficient. But you can use ffmpeg for converting files. I believe I compiled a newr verion a while ago, need to check. Commpiling it yourself is not so easy because of the depencies it has for certain libs

Re: How can install the last version of ffmpeg?

PostPosted: Thu Dec 10, 2015 10:17 pm
by fvdw
I have a more recent version from 2012, never tested it mysel but maybe it is of use to you
see attachment

to install it, I assume you have experience with linux
create in the fvdw shared folder (/direct-usb/fvdw) a sub folder with name "addons" (without the quotes)
Put the tar archive in that subfolder an extract it
---edit-Jocko---
Note: with version 16.1 this sub-folder is created in same time when you set the share fvdw

Run at the linux command prompt this command
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/opt/lib
If you don't do that then ffmpeg wil not run as it cannot find the required libs
(You need to run this after each reboot)

Needless to say that you need to rename ffmepg in /opt/bin
or use the command /usr/local/bin/ffmpeg to run this version

Re: How can install the last version of ffmpeg?

PostPosted: Fri Dec 11, 2015 1:51 pm
by Acquarious81
very thx for this version of ffmpeg.. i'm sorry but i think miss some lib.. because when i try to use with h264 encorder lib... it say "Unknown encoder 'libx264'
".. i'm try to search online and seem this is a external lib for encoding in 264.... :-(

i used this command

ffmpeg -i input.mp4 -c:v libx264 -crf 23 output.mp4

i've found with ipkg install x264 the libx264.so .. but ffmpeg don't take anymore.. so i've search more.. and .. i've found this post..

"Support for libx264 requires that your ffmpeg be configured with --enable-gpl --enable-libx264"

but this is my ffmpeg config.

ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers
built on Apr 16 2012 21:14:52 with gcc 4.2.3
configuration: --prefix=/usr/local --enable-shared --enable-pthreads
libavutil 51. 32. 0 / 51. 32. 0
libavcodec 53. 42. 4 / 53. 42. 4
libavformat 53. 24. 2 / 53. 24. 2
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 53. 0 / 2. 53. 0
libswscale 2. 1. 0 / 2. 1. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


.. i've to recompile ???.. how i've to do? thx..

Re: How can install the last version of ffmpeg?

PostPosted: Tue Dec 15, 2015 10:04 am
by Acquarious81
Hi,

i'm just finished to recompile the LAST versione of FFMPEG with x264 features and all dependent,

It's works perfectly on FVDWSL, a little bit slow but work.... if anyone want the package i can send ...

i don't have insered aac sound encoder because it's not my target, i've only to recompress video file with audio stream copy 1:1 but i can insert if anyone want it..