ydegoyon@gmail.com | 15 Oct 08:47
Picon

theora streamer for Android anyone?

ola,

i am one of the developers of http://giss.tv,
some people here might know about it.

we use since 5 years some tools
( gstreamer, ffmpeg2theora, pure data, ... )
to make Ogg/Theora/Vorbis
streams related to media-hacktivism
and social movements.

lately, we realized how important it becomes to
have lighter tools in some contexts where you cannot set
a medialab and a decent network,
like in pacific occupation of public spaces
( plaza catalunya, puerta del sol, ... ).

that's why we are trying now to develop
some streaming solutions for mobile phones
and, logically, we try right now to make this work
on Android.

i compiled libogg, libvorbis and libtheora for ARM
and linked it to the Java interface using JNI...
but alas, no luck, it crashes in various places
of the native code, so i guess i need a proper port of the libraries
to Android ( that should work on ARM processors
with fixed point processing no ? ).

i'm writing now this message to know
(Continue reading)

Favicon

Re: theora streamer for Android anyone?

> i compiled libogg, libvorbis and libtheora for ARM
> and linked it to the Java interface using JNI...
> but alas, no luck, it crashes in various places
> of the native code, so i guess i need a proper port of the libraries
> to Android ( that should work on ARM processors
> with fixed point processing no ? ).

libvorbis requires floating point. I'm not aware of a fixed-point 
encoder for Vorbis, however most Android devices these days support at 
least VFP, if not NEON. That said, all of these libraries work just fine 
on ARM. Please be more specific about the kind of crashes you're observing.
ydegoyon@gmail.com | 15 Oct 09:48
Picon

Re: theora streamer for Android anyone?

Timothy B. Terriberry wrote:
>> i compiled libogg, libvorbis and libtheora for ARM
>> and linked it to the Java interface using JNI...
>> but alas, no luck, it crashes in various places
>> of the native code, so i guess i need a proper port of the libraries
>> to Android ( that should work on ARM processors
>> with fixed point processing no ? ).
>>      
> libvorbis requires floating point. I'm not aware of a fixed-point
> encoder for Vorbis, however most Android devices these days support at
> least VFP, if not NEON. That said, all of these libraries work just fine
> on ARM.
ok, good to know,
do you have a version compiled for Android?
i mean with all Makefile options ?
maybe my Makefile is wrong...
> Please be more specific about the kind of crashes you're observing....
>    
it's not easy to run gdb on the mobile with dalvik,
all i get is SIGSEGV messages
with raw stack pointers... hum,
not very useful.
> _______________________________________________
> theora-dev mailing list
> theora-dev <at> xiph.org
> http://lists.xiph.org/mailman/listinfo/theora-dev
>
>    
Favicon

Re: theora streamer for Android anyone?

> do you have a version compiled for Android?
> i mean with all Makefile options ?
> maybe my Makefile is wrong...

./configure should work, if you have the appropriate environment 
variables (CC, AS, LD, etc.) set up to point at your Android NDK. 
Personally I've only built them for Android inside Firefox, which uses 
its own build system, and only compiles the decoders (though I've built 
and tested the encoders on more normal ARM Linux systems, where they 
work fine).

>> Please be more specific about the kind of crashes you're observing....
>>
> it's not easy to run gdb on the mobile with dalvik,
> all i get is SIGSEGV messages
> with raw stack pointers... hum,
> not very useful.

Android is a giant PITA, in general, but see 
https://wiki.mozilla.org/Mobile/Fennec/Android for instructions on using 
gdb/gdbserver with it.
ydegoyon@gmail.com | 15 Oct 10:21
Picon

Re: theora streamer for Android anyone?

Timothy B. Terriberry wrote:
>> do you have a version compiled for Android?
>> i mean with all Makefile options ?
>> maybe my Makefile is wrong...
>>      
> ./configure should work, if you have the appropriate environment
> variables (CC, AS, LD, etc.) set up to point at your Android NDK.
> Personally I've only built them for Android inside Firefox, which uses
> its own build system, and only compiles the decoders (though I've built
> and tested the encoders on more normal ARM Linux systems, where they
> work fine).
>    

i used ndk-build here .. don't think i have to set variables manually
>    
>>> Please be more specific about the kind of crashes you're observing....
>>>
>>>        
>> it's not easy to run gdb on the mobile with dalvik,
>> all i get is SIGSEGV messages
>> with raw stack pointers... hum,
>> not very useful.
>>      
> Android is a giant PITA, in general, but see
> https://wiki.mozilla.org/Mobile/Fennec/Android for instructions on using
> gdb/gdbserver with it.
>    

ok thanks, will try that.
> _______________________________________________
(Continue reading)

salsaman | 15 Oct 13:42
Picon
Gravatar

Re: theora streamer for Android anyone?

Hi Yves :-D,
I don't know what you are using to cross-compile for ARM, but I have had good results in the past with the commandline tools (gcc, g++, ln, ar, etc) from codesourcery: https://sourcery.mentor.com/sgpp/lite/arm/portal/release858


Cheers,
Salsaman.


http://lives.sourceforge.net
https://www.ohloh.net/accounts/salsaman



On Sat, Oct 15, 2011 at 05:21, ydegoyon <at> gmail.com <ydegoyon <at> gmail.com> wrote:
Timothy B. Terriberry wrote:
>> do you have a version compiled for Android?
>> i mean with all Makefile options ?
>> maybe my Makefile is wrong...
>>
> ./configure should work, if you have the appropriate environment
> variables (CC, AS, LD, etc.) set up to point at your Android NDK.
> Personally I've only built them for Android inside Firefox, which uses
> its own build system, and only compiles the decoders (though I've built
> and tested the encoders on more normal ARM Linux systems, where they
> work fine).
>

i used ndk-build here .. don't think i have to set variables manually
>
>>> Please be more specific about the kind of crashes you're observing....
>>>
>>>
>> it's not easy to run gdb on the mobile with dalvik,
>> all i get is SIGSEGV messages
>> with raw stack pointers... hum,
>> not very useful.
>>
> Android is a giant PITA, in general, but see
> https://wiki.mozilla.org/Mobile/Fennec/Android for instructions on using
> gdb/gdbserver with it.
>

ok thanks, will try that.
> _______________________________________________
> theora-dev mailing list
> theora-dev <at> xiph.org
> http://lists.xiph.org/mailman/listinfo/theora-dev
>
>

_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev

_______________________________________________
theora-dev mailing list
theora-dev <at> xiph.org
http://lists.xiph.org/mailman/listinfo/theora-dev

Gmane