-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added ffmpeg #658
added ffmpeg #658
Conversation
Trying to compile it for
|
i've tested it with a clean clone, seems like it doesn't compile with the 4.3 toolchain... it still compiles fine with the 4.2 toolchains |
Try playing with the optimization flag to see if that changes anything. Otherwise please report this bug to Synology. |
the last commit fixed the issue for me... |
What about other architectures? Does it compile? |
i've tested a few others too and i was able to compile it on: bromolow, qoriq, x86, cedarview and 88f6281 |
When can we expect a new version of FFMPEG to Cytec eg 1.2 for arch-88f6281. Currently it is only available 1.1-1 |
im currently testing this with ffmpeg 2.1 if all goes well, ill update this pull request to include 2.1... |
So if 1.1-1 SPK comes with ffmpeg 2.0.1 why not name the SPK 2.0.1-1? |
thats what i did for the 2.1 spk... |
According to http://pcloadletter.co.uk/2012/10/12/ffmpeg-shared-libs-for-synology/ builds for armada should be possible as well. I haven't really figured out what's the magic switch yet though... |
thanks ill add that, and have a look at armada as well |
Has anybody managed to get ffmpeg working on ARMv6/7? It compiles but it segfaults once it runs. Anybody has any ideas?
|
ffmpeg is a part of the standard Synology distrobution and can be found in the GPL source tree. |
Hi,@cytec.How to remove the --disable-yasm flag ? The synology complied ffmpeg version has this flag --enable-yasm . |
in general? remove --disable-yasm (maybe add --enable-yasm) from the Makefile maybe you need to provide a cross makefile for yasm too... still not really sure what one would need this for |
yasm makes ffmpeg a hell of a lot faster, as it enables assembly code to be generated. |
If you want I have a configuration file for yasm that you can use (I build yasm and ffmpeg for tvheadend-testing) |
well that sounds nice, sure if you provide the make file for yasm i'll try to compile ffmpeg with yasm support.. |
Thanks your reply,cytec. I had compiled tvheadend-test on dsm 5.0 gcc4.6.3 , Here is my Makefile: Yasm: DEPENDS = CONFIGURE_ARGS = --prefix=$(INSTALL_PREFIX) include ../../mk/spksrc.cross-cc.mk http://cross-cc.mk x264 DEPENDS = cross/yasm #I also tried to remove this cross/yasm,but suffering CONFIGURE_ARGS = —disable-asm --enable-static --disable-opencl ifeq ( include ../../mk/spksrc.cross-cc.mk http://cross-cc.mk libav Make file,here I can add —enable-yasm,and compiled successfully. sangood@debian:~/nas/spksrc-5.0/cross/libav$ cat Makefile DEPENDS = cross/openssl cross/zlib cross/lame cross/x264 cross/faac HOMEPAGE = http://www.libav.org/ http://www.libav.org/ #CONFIGURE_ARGS = --enable-libmp3lame --disable-doc --enable-libx264 include ../../mk/spksrc.cross-cc.mk http://cross-cc.mk .PHONY: myInstall faac DEPENDS = CONFIGURE_ARGS = --enable-static --prefix=$(INSTALL_PREFIX) include ../../mk/spksrc.cross-cc.mk http://cross-cc.mk tvhead-test DEPENDS = cross/openssl cross/uriparser cross/libav cross/zlib HOMEPAGE = https://www.lonelycoder.com/tvheadend/ GNU_CONFIGURE = 1 PRE_PATCH_TARGET = pre_patch_target_tvheadend-testing include ../../mk/spksrc.cross-cc.mk http://cross-cc.mk .PHONY: myInstall pre_patch_target_tvheadend-testing: post_compile_target_tvheadend-testing: When I remove —disable-asm in makefile,I got a error. Here is the cabac.c:(.text+0x2e9): undefined reference to cabac.c:(.text+0x318): undefined reference to sangood@debian:~/nas/spksrc-5.0/cross/x264$ yasm --version Here is my tvhead-testing trancoding log: 2014-08-06 10:12:02.034 mpegts: 554000 in home - tuning on Philips 2014-08-05 19:50 GMT+08:00 cytec [email protected]:
|
https://github.com/sangood/spksrc5.0-tvheadend here is my all configure files. |
@jdierkse Thanks,could you share your configuration file for yasm ? I want to compile for tvheadend-test. |
My yasm makefile (located in native/yasm) looks like this:
|
My x264 makefile looks like this:
|
My ffmpeg makefile looks like this:
|
Thanks @jdierkse ,did you ever compiled for arch-bromolow ? I had added your Makefiles in my spksrc environment , when I make x264 for arch-bromolow,I got a error look like this: libx264.a(cabac.o):cabac.c:(.text+0xf4f): more undefined references to |
seems like x264 can't compie with asm on bromolow, just try to add it to this lines
|
See this http://pcloadletter.co.uk/2012/10/12/ffmpeg-shared-libs-for-synology/, we maybe have to use i686 sdk ? |
if you read that article you'll see that he disables yasm/asm support for most archs as well... you should be able to use i686 if you set the corresponding cross-prefix... |
As @jdierkse said "yasm makes ffmpeg a hell of a lot faster, as it enables assembly code to be generated. |
@sangood The package I build with spksrc (tvheadend-testing) builds ffmpeg with yasm for Bromolow. |
@jdierkse ,Thanks. |
What these errors mean is that the linker cannot find the yasm-built symbols. |
Here is my full log: sangood@debian:~/nas/spksrc-master/cross/x264$ make arch-bromolow You can run 'make' or 'make fprofiled' now. |
OK,thanks,@cytec,@jdierkse. +ifeq ($(ARCH),bromolow) |
Is this PR ready for merge as is? |
@Diaoul should be good to merge yup. |
Trying to compile ffmpeg for armadaxp i got this: |
sucessfully compiled and running on DS 1513+ (cedarview), DS 212j/213air (88f6281)