[jitsi-dev] help build jnffmpeg.so on Ubuntu 32 bit to debug crash bug while receiving video on Ubuntu 12.04 32 bit, screen 15 inch


#1

dear team,

I am using libjitsi in my project for video call. Currently I faced a bug
that Pc (ubuntu 12.04 32 bit, screen 15 inch) crashed when received video:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.jitsi.impl.neomedia.codec.FFmpeg.get_filtered_video_frame(JIIIJJJ)J+0
j
org.jitsi.impl.neomedia.codec.video.HFlip.doProcess(Ljavax/media/Buffer;Ljavax/media/Buffer;)I+531
j
org.jitsi.impl.neomedia.codec.AbstractCodec2.process(Ljavax/media/Buffer;Ljavax/media/Buffer;)I+42
j net.sf.fmj.media.BasicFilterModule.process()V+517
j
net.sf.fmj.media.BasicModule.connectorPushed(Lnet/sf/fmj/media/InputConnector;)V+1
j net.sf.fmj.media.BasicOutputConnector.writeReport()V+79
j net.sf.fmj.media.SourceThread.process()Z+547
j net.sf.fmj.media.util.LoopThread.run()V+15
v ~StubRoutines::call_stub

this crash bug only occurred on laptop 15 inch but not on other sizes (14.1
inch, 17 inch).

Now I want to change something on jnffmpeg source to fix this bug but when
I built jnffmpeg.so following readme file on
libjitsi <https://github.com/jitsi/libjitsi> /
src<https://github.com/jitsi/libjitsi/tree/master/src>/
native <https://github.com/jitsi/libjitsi/tree/master/src/native> /
*ffmpeg*/ (libjitsi's github ). that means I did step by step below:

#1.sudo apt-get install lame
#2.sudo apt-get install x264
#3.sudo apt-get install ffmpeg
#4.libjitsi/ and run "ant ffmpeg"

==>but i received this error:

BUILD FAILED.../build.xml:281: ffmpeg repository not set!

<https://github.com/jitsi/libjitsi><https://github.com/jitsi/libjitsi/tree/master/src><https://github.com/jitsi/libjitsi/tree/master/src/native>
**infact I did not understand some points related to lam, x264, ffmpeg on
readme, #1,#2,#3 above I just guess they are similar readme points. Please
help me to overcome the build failed problem. Thank you very much.

···

------------------
Best Regards,
Hong Nguyen


#2

Hello,

dear team,

I am using libjitsi in my project for video call. Currently I faced a
bug that Pc (ubuntu 12.04 32 bit, screen 15 inch) crashed when received
video:

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.jitsi.impl.neomedia.codec.FFmpeg.get_filtered_video_frame(JIIIJJJ)J+0
j
org.jitsi.impl.neomedia.codec.video.HFlip.doProcess(Ljavax/media/Buffer;Ljavax/media/Buffer;)I+531
j
org.jitsi.impl.neomedia.codec.AbstractCodec2.process(Ljavax/media/Buffer;Ljavax/media/Buffer;)I+42
j net.sf.fmj.media.BasicFilterModule.process()V+517
j
net.sf.fmj.media.BasicModule.connectorPushed(Lnet/sf/fmj/media/InputConnector;)V+1
j net.sf.fmj.media.BasicOutputConnector.writeReport()V+79
j net.sf.fmj.media.SourceThread.process()Z+547
j net.sf.fmj.media.util.LoopThread.run()V+15
v ~StubRoutines::call_stub

this crash bug only occurred on laptop 15 inch but not on other sizes
(14.1 inch, 17 inch).

Now I want to change something on jnffmpeg source to fix this bug but
when I built jnffmpeg.so following readme file on
libjitsi <https://github.com/jitsi/libjitsi>/ src
<https://github.com/jitsi/libjitsi/tree/master/src>/ native
<https://github.com/jitsi/libjitsi/tree/master/src/native>/ *ffmpeg*/
(libjitsi's github ). that means I did step by step below:

#1.sudo apt-get install lame
#2.sudo apt-get install x264
#3.sudo apt-get install ffmpeg
#4.libjitsi/ and run "ant ffmpeg"

==>but i received this error:

BUILD FAILED.../build.xml:281: ffmpeg repository not set!

<https://github.com/jitsi/libjitsi><https://github.com/jitsi/libjitsi/tree/master/src><https://github.com/jitsi/libjitsi/tree/master/src/native>**infact
I did not understand some points related to lam, x264, ffmpeg on readme,
#1,#2,#3 above I just guess they are similar readme points. Please help
me to overcome the build failed problem. Thank you very much.

The README assumes that you will download the lame, x264 and ffmpeg
sources and build them yourself.

After this is done, you can run "ant ffmpeg" and set the repositories by
passing, for example, -Dffmpeg=/path/to/ffmpeg/build/directory

Ubuntu uses libav instead of ffmpeg now, so I don't know whether you can
currently use the system packages to avoid all that work.

Regards,
Boris

···

On 8/22/13 6:08 AM, Nguyen Manh Hong wrote: