[sip-comm-dev] Newest FFMPEG OSX works... How about PortAudio


#1

Hi Vincent and All,

Now I can compile newest FFMPEG library which is smaller than previous
dylibrary!!. What specially I did, applied the original patch in the
src/native/ffmpeg. I Have used latest svn of ffmpeg and x264.

I will check on my friend's Macbook to verify if this is working fine there
too. After I will commit it.

Meanwhile Please let me know Why PortAudio has no Readme or compilation
method for Mac OSX (in src/native/portaudio)?
Please let me know docs about it if any.

Cheers
Pujan

···

On Thu, Apr 1, 2010 at 13:06, Sebastien Vincent <seb@sip-communicator.org>wrote:

Hi,

After some googling, this problem happen on other projects (apache, ...).
Try adding -lz (be sure to have libz installed) in Makefile in the line
after "-lx264".

If you use latest tip of tree of ffmpeg rather than revision specified in
src/native/ffmpeg/README, SIP Communicator may not work correctly because we
base our JNI code with an older revision. Anyway if you manage to build
up-to-date x264/ffmpeg sources and make it run with SIP Communicator we are
interrested :).

Regards,
--
Seb

On 01/04/2010 04:48, Pujan Srivastava wrote:

Hello All,

I am trying to make newest "libffmpeg.jnilib" on Mac OSX.
I am using SVN updated ffmpeg sources. When I try to make, I get the
following error.

Anyone encounter similar problem ? Thank you -

make
gcc -DJNI_IMPLEMENTATION
-I/System/Library/Frameworks/JavaVM.framework/include -I/usr/local/ffmpeg
-I/System/Library/Frameworks/JavaVM.framework/Headers/
net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c -dynamiclib
-Wl,-read_only_relocs,suppress -o libffmpeg.jnilib
-L/usr/local/ffmpeg/libavformat -L/usr/local/ffmpeg/libavcodec
-L/usr/local/ffmpeg/libavutil -L/usr/local/ffmpeg/libswscale
-L/usr/local/x264 -lavformat -lavcodec -lavutil -lswscale -lx264
net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c: In function
‘image_convert’:
net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c:413: warning:
passing argument 2 of ‘sws_scale’ from incompatible pointer type
ld: warning: -read_only_relocs cannot be used *with x86_64*
Undefined symbols:
  "_compress", referenced from:
      _encode_strip in libavcodec.a(tiffenc.o)
  "_uncompress", referenced from:
    ::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::
    ::::::::::::::::::::::::::::::::

ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libffmpeg.jnilib] Error 1


#2

Hi,

Pujan Srivastava a �crit :

Hi Vincent and All,

Now I can compile newest FFMPEG library which is smaller than previous dylibrary!!. What specially I did, applied the original patch in the src/native/ffmpeg. I Have used latest svn of ffmpeg and x264.

I presume you only compiled the library for your architecture: i386, x86_64 or ppc. We compile libffmpeg for all these architectures (universal binary) and assemble them with lipo. So it explain the facts that your binary is smaller that ours.

I will check on my friend's Macbook to verify if this is working fine there too. After I will commit it.

Is it working fine ?

Meanwhile Please let me know Why PortAudio has no Readme or compilation method for Mac OSX (in src/native/portaudio)?
Please let me know docs about it if any.

There is a README for portaudio (src/native/portaudio/README) and there are Mac OS X instructions for speex, portaudio and our lib jportaudio.

Regards,

···

--
Seb

Cheers
Pujan

On Thu, Apr 1, 2010 at 13:06, Sebastien Vincent > <seb@sip-communicator.org <mailto:seb@sip-communicator.org>> wrote:

    Hi,

    After some googling, this problem happen on other projects
    (apache, ...). Try adding -lz (be sure to have libz installed) in
    Makefile in the line after "-lx264".

    If you use latest tip of tree of ffmpeg rather than revision
    specified in src/native/ffmpeg/README, SIP Communicator may not
    work correctly because we base our JNI code with an older
    revision. Anyway if you manage to build up-to-date x264/ffmpeg
    sources and make it run with SIP Communicator we are interrested :).

    Regards,
    --
    Seb

    On 01/04/2010 04:48, Pujan Srivastava wrote:

    Hello All,

    I am trying to make newest "libffmpeg.jnilib" on Mac OSX.
    I am using SVN updated ffmpeg sources. When I try to make, I get
    the following error.

    Anyone encounter similar problem ? Thank you -

    make
    gcc -DJNI_IMPLEMENTATION
    -I/System/Library/Frameworks/JavaVM.framework/include
    -I/usr/local/ffmpeg -I/System/Library/Frameworks/JavaVM.framework/Headers/
    net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c
    -dynamiclib -Wl,-read_only_relocs,suppress -o libffmpeg.jnilib
    -L/usr/local/ffmpeg/libavformat -L/usr/local/ffmpeg/libavcodec
    -L/usr/local/ffmpeg/libavutil -L/usr/local/ffmpeg/libswscale
    -L/usr/local/x264 -lavformat -lavcodec -lavutil -lswscale -lx264
    net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c: In
    function �image_convert�:
    net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c:413:
    warning: passing argument 2 of �sws_scale� from incompatible
    pointer type
    ld: warning: -read_only_relocs cannot be used *with x86_64*
    Undefined symbols:
      "_compress", referenced from:
          _encode_strip in libavcodec.a(tiffenc.o)
      "_uncompress", referenced from:
        ::::::::::::::::::::::::::::::::

    ld: symbol(s) not found
    collect2: ld returned 1 exit status
    make: *** [libffmpeg.jnilib] Error 1

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#3

Hi,

Thanks.

newest FFMPEG is working fine but problem is with PortAudio. I have compiled
the updated portaudio. I think I am missing something.

Error is : Cannot open portaudio device for notifications
net.java.sip.communicator.impl.neomedia.portaudio.PortAudioException:
Internal PortAudio error....
at net.java.sip.communicator.impl.neomedia.portaudio.PortAudio.Pa_OpenStream(Native
Method)
        at net.java.sip.communicator
.impl.neomedia.portaudio.streams.OutputPortAudioStream.createStream(OutputPortAudioStream.java:169)
        at net.java.sip.communicator
.impl.neomedia.portaudio.streams.OutputPortAudioStream.<init>(OutputPortAudioStream.java:126)
        at net.java.sip.communicator
.impl.neomedia.portaudio.PortAudioManager.getOutputStream(PortAudioManager.java:208)
        at net.java.sip.communicator
.impl.neomedia.notify.PortAudioClipImpl$PlayThread.run(PortAudioClipImpl.java:133)

···

On Tue, Apr 13, 2010 at 16:46, Sebastien Vincent <seb@sip-communicator.org>wrote:

Hi,

Pujan Srivastava a écrit :

Hi Vincent and All,

Now I can compile newest FFMPEG library which is smaller than previous
dylibrary!!. What specially I did, applied the original patch in the
src/native/ffmpeg. I Have used latest svn of ffmpeg and x264.

I presume you only compiled the library for your architecture: i386, x86_64
or ppc. We compile libffmpeg for all these architectures (universal binary)
and assemble them with lipo. So it explain the facts that your binary is
smaller that ours.

I will check on my friend's Macbook to verify if this is working fine

there too. After I will commit it.

Is it working fine ?

Meanwhile Please let me know Why PortAudio has no Readme or compilation

method for Mac OSX (in src/native/portaudio)?
Please let me know docs about it if any.

There is a README for portaudio (src/native/portaudio/README) and there are
Mac OS X instructions for speex, portaudio and our lib jportaudio.

Regards,
--
Seb

Cheers
Pujan

On Thu, Apr 1, 2010 at 13:06, Sebastien Vincent <seb@sip-communicator.org<mailto: >> seb@sip-communicator.org>> wrote:

   Hi,

   After some googling, this problem happen on other projects
   (apache, ...). Try adding -lz (be sure to have libz installed) in
   Makefile in the line after "-lx264".

   If you use latest tip of tree of ffmpeg rather than revision
   specified in src/native/ffmpeg/README, SIP Communicator may not
   work correctly because we base our JNI code with an older
   revision. Anyway if you manage to build up-to-date x264/ffmpeg
   sources and make it run with SIP Communicator we are interrested :).

   Regards,
   --
   Seb

   On 01/04/2010 04:48, Pujan Srivastava wrote:

   Hello All,

   I am trying to make newest "libffmpeg.jnilib" on Mac OSX.
   I am using SVN updated ffmpeg sources. When I try to make, I get
   the following error.

   Anyone encounter similar problem ? Thank you -

   make
   gcc -DJNI_IMPLEMENTATION
   -I/System/Library/Frameworks/JavaVM.framework/include
   -I/usr/local/ffmpeg
-I/System/Library/Frameworks/JavaVM.framework/Headers/
   net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c
   -dynamiclib -Wl,-read_only_relocs,suppress -o libffmpeg.jnilib
   -L/usr/local/ffmpeg/libavformat -L/usr/local/ffmpeg/libavcodec
   -L/usr/local/ffmpeg/libavutil -L/usr/local/ffmpeg/libswscale
   -L/usr/local/x264 -lavformat -lavcodec -lavutil -lswscale -lx264
   net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c: In
   function ‘image_convert’:
   net_java_sip_communicator_impl_neomedia_codec_video_FFMPEG.c:413:
   warning: passing argument 2 of ‘sws_scale’ from incompatible
   pointer type
   ld: warning: -read_only_relocs cannot be used *with x86_64*
   Undefined symbols:
     "_compress", referenced from:
         _encode_strip in libavcodec.a(tiffenc.o)
     "_uncompress", referenced from:
       ::::::::::::::::::::::::::::::::
       ::::::::::::::::::::::::::::::::
       ::::::::::::::::::::::::::::::::
       ::::::::::::::::::::::::::::::::

   ld: symbol(s) not found
   collect2: ld returned 1 exit status
   make: *** [libffmpeg.jnilib] Error 1