DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-03 20:39:13

Kai
Member
Registered: 2009-05-30
Posts: 27

ffmpeg including libs - funpkg ready for download

Hi,

as ffmpeg isn't avaiable as a straight away funpkg (as it is a nightmare to compile on this platform) I spent some time over this daunting task of compiling it. Here you go:

http://rapidshare.com/files/345422170/f … 0409-2.tgz

Download and install with funpkg -i as usual.

It is the exact same svn extract from 200090409 that is available with optware (so no news here).

It comes with
libavutil
libavcodec
libavformat
libavdevice
which might come in handy to compile other stuff that depends on it. Which was exactly the reason I was interested in getting this done.

Here is the exact version and config options:

Code:

FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --arch=arm --disable-encoder=snow --disable-decoder=snow --enable-shared --disable-static --enable-gpl --enable-postproc --prefix=/ffp
  libavutil version: 49.6.0
  libavcodec version: 51.54.0
  libavformat version: 52.13.0
  libavdevice version: 52.0.0
  built on Feb  3 2010 19:54:42, gcc: 4.1.3 20080414 (prerelease)
FFmpeg UNKNOWN
libavutil   3212800
libavcodec  3356160
libavformat 3411200
libavdevice 3407872

For those who looking forward now to get any of their favourite video, transcoding whatever application running on the NAS. Please calm down and think. This time processor and not the sky is the limit. Heavy transcoding or video processing just won't work pretty well (or not at all) on this Device. 
But many apps depend on the ffmpeg libs for all sorts of functionality which was badly missed on the device so far.

Appreciate if you test this and report back..

Have fun..
K.

PS. thanks to the optware maintainer of the ffmpeg packages who got me started on this..

Offline

 

#2 2010-02-03 22:08:33

plord
Member
Registered: 2010-02-02
Posts: 17

Re: ffmpeg including libs - funpkg ready for download

As it happens I've just been through the pain to build ffmpeg (and some others) to get minidlna working ... I used the latest SVN and had to some some different configuration options :-

configure --prefix=/ffp \
        --disable-static \
        --enable-shared \
        --enable-gpl \
        --enable-small \
        --disable-encoder=aac \
        --disable-decoder=aac \
        --disable-asm

Offline

 

#3 2010-02-04 16:06:00

Kai
Member
Registered: 2009-05-30
Posts: 27

Re: ffmpeg including libs - funpkg ready for download

Cool! Great to hear the latest svn compiles as well. Did you have to patch the source a lot to make it compile?

Offline

 

#4 2010-02-04 21:20:07

plord
Member
Registered: 2010-02-02
Posts: 17

Re: ffmpeg including libs - funpkg ready for download

I had to do a bit of fiddling ... I plan to make a second pass on building this and make it more repeatable.

Offline

 

#5 2010-03-22 11:39:06

Wintermute
New member
Registered: 2008-03-13
Posts: 4

Re: ffmpeg including libs - funpkg ready for download

Has anybody tried to compile ffmpeg with libfaac support?

(- Why!? you ask.
Well, my DSLR camera produces gigantic files in H264 with PCM sound. I backup these on my NAS but in order to play them on my PS3 (using ex. mediatomb) I have to change the audio codec to faac. So, issuing "ffmpeg -i GIGANTIC.MOV -vcodec copy -acodec libfaac -f mp4 ALSOHUGE.mp4" does the trick and is quite quick even on a slow processor.)

Offline

 

#6 2010-03-23 12:32:52

haim
Member
Registered: 2010-01-13
Posts: 83

Re: ffmpeg including libs - funpkg ready for download

Ok, perhaps a noob question.

Whats the benefit to it being a funplug install rather than installing with optware? 

Can it be used more easily with other programs, or more flexible/easier to compile in other options/components?

Offline

 

#7 2010-06-07 01:30:43

crs2027
Member
Registered: 2008-10-14
Posts: 46

Re: ffmpeg including libs - funpkg ready for download

thanks heaps.

would this be the best tool to extract video information, I couldnt find anything else (especially for the dns323!)

Offline

 

#8 2010-12-15 22:27:02

zachm
New member
Registered: 2010-12-15
Posts: 1

Re: ffmpeg including libs - funpkg ready for download

Forgive me if I'm making an obvious error, but I'm new to ffmpeg.  The version here seems to fail converting matroska video to xvid.  From googling on the topic, I've seen that this can produce problematic results, but should at least produce something, rather than segfaulting.  Here's what I'm running and the result:

% ffmpeg -i video1.mkv -acodec copy -vcodec mpeg4 -sameq video1.avi

FFmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.

  configuration: --arch=arm --disable-encoder=snow --disable-decoder=snow --enable-shared --disable-static --enable-gpl --enable-postproc --prefix=/ffp

  libavutil version: 49.6.0

  libavcodec version: 51.54.0

  libavformat version: 52.13.0

  libavdevice version: 52.0.0

  built on Feb  3 2010 19:54:42, gcc: 4.1.3 20080414 (prerelease)

[matroska @ 0x4009aa2c]Ignoring seekhead entry for ID=0x1549a966

[matroska @ 0x4009aa2c]Ignoring seekhead entry for ID=0x1654ae6b

[matroska @ 0x4009aa2c]Unknown entry 0x73a4 in info header

[matroska @ 0x4009aa2c]Unknown track header entry 0x55aa - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0x23314f - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0x55ee - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0xaa - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0x55aa - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0x23314f - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0x55ee - ignoring

[matroska @ 0x4009aa2c]Unknown track header entry 0xaa - ignoring

Input #0, matroska, from 'video1.mkv':

  Duration: 02:33:31.8, start: 0.000000, bitrate: N/A

    Stream #0.0(eng): Video: h264, yuv420p, 1280x534 [PAR 1:1 DAR 640:267], 23.98 tb(r)

    Stream #0.1(eng): Audio: dca, 48000 Hz, 5:1

Output #0, avi, to 'video1.avi':

    Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x534 [PAR 1:1 DAR 640:267], q=2-31, 200 kb/s, 23.98 tb(c)

    Stream #0.1(eng): Audio: 0x0000, 48000 Hz, 5:1

Stream mapping:

  Stream #0.0 -> #0.0

  Stream #0.1 -> #0.1

Press [q] to stop encoding

Illegal instruction

No, I haven't tried this on another linux system, since I don't have one on my home network and the file in question is too large for me to bother transferring over the WAN.  I doubt there's an easy solution, but I thought the author of this post might want a heads up.

Offline

 

#9 2010-12-16 18:43:03

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: ffmpeg including libs - funpkg ready for download

I've been trying to compile the latest SVN version of ffmpeg, and while compiling the libraries itself works just fine, linking them to some binary brings up 2 undefined references: float exp2f() and float log2f().

The thing is, I have no idea why these functions are referenced in the libraries at all, since they are not available on this ARM platform. configure correctly finds that they are not availble, and redefines their usage.
But still, libavcodec cannot be linked to anything because of these 2 methods.

Does anyone have an idea what I can do to fix it?

Offline

 

#10 2012-02-12 22:58:45

pannu
New member
Registered: 2012-02-12
Posts: 1

Re: ffmpeg including libs - funpkg ready for download

Hi Kai,

I need the libmp3lame library in ffmpeg. Do you know how to compile to include this library?

Appreciate your help as I have been searching for ages.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB