LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-19-2009, 03:58 PM   #16
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032

I've very glad you've made it.

Cheers
 
Old 10-25-2009, 04:02 PM   #17
plebby1
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
Unhappy same issues

well, I have found this thread very useful... thank you! BUT, I am unable to get this working as you have kingkashif. I have been staring at this error for 3 days!!!

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so' - dlopen(/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so, 9): no suitable image found.  Did find:\n\t/usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so: mach-o, but wrong architecture in Unknown on line 0
I feel like a complete moron.

My System:

Mac OS X 10.5.8 on MacBookPro
PHP 5.3.0 (Mark Liyanage's Entropy PHP 5.3.0-3.pkg)

Background:

I have a fresh install of PHP at /usr/local/php5, and I have wiped clean any other modules, and made sym links to the new installation in /usr/bin.

I have a working (make tested) ffmpeg install from...

Code:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
configured like this:

Code:
./configure \
--prefix=/usr/local \
--libdir=/usr/local/lib \
--enable-shared \
--enable-libmp3lame \
--enable-libfaad \
--enable-libfaac \
--enable-gpl \
--enable-nonfree \
--enable-pthreads
I just now followed your last post, kingkishif, exactly. I have a fresh version of ffmpeg-php-0.6.0. I also got the error about RGBA, and replaced all occurrences with RGB. I was then able to make && make install. (which I weird cause I never before got that error on previous tries) I have added:

Code:
extension=ffmpeg.so
to the php.ini (and verified this is the one loaded).

But I still get this error when i restart apache!!! I have no more tricks in my bag. Please help! I'm considering recompiling PHP with a built-in extension, but I really don't want to do this as I'm sure I would run into numerous other problems.

Any ideas anyone?
 
Old 10-25-2009, 04:11 PM   #18
plebby1
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
and...

this too:

Code:
$ nm /usr/local/php5/lib/php/extensions/no-debug-non-zts-20090626/ffmpeg.so
         U __convert_to_string
000005c4 t __dyld_func_lookup
         U __efree
         U __emalloc
         U __estrndup
00000000 t __mh_bundle_header
         U __object_init_ex
00003920 t __php_alloc_ff_frame
000008d0 t __php_alloc_ffmovie_ctx
00003bf0 T __php_convert_frame
000039b0 T __php_create_ffmpeg_frame
00003a30 t __php_free_av_frame
00003a60 t __php_free_ffmpeg_frame
00000990 t __php_free_ffmpeg_movie
000009f0 t __php_free_ffmpeg_pmovie
00002900 t __php_get_av_frame
000026e0 t __php_get_codec_bit_rate
00001f40 t __php_get_codec_name
00000bf0 t __php_get_decoder_context
00001570 t __php_get_duration
00002ad0 t __php_get_ff_frame
000008c0 t __php_get_filename
000018c0 t __php_get_frameheight
000019d0 t __php_get_framenumber
000030e0 t __php_get_framerate
000017b0 t __php_get_framewidth
00001b00 t __php_get_pixelformat
00000840 t __php_get_stream_index
00000890 t __php_get_video_stream
00000920 t __php_open_movie_file
00002f50 T __php_pre_read_frame
         U __safe_emalloc
         U __zend_get_parameters_array_ex
         U __zend_hash_add_or_update
         U __zend_list_addref
         U __zend_list_find
         U __zval_copy_ctor_func
         U __zval_ptr_dtor
         U _add_property_resource_ex
         U _ap_php_snprintf
         U _av_close_input_file
         U _av_find_stream_info
         U _av_free
         U _av_free_packet
         U _av_log_set_callback
         U _av_open_input_file
         U _av_picture_copy
         U _av_read_frame
         U _av_register_all
         U _av_seek_frame
         U _avcodec_alloc_frame
         U _avcodec_close
         U _avcodec_decode_video
         U _avcodec_find_decoder
         U _avcodec_flush_buffers
         U _avcodec_get_pix_fmt_name
         U _avcodec_init
         U _avcodec_open
         U _avcodec_version
         U _avpicture_alloc
         U _call_user_function_ex
         U _convert_to_boolean
         U _convert_to_long
         U _display_ini_entries
         U _executor_globals
         U _expand_filepath
00004890 T _ffmpeg_errorhandler
00005640 S _ffmpeg_frame_class_entry
00005484 b _ffmpeg_frame_class_entry_ptr
00005320 D _ffmpeg_frame_class_methods
000048e0 T _ffmpeg_img_convert
00005020 D _ffmpeg_module_entry
000054a0 S _ffmpeg_movie_class_entry
00005474 b _ffmpeg_movie_class_entry_ptr
00005080 D _ffmpeg_movie_class_methods
         U _free
         U _gc_remove_zval_from_buffer
000005e0 T _get_module
         U _img_convert
000053c0 s _ini_entries
00005620 S _le_ffmpeg_frame
00005478 b _le_ffmpeg_movie
0000547c b _le_ffmpeg_pmovie
00005480 b _le_gd
         U _malloc
         U _php_error_docref0
         U _php_info_print_table_end
         U _php_info_print_table_row
         U _php_info_print_table_start
         U _php_verror
00003a80 T _register_ffmpeg_frame_class
00000a50 T _register_ffmpeg_movie_class
         U _strlen
         U _zend_error
         U _zend_fetch_list_dtor_id
         U _zend_fetch_resource
         U _zend_hash_find
         U _zend_ini_long
         U _zend_register_ini_entries
         U _zend_register_internal_class
         U _zend_register_list_destructors_ex
         U _zend_register_long_constant
         U _zend_register_resource
         U _zend_register_string_constant
         U _zend_strndup
         U _zend_unregister_ini_entries
         U _zend_wrong_param_count
000041a0 T _zim_ffmpeg_frame_ffmpeg_frame
000047a0 T _zim_ffmpeg_frame_getHeight
00004490 T _zim_ffmpeg_frame_getPresentationTimestamp
000046b0 T _zim_ffmpeg_frame_getWidth
000045c0 T _zim_ffmpeg_frame_isKeyFrame
00003cb0 T _zim_ffmpeg_frame_toGDImage
000033b0 T _zim_ffmpeg_movie___construct
00001170 T _zim_ffmpeg_movie_getAlbum
00002700 T _zim_ffmpeg_movie_getAudioBitRate
000024c0 T _zim_ffmpeg_movie_getAudioChannels
00002180 T _zim_ffmpeg_movie_getAudioCodec
000025d0 T _zim_ffmpeg_movie_getAudioSampleRate
000023b0 T _zim_ffmpeg_movie_getAudioStreamId
00000f50 T _zim_ffmpeg_movie_getAuthor
00001c40 T _zim_ffmpeg_movie_getBitRate
00000d30 T _zim_ffmpeg_movie_getComment
00001060 T _zim_ffmpeg_movie_getCopyright
000015a0 T _zim_ffmpeg_movie_getDuration
000016a0 T _zim_ffmpeg_movie_getFileName
00002d30 T _zim_ffmpeg_movie_getFrame
00003280 T _zim_ffmpeg_movie_getFrameCount
000018e0 T _zim_ffmpeg_movie_getFrameHeight
00001a00 T _zim_ffmpeg_movie_getFrameNumber
00003180 T _zim_ffmpeg_movie_getFrameRate
000017d0 T _zim_ffmpeg_movie_getFrameWidth
00001280 T _zim_ffmpeg_movie_getGenre
00002bf0 T _zim_ffmpeg_movie_getNextKeyFrame
00002f90 T _zim_ffmpeg_movie_getPixelAspectRatio
00001b20 T _zim_ffmpeg_movie_getPixelFormat
00000e40 T _zim_ffmpeg_movie_getTitle
00001390 T _zim_ffmpeg_movie_getTrackNumber
00002800 T _zim_ffmpeg_movie_getVideoBitRate
00002070 T _zim_ffmpeg_movie_getVideoCodec
000022a0 T _zim_ffmpeg_movie_getVideoStreamId
00001480 T _zim_ffmpeg_movie_getYear
00001d30 T _zim_ffmpeg_movie_hasAudio
00001e40 T _zim_ffmpeg_movie_hasVideo
00000750 T _zm_info_ffmpeg
00000730 T _zm_shutdown_ffmpeg
00000600 T _zm_startup_ffmpeg
00005000 d dyld__mach_header
000005b0 t dyld_stub_binding_helper
 
Old 10-25-2009, 06:10 PM   #19
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,165
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

The error you get is like the one in the 1st post here. I think that ffmpeg-php picked the wrong OS version or something like that during ./configure. So I guess you can try to recompile apache adding "--enable-layout=Darwin" in ./configure, following the instructions in the 2nd post of the above link and after that the rest (php, ffmpge-php) and see if it works.

Regards

Last edited by bathory; 11-20-2009 at 04:41 PM. Reason: more info
 
Old 10-26-2009, 08:59 PM   #20
plebby1
LQ Newbie
 
Registered: Oct 2009
Posts: 6

Rep: Reputation: 0
thanks for the reply bathory. I've recompiled apache, and am now trying to compile php --with-ffmpeg. the ffmpeg stuff is configuring just fine but i am having issues with mysql. i'll post elsewhere for that.

thanks again
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
ffmpeg-php problems ulver Linux - Software 0 12-17-2008 06:01 AM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
PHP: Adding ffmpeg-php without re-compiling? vxc69 Linux - Software 2 05-17-2007 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration