How can install the last version of ffmpeg?

How can install the last version of ffmpeg?

Postby Acquarious81 » Thu Dec 10, 2015 3:01 pm

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
Acquarious81
Donator VIP
Donator VIP
 
Posts: 24
Joined: Sat Nov 28, 2015 8:28 pm

Re: How can install the last version of ffmpeg?

Postby Jocko » Thu Dec 10, 2015 6:46 pm

if I remember well your nas has not enough resources to use it to transcode in a decent time any video
Jocko
Site Admin - expert
 
Posts: 11529
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: How can install the last version of ffmpeg?

Postby fvdw » Thu Dec 10, 2015 6:57 pm

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
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: How can install the last version of ffmpeg?

Postby fvdw » Thu Dec 10, 2015 10:17 pm

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
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: How can install the last version of ffmpeg?

Postby Acquarious81 » Fri Dec 11, 2015 1:51 pm

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..
Acquarious81
Donator VIP
Donator VIP
 
Posts: 24
Joined: Sat Nov 28, 2015 8:28 pm

Re: How can install the last version of ffmpeg?

Postby Acquarious81 » Tue Dec 15, 2015 10:04 am

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..
Acquarious81
Donator VIP
Donator VIP
 
Posts: 24
Joined: Sat Nov 28, 2015 8:28 pm


Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 5 guests