Re: Play sound through Gstreamer while Media Player is running

2010-03-23 Thread Stefan Kost
Andrei Mirestean wrote:
>
> On Fri, Mar 19, 2010 at 5:36 PM, Stefan Kost  <mailto:enso...@hora-obscura.de>> wrote:
>
> Andrei Mirestean wrote:
> > Hi,
> > Is there any way to play a sound through Gstreamer while the Media
> > player is running? I've tried with playbin2 sink but it's now
> working.
> now or not?
>
> not working, sorry for the spelling mistake 
>
>  
>
> If its a kind of notifications sound the policy will allow playing
> it in
> parallel. Otherwise the policy kicks in. What are you trying to do?
>
> It's a notification sound. I'm developing the pedometer widget and I
> want to notify the user when he has taken a number of steps.
I'd suggest to use libcanberra for that then.
http://0pointer.de/lennart/projects/libcanberra/gtkdoc/libcanberra-canberra.html#ca-context-play

Stefan


> Stefan
>
> >
> > Thanks!
> >
> > --
> > Andrei Mirestean
> >
> 
> >
> > ___
> > maemo-developers mailing list
> > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
> > https://lists.maemo.org/mailman/listinfo/maemo-developers
> >
>
>
>
>
> -- 
> Andrei Mirestean

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Play sound through Gstreamer while Media Player is running

2010-03-19 Thread Stefan Kost
Andrei Mirestean wrote:
> Hi, 
> Is there any way to play a sound through Gstreamer while the Media
> player is running? I've tried with playbin2 sink but it's now working.
now or not?

If its a kind of notifications sound the policy will allow playing it in
parallel. Otherwise the policy kicks in. What are you trying to do?

Stefan

>
> Thanks!
>
> -- 
> Andrei Mirestean
> 
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: music player with .lrc support !

2010-03-19 Thread Stefan Kost
Simon Pickering wrote:
>  
>   
>> Personally, I think it's too small for a 3 month project, though.
>> However getting LRC parsing into gstreamer or MAFW for use by 
>> the Nokia media player would be a fine challenge for three 
>> months, IMHO.
>> 
>
> This certainly sounds useful.
>   

If LRC is this http://de.wikipedia.org/wiki/LRC_%28Dateiformat%29
one could indeed write a new UI on top of MAFW. Play the songs and check
the duration from time-to-time to update the lyrics.

Stefan

>   
>> But since the Nokia media player is closed source, it would 
>> be kinda hard to make it display lyrics. An alternative would 
>> 
>
> Wasn't the whole idea of MAWF to make it easy to replace the Media Player
> and only need to write the GUI stuff (leaving all the playlist stuff to
> MAWF, decoding to Gstreamer, and finding files to trackerd)?
>
> I've not looked at it though, so perhaps it's difficult to work with hence
> the lack of replacement players. Though if not, writing a proof of concept
> player to display the lyrics too shouldn't be too hard (he says).
>
> Cheers,
>
>
> Simon
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Media Player in N900

2010-03-19 Thread Stefan Kost
fluke box wrote:
> Hi All,
>Do we have something in Maemo File Browser, where we can add a file
> to current playlist ?
>Moreover, in N900 media player, there is nothing like add file to
> current playlist :-( (Or may be i am unaware).
There is, its in the menu. Browse the songs and tap the title bar (Add
to current playlist).

Stefan
>I would like to have nautilus like script based thing in maemo file
> browser for adding a file to current playlist.
>Moreover,  i would like to write the same if that is not currently
> available.
>  
> Thanks,
> flukebox
>
>
>
> 
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: G_DISABLE_CAST_CHECKS in packages an maybe on builders

2010-03-19 Thread Stefan Kost
Graham Cobb wrote:
> On Friday 19 March 2010 14:42:05 Stefan Kost wrote:
>   
>> I noticed that still lots of packages that use GObject are not disable
>> GObject cast checks in their builds. *It is a safe thing to do*. The
>> macro is doing a cast, if checking is enabled it checks and warn in the
>> case of an mismatch. The check is pointless in device that is running a
>> PR image as we have the (sys)logging turned off. So we can also turn off
>> the checks (the checks are not preventing anything). This makes binaries
>> smaller and faster.
>> 
>
> That is a good suggestion for production binaries.  However, for beta 
> binaries 
> I would prefer to leave it on -- I find the console mesages very useful 
> during testing (and I run syslog on my development device as well).
>   
I does not show on the console. Our glib is patched so that it goes to
syslog. But anyway I am totally with you. Messages enabled for testing
binaries, messages off for releases.

Stefan
>   
>> I wonder if it would make sense to disable this globally on the package
>> builder. Having the check enabled is most useful in conjunction with
>> defining G_DEBUG="fatal_warnings" and checking for coredumps.
>> 
>
> No thanks, at least not without a way to override it.
>
> Graham
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


G_DISABLE_CAST_CHECKS in packages an maybe on builders

2010-03-19 Thread Stefan Kost
Hi,

I noticed that still lots of packages that use GObject are not disable
GObject cast checks in their builds. *It is a safe thing to do*. The
macro is doing a cast, if checking is enabled it checks and warn in the
case of an mismatch. The check is pointless in device that is running a
PR image as we have the (sys)logging turned off. So we can also turn off
the checks (the checks are not preventing anything). This makes binaries
smaller and faster.

One can easily see what is affected:
for i in `find /usr/ -type f`; do
  objdump 2>/dev/null -T $i | grep -q g_type_check_instance_cast && echo $i;
done

or even get the package name:
  objdump 2>/dev/null -T $i | grep -q g_type_check_instance_cast && dpkg
-S $i | cut -d: -f1

The check is turned off by adding -D G_DISABLE_CAST_CHECKS to CFLAGS.
Some projects do that in configure.{ac,in}

if test "x$enable_debug" = "xyes"; then
  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
  GTK_DEBUG_FLAGS="-DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES"
else
  if test "x$enable_debug" = "xno"; then
GTK_DEBUG_FLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS
-DG_DISABLE_CAST_CHECKS"
  else
GTK_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
  fi
fi
http://maemo.gitorious.org/hildon/gtk/blobs/master/configure.in#line282


some in their debian/rules

ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -DG_DISABLE_CAST_CHECKS
endif
http://maemo.gitorious.org/maemo-multimedia/gstreamer/blobs/maemo5/debian/rules

I wonder if it would make sense to disable this globally on the package
builder. Having the check enabled is most useful in conjunction with
defining G_DEBUG="fatal_warnings" and checking for coredumps.

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Audio preemption between a media player and softphone.

2009-01-30 Thread Stefan Kost
Richard schrieb:
> Hi,
>   
>  Our team has written a media player and softphone on the maemo 
> platform. However they are sharing a alsa mixer such that softphone 
> cannot preempt the media player' audio when the call is received and 
> establish. How can I do the audio arbitation in maemo? Thanks in advance
> 
You can use libplayback. I define a context where the application described its
type and you register a callback for getting preemption requests etc.

Stefan

> Regards,
> 
> Richard Wu
> Senior Engineer,
> ASTRI
> 
> 
> ~
> This message (including any attachments) is for the named
> addressee(s)'s use only. It may contain sensitive, confidential,
> private proprietary or legally privileged information intended for a
> specific individual and purpose, and is protected by law. If you are
> not the intended recipient, please immediately delete it and all copies
> of it from your system, destroy any hard copies of it
> and notify the sender. Any use, disclosure, copying, or distribution of
> this message and/or any attachments is strictly prohibited.
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Install gstreamer git on maemo

2009-01-01 Thread Stefan Kost
Erivaldo schrieb:
> Hello,
> 
> do someone knows how to install gstreamer0.10 from git, once compiled,
> into n800? I managed to compile it inside scratchbox, but just
> replacing libs at /usr/lib/ and binaries at /usr/bin/ doesn't worked.
> I got some dynamic linking errors, due missing symbols, running
> gst-inspect or gst-launch. I really need the newest source from git.
GStreamer is not officialy in git, its in cvs still. Besides for installing I
see these options:
1) carefully copy all files (prefix/bin/gst*, prefix/lib/libgst*,
prefix/lib/gstreamer-0.10/*)
2) use checkinstall and copy
3) copy debian stuff in source tree and make packages

Nr. 3 would be the safest. If would rock if someone would make newer gstreamer
packages for diablo.

Stefan


> 
> Maybe just to copy it isn't enough?
> 
> 
> Sorry for bad english,
> Erivaldo
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Gsteamer-problem

2008-11-21 Thread Stefan Kost
Manish_Ssinghal schrieb:
> Hi,
> 
> I am working on an audio application. I am trying to play a
> .wav file using their example code (example_wavelaunch.c). I am working
> on maemo OS-2008. I commented the code needed for file browser which
> requires haildon-fm1 library and passing the path of the .wav file from
> that function. But the application gets crash when I clicked on the play
> button. After debugging, I found the following error
> 
> Gstreamer_error:Internal data flow
> error.gstwaveparse.c(1759):gst_waveparse_loop():/pipeline0/wavparse0streaming
> caused paused, reason not -linked (-1) .
> 
That means your waveparse element is not linked to anything. I would recommend
you to use playbin. Its easier.

Stefan

>  
> 
> Has anyone faced this problem before?
> 
> Any pointer will be very helpful
> 
>  
> 
> *With Regards,*
> 
> *
> Manish Singhal.***
> 
> *Software Engineer*
> 
> *Persistent Systems  Ltd.*
> 
> *M  :+91  9960402238.*
> 
> *== ***
> 
>  
> 
> DISCLAIMER == This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please notify
> the sender and delete all copies of this message. Persistent Systems
> Ltd. does not accept any liability for virus infected mails.
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Problems accessing the camera in Flash

2008-11-06 Thread Stefan Kost
hi,

Merrick Fonnesbeck schrieb:
> I was playing around with a Flash program that runs in a browser and
> sends the video stream from your computer/web camera out to another
> party.  I've tried it on a Nokia n810 and I can see the camera output
> from a desktop computer coming in, but the other side cannot see the
> output of my Nokia n810 camera.

I am not sure if flash on maemo support the camera. But in anyway thsi si not
gstreamer related - flash does not use it. Please ask on maemo-devel.

Stefan

>  I figure it has something to do with
> the Flash program not recognizing that a camera exists or that the
> camera is not registered in the right way on the device so that the
> Flash program can see it and connect to it.  Does any one have any idea
> about this of how to fix it or have any theories about what might be
> going on?  Thanks.
> 
> Merrick F.
> 
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Fw: gstreamer on CHINOOK

2008-11-04 Thread Stefan Kost
Sphurti Durgade schrieb:
>  
> Hi all ,
> i tried  the same on N800 
> but same result.. :( 
> Both N800 and N810 has OS2008 
> 
> On OS2007  filesrc ! dspmp3sink worked 
> and on OS2008  some .mp3 files are able to play with 
> filesrc ! dspmp3sink  but not all :(  
> 
> is it problem with OS2008 and dspmp3sink ? 

You should use
filesrc ! id3demux ! dspmp3sink

The dspmp3sink cannot (and should not) handle tags.

Stefan

> 
> regards
> minti
> 
> 
> - Original Message 
> From: Rob Gil <[EMAIL PROTECTED]>
> To: maemo-developers@maemo.org
> Sent: Tuesday, 21 October, 2008 1:24:42 PM
> Subject: Re: gstreamer on CHINOOK
> 
> 
> 
> Hi,
> 
> On my N800 filesrc ! dspmp3sink works ok. On the other hand playbin does 
> *not* work, while playbin2 *does* work...
> 
> I do have more recent version of gstreamer compiled, which may explain the 
> difference, but dspmp3sink is what comes with the OS2008 image.
> 
> Rob
> 
> 
> 
>> Hi all ,
>> i am running a mp3 file on N810 with gst-launch-o.10 as :
>> Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 playbin 
>> uri=file:///media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3
>> it is able to play with playbin
>>
>> but the same file if i play with filesrc as :
>> Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 filesrc 
>> location=/media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3 ! 
>> dspmp3sink is not able to play :( exit with 
>> Nokia-N810-50-2:/media/mmc2/Audio/Dostana# gst-launch-0.10 filesrc 
>> location=/media/mmc2/Audio/Dostana/dostana02\(www.songs.pk\).mp3 ! 
>> dspmp3sink Setting pipeline to PAUSED ...
>> Pipeline is PREROLLING ...
>> Pipeline is PREROLLED ...
>> Setting pipeline to PLAYING ...
>> New clock: DSPClock
>> ERROR: from element /pipeline0/dspmp3sink0: Could not determine type of 
>> stream.
>> Additional debug info:
>> gstdspmp3sink.c(1026): gst_dspmp3sink_render (): /pipeline0/dspmp3sink0:
>> gst_dspmp3sink_loop_initialization
>> Execution ended after 16846000 ns.
>> Setting pipeline to PAUSED ...
>> Setting pipeline to READY ...
>> Setting pipeline to NULL ...
>> FREEING pipeline ...
>> Nokia-N810-50-2:/media/mmc2/Audio/Dostana#
>>
>> file info:
>> MIME type : audio/mpeg
>> Audio
>> Codec: MPEG 1 Audio, Layer 3 (MP3)
>> Channels: Stereo
>> Sample rate : 44100 Hz
>> Bitrate :128kbps
>>
>> does anyone know why playbin is able to play same file and not filesrc ?
>> and why filesrc is not able to not determine type of stream.
>>
>>
>>
>> regards,
>> minti
>>
>> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
>> Now! http://messenger.yahoo.com/download.php
>>
>> ___
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
> 
> _
> You live life beyond your PC. So now Windows goes beyond your PC.
> http://clk.atdmt.com/MRT/go/115298556/direct/01/
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
> 
> 
> Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download 
> Now! http://messenger.yahoo.com/download.php
> 
> 
> 
>   Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: mediaplayer dbus interface

2008-11-04 Thread Stefan Kost
hi,

Hermann Lacheiner schrieb:
> Hi maemo community!
> 
> I would like to implement a home applet for setting an alarm. When the
> alarm goes off, e.g. the mediaplayer should be started to play an internet
> radio stream. So your favorite internet radio stream is played in the
> morning and getting up should be a little bit easier ;)
> 
> My problem is now, that I did not find any current information about the
> dbus interface of the mediaplayer. Is it actually possible to remote
> control the mediaplayer over dbus (for example using the MPRIS interface)?
> And where do I get more detailed information about the dbus interface?

You shouldn't use the media players dbus interface. Its internal and it will
disappear.
Using playbin in gstreamer requires just a few lines of code to play a file from
url.

Stefan

> 
> Thanks for any information!
> 
> Hermann
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: ALSA sound driver for Nokia 770 and DSP programming

2008-09-29 Thread Stefan Kost
hi,
Robert Schuster schrieb:
> Hi,
> 
> Siarhei Siamashka schrieb:
>> Recently I have been trying to make it running and seems like we have a very
>> good chance to have it working nicely. It is also interesting, that the
>> linux-omap guys seem to be developing a new driver [3] for AIC23 which may
>> eventually become a better alternative.
> Very nice!
> 
> I will try your patch in mamona which IMO provides the most easy way to
> test those things out. Mamona is based on OpenEmbedded and every other
> distribution made from it bases its sound core on ALSA not gstreamer ...
>
Its not entierly true. Sound core is based on a proprietary dsp interface.
N800/810 has alsa/gstreamer/esd support. On fremantle/omap3 have fixed that
problem, as there is real alsa + gstreamer/pulseaudio/esounds for higher level
stuff.

Stefan

> 
> It is good that a new driver is in development, however I have doubts
> that we will be able to run 2.6.27+ on the N770 soon ;).
> 
> Is the AIC23 also in the N8x0 devices?
> 
> Regards
> Robert
> 
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to use gstreamer in diablo?

2008-09-25 Thread Stefan Kost
Gerolf Ziegenhain schrieb:
> Dear mailinglist,
> 
> How could I use gstreamer in the nokia tablet with diablo? Somehow the 
> gst-... 
> commands are not provided and it also seems, that even though I can  load the 
> python modules, its not possible to setup an audio test  source:
> 
> Traceback (most recent call last):
>   File "", line 1, in 
>   gst.ElementNotFoundError: audiotestsrc
>   >>> gst.element_factory_make("audiotestsrc", "audio")

audiotestsrc is not installed by default. Should be in
gstreamer0.10-plugins-base-extra or so.

Stefan

> 
> As I think I installed all  stuff provided in the usual repositories, my 
> question would be: Is there a quick intro on how to use gstreamer with python 
> on the tablet?
> 
> Best regards:
>   Gerolf
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Accessing RTSP streaming server via Nokia-N800

2008-08-20 Thread Stefan Kost
priyank kumar chourasia schrieb:
> Hi,
> 
> I am going to write a simple c++ based application for streaming a data 
> from remote server/Playing a file from local machine i.e. Nokia-N800, 
> I'll place the exe in Nokia-N800 which will be connected to a ubuntu 
> machine(Is in network) via USB network.
> 
> - How can I stream a clip(from N800) which is located at the remote 
> server(for example rtsp://abc.com/abc.3gp) ??
> - What settings are required to perform the above task ??

gst-launch-0.10 playbin uri=rtsp://abc.com/abc.3gp

Study gstreamer developer docs at gstreamer.freedesktop.org/docs/ if you want 
to 
do the same from a c or python app. If you have more questions, come to 
#gstreamer on freenode-irc.

Stefan

> 
> Regards,
> Priyank
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How could I use gstream to play PCM buffer?

2008-08-18 Thread Stefan Kost
dumganhar schrieb:
> Hi,all!
> How could  I use gstream library to play sounds in the PCM buffer?I was 
> succeed in using "Wav Launch Demo" to play the pcm wav files on N810.But 
> how could I use "gst_parse_launch" function to play sounds in the PCM 
> buffer, not the way of opening wav files? Please help me!Thanks!
>  
> 2008-08-18
> 
> dumganhar
> 

gst-launch filesrc location=test.raw !
audio/x-raw-int,rate=44100,channels=1,width=16,... ! dsppcmsink

that element in the middle is a caps-filter where you need to describe the
format for raw audio. If it does not play, add an audioconvert element between
the capsfilter and dsppcmsink.

Stefan

> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: portaudio (again)

2008-08-18 Thread Stefan Kost
hi,

could you please reply to the list?

Chris Dobbs schrieb:
> Hi Stefan,
> Yes, I have realised OSS is not there now.
> If alsa is available , why do I only see the ctrl device for alsa :
>
> Nokia-N800-44-4:~# ls /dev/snd
> controlC0
>   
Because its an io plugin. It routes audio to the dsp. There is no full
fledged alsa driver.
Have a look at /proc/asound/ for more audio system info. Also consider
usingHAL if you want to lookup the audio-device.

Stefan
> I would have expected to see something along the lines of
> [EMAIL PROTECTED]:/usr/dev$ ls /dev/snd
> controlC0  controlC1  controlC2  pcmC0D0c  pcmC0D0p  pcmC0D1c  pcmC0D2c
> pcmC0D3c  pcmC0D4p  pcmC1D0c  pcmC1D0p  pcmC2D0c  seq  timer
> do
>
>
> Is there something I have to do to load this alsa io module as I cant find
> any reference to it?
>
> Thansk,
> -Chris
>
> - Original Message -
> From: "Stefan Kost" <[EMAIL PROTECTED]>
> To: "Chris Dobbs" <[EMAIL PROTECTED]>
> Cc: 
> Sent: Sunday, August 17, 2008 12:21 PM
> Subject: Re: portaudio (again)
>
>
>   
>> Hi,
>>
>> Chris Dobbs schrieb:
>> 
>>> Hi all,
>>> I am trying to get portaudio working on the N800. I can compile and
>>> build everything ok but when I try to run the pa test programs on the
>>> N800 I get things this:
>>>
>>>
>>> Nokia-N800-44-4:~# ./pa_devs-v19
>>> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in
>>> 'src/hostapi/oss/pa_unix_oss.c', line: 405
>>> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in
>>> 'src/hostapi/oss/pa_unix_oss.c', line: 405
>>> PortAudio version number = 1899
>>> PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
>>> Number of devices = 0
>>> --
>>>
>>> I realised early on that PA used /dev/dsp so I did "ln -s
>>> /dev/dsptask/pcm1 /dev/dsp"
>>>   
>> Don't do that. There is no OSS. There is alsa in the form of an alsa io
>> 
> plugin
>   
>> that talks to the DSP.
>>
>> 
>>> I have tried various others but to no avail, can anyone help I know PA
>>> supports OSS and ALSA which are both installed on the N800, although I
>>> think esd is the default driver.
>>>   
>> Esd is there for compatibillity reasons. Default linux audio (low level)
>> 
> api is
>   
>> alsa. For highlevel apis there is esound and gstreamer.
>>
>> Stefan
>>
>> 
>>> -Chris
>>>
>>>
>>>
>>>
>>> 
>>>
>>> ___
>>> maemo-developers mailing list
>>> maemo-developers@maemo.org
>>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>>   
>
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: problem with playing wav file

2008-08-17 Thread Stefan Kost
Ganesh Kundapur schrieb:
> Hi,
>   I'm able to play the wav file by using gst-launch as fallows
> 
> gst-launch-0.10  filesrc location=~/songs/4voice.wav ! wavparse ! 
> audioconvert ! alsasink
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstAudioSinkClock
> Caught interrupt -- handling interrupt.
> Interrupt: Setting pipeline to PAUSED ...
> Execution ended after 1914601000 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> Setting pipeline to NULL ...
> FREEING pipeline ...
> 
> 
> I modified the helloworld code to play the wav as
> 1. I created "waveparse" in place of oggdemux and vorbis  parser elements
> 2. Added filesrc, waveparse and alsasink to the pipeline and linked.
> 
> --
> int
> main ( int argc, char *argv[] )
> {
> GMainLoop *loop;
> GstBus *bus;
> 
> gst_init ( &argc, &argv );
> loop = g_main_loop_new ( NULL, FALSE );
> 
>  pipeline = gst_pipeline_new ( "audio-player" );
> source = gst_element_factory_make ( "filesrc", "file-source" );
> //parser = gst_element_factory_make ( "oggdemux", "ogg-parser" );
> parser = gst_element_factory_make ( "wavparse", "wave-parser" );
> //decoder = gst_element_factory_make ( "vorbisdec", 
> "vorbis-decoder" );
> conv = gst_element_factory_make ( "audioconvert", "converter" );
> sink = gst_element_factory_make ( "alsasink", "alsa-output" );
> 
> if ( !pipeline || !source || !parser || !conv || !sink ) {
> g_print ( "One element could not be created\n" );
> return -1;
> }
> 
> g_object_set (G_OBJECT (source), "location", argv[1], NULL );
> 
> bus = gst_pipeline_get_bus ( GST_PIPELINE ( pipeline ) );
> gst_bus_add_watch ( bus, bus_call, loop );
> gst_object_unref ( bus );
> 
> gst_bin_add_many ( GST_BIN ( pipeline), source, parser,
>conv, sink, NULL );
> 
> //gst_element_link ( source, parser );
> gst_element_link_many ( source, parser, conv, sink, NULL );
> g_signal_connect ( parser, "pad-added", G_CALLBACK ( new_pad ), 
> NULL );

This is the problem:
gst_element_link ( source, parser );
gst_element_link ( conv, sink );
g_signal_connect ( parser, "pad-added", G_CALLBACK ( new_pad ),  conv );

in new_pad() callback link the new pad you receive to the sink-pad of conv.

Stefan

> 
> g_print ( "Setting to Playing\n" );
> gst_element_set_state ( pipeline, GST_STATE_PLAYING );
> g_print ( "Running\n" );
> g_main_loop_run ( loop );
> 
> g_print ( "Returned, stopping playback\n" );
> gst_element_set_state ( pipeline, GST_STATE_NULL );
> g_print ( "Deleting pipeline\n" );
> 
> gst_object_unref ( GST_OBJECT ( pipeline ) );
> 
> return 0;
> }
> --
> 
> 
> When i tried to run the fallowing code, i'm getting fallowing errors
> --
> ./a.out ~/songs/4voice.wav
> Setting to Playing
> Running
> Dynamic pad created, linking parser/decoder
> 
> (a.out:20136): GStreamer-CRITICAL **: gst_element_get_static_pad: 
> assertion `GST_IS_ELEMENT (element)' failed
> 
> (a.out:20136): GStreamer-CRITICAL **: gst_pad_link_prepare: assertion 
> `GST_IS_PAD (sinkpad)' failed
> 
> (a.out:20136): GStreamer-CRITICAL **: gst_object_unref: assertion 
> `object != NULL' failed
> Error: Internal data flow error.
> Returned, stopping playback
> Deleting pipeline
> --
> 
> Somebody already posted the similar problem in the mailing list ( 
> http://lists.maemo.org/pipermail/maemo-developers/2006-August/023007.html 
> ), but solution is not mentioned over there.
> 
> It would be of great help if somebody look into this.
> 
> Thanks,
> Ganesh
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Flipping camera image, getting mirrored video

2008-08-17 Thread Stefan Kost
Merrick Fonnesbeck schrieb:
> -k- I ran that on both of the devices I have and its says "No such
> Element or plugin".  How do I get it and how do I use it once I have it?

Its in gst-plugins-good. Check if you have gst-plugin-good-extra installed or 
build gst-plugins-good in scratchbox yourself. Just copy the plugin to the 
device into /usr/lib/gstreamer0.10/

Stefan

> 
> MFonnesbeck  
> 
> -Original Message-
> From: Kees Jongenburger [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, August 14, 2008 1:30 AM
> To: Merrick Fonnesbeck
> Cc: maemo-developers@maemo.org
> Subject: Re: Flipping camera image, getting mirrored video
> 
> On Wed, Aug 13, 2008 at 5:43 PM, Merrick Fonnesbeck
> <[EMAIL PROTECTED]> wrote:
>> What I would like to do is display a flipped or mirrored version of 
>> the outgoing video so that the person can orient themselves 
>> appropriately to the camera for the conference.  Anybody know how to 
>> do this in GSteamer?  Please let me know your ideas.  I have heard of 
>> a Flip plug-in of the Good GST plug-ins, but I can't find any
> information on how to use it or program it.
> 
> try running gst-inspect videoflip
> 
> videoflip method=horizontal-flip
> 
> greetings
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: video processing on N810 using gstreamer

2008-08-17 Thread Stefan Kost
Bruno schrieb:
> Hello everybody, and pleased to join this mailing list.
> 
> I'm actually trying to develop a video processing application for the 
> nokia (face detection & expression recognition).
> 
> I got that stuff working on a PC with a webcam. (probably not yet 
> optimised enough for the nokia, but that's the next part !)
> I configured maemo environment (using diablo) and finally got the 
> example_camera.c from maemo_example working.
> So I used the structure of this one for my application. But I'm not sure 
> yet how the pipeline thing works, I wasn't able to get any result :(
> 
> Here is my pipeline :

Unfortunately it lacks some parts.
* what is VIDEO_SINK
* what are you doing with the "video/x-raw-rgb" caps.
   * if you want it converted use ffmpegcolorspace
* tell us what happens when you run it
* add printf before return FALSE; to see where it breaks
* also check in #gstreamer on irc.freenode.org

Stefan

> 
> 
> 
> static gboolean initialize_pipeline(AppData *appdata,
> int *argc, char ***argv)
> {
> GstElement *pipeline, *camera_src, *screen_sink;
> GstElement *screen_queue;
> GstElement *csp_filter, *tee;
> GstCaps *caps;
> GstBus *bus;
> 
> 
> /* Initialize Gstreamer */
> gst_init(argc, argv);
>
> /* Create pipeline and attach a callback to it's
>  * message bus */
> pipeline = gst_pipeline_new("test-camera");
> 
> bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
> gst_bus_add_watch(bus, (GstBusFunc)bus_callback, appdata);
> gst_object_unref(GST_OBJECT(bus));
>
> /* Save pipeline to the AppData structure */
> appdata->pipeline = pipeline;
>
> /* Create elements */
> /* Camera video stream comes from a Video4Linux driver */
> camera_src = gst_element_factory_make(VIDEO_SRC, "camera_src");
> /* Colorspace filter is needed to make sure that sinks understands
>  * the stream coming from the camera */
> csp_filter = gst_element_factory_make("ffmpegcolorspace", "csp_filter");
> /* Tee that copies the stream to multiple outputs */
> tee = gst_element_factory_make("tee", "tee");
> /* Queue creates new thread for the stream */
> screen_queue = gst_element_factory_make("queue", "screen_queue");
> /* Sink that shows the image on screen. Xephyr doesn't support XVideo
>  * extension, so it needs to use ximagesink, but the device uses
>  * xvimagesink */
> screen_sink = gst_element_factory_make(VIDEO_SINK, "screen_sink");
> 
> 
> /* Check that elements are correctly initialized */
> if(!(pipeline && camera_src && screen_sink && csp_filter && 
> screen_queue))
> {
> g_critical("Couldn't create pipeline elements");
> return FALSE;
> }
>
> /* Add elements to the pipeline. This has to be done prior to
>  * linking them */
> gst_bin_add_many(GST_BIN(pipeline), camera_src, csp_filter,
> tee, screen_queue, screen_sink, NULL);
>
> /* Specify what kind of video is wanted from the camera */
> caps = gst_caps_new_simple("video/x-raw-rgb",
> "width", G_TYPE_INT, 640,
> "height", G_TYPE_INT, 480,
> "framerate", GST_TYPE_FRACTION, 25, 1,
> NULL);
>
> 
> /* Link the camera source and colorspace filter using capabilities
>  * specified */
> if(!gst_element_link_filtered(camera_src, csp_filter, caps))
> {
> return FALSE;
> }
> gst_caps_unref(caps);
>
> /* Connect Colorspace Filter -> Tee -> Screen Queue -> Screen Sink
>  * This finalizes the initialization of the screen-part of the 
> pipeline */
> if(!gst_element_link_many(csp_filter, tee, screen_queue, 
> screen_sink, NULL))
> {
> return FALSE;
> }
> 
> /* gdkpixbuf requires 8 bits per sample which is 24 bits per
>  * pixel */
> caps = gst_caps_new_simple("video/x-raw-rgb",
> "width", G_TYPE_INT, 640,
> "height", G_TYPE_INT, 480,
> "bpp", G_TYPE_INT, 24,
> "depth", G_TYPE_INT, 24,
> NULL);
>
> 
> 
> // PROCESSING PART //
> 
> 
> 
> int x, y, expression;
> double t;
> 
> 
> // facedetected contain the face detected by viola and jones 
> detector, original size
> IplImage *facedetected   = NULL;
> // faceresized contain the detected face scaled to 108*147
> IplImage *faceresized = cvCreateImage(cvSize(108,147),IPL_DEPTH_8U , 1);
> // faceresized2 contain the face in faceresized with 2 pixels black 
> borders around
> IplImage *faceresized2 = cvCreateImage(cvSize(112,151),IPL_DEPTH_8U 
> , 1);
> 
> 
> 
> 
> // Plane that will hold current frame data
> FLY_U8PlaneType*pcurrYPlane;
> pcurrYPlane=(FLY_U8PlaneType *) malloc (sizeof(FLY_U8PlaneType));
> 
> // allocating space for image
> pcurrYPlane->Width  = 640;
> pcurrYPlane->Height = 480;
> pcurrYPlane->Stride = 640;
> pcurrYPlane->Buffer

Re: portaudio (again)

2008-08-17 Thread Stefan Kost
Hi,

Chris Dobbs schrieb:
> Hi all,
> I am trying to get portaudio working on the N800. I can compile and 
> build everything ok but when I try to run the pa test programs on the 
> N800 I get things this:
>  
>  
> Nokia-N800-44-4:~# ./pa_devs-v19
> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 405
> Expression 'ioctl( devHandle, SNDCTL_DSP_CHANNELS, &temp )' failed in 
> 'src/hostapi/oss/pa_unix_oss.c', line: 405
> PortAudio version number = 1899
> PortAudio version text = 'PortAudio V19-devel (built Aug 11 2008)'
> Number of devices = 0
> --
>  
> I realised early on that PA used /dev/dsp so I did "ln -s 
> /dev/dsptask/pcm1 /dev/dsp"

Don't do that. There is no OSS. There is alsa in the form of an alsa io plugin 
that talks to the DSP.

> I have tried various others but to no avail, can anyone help I know PA 
> supports OSS and ALSA which are both installed on the N800, although I 
> think esd is the default driver.

Esd is there for compatibillity reasons. Default linux audio (low level) api is 
alsa. For highlevel apis there is esound and gstreamer.

Stefan

>  
> -Chris
>  
>  
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: border in osso-xterm in fullscreen?

2008-08-17 Thread Stefan Kost
Hi,

Frantisek Dufka schrieb:
> Giacomo Tufano wrote:
>> http://en.wikipedia.org/wiki/Em_(typography) have, probably, the  
>> informations you're looking for. The answer to the Frantisek problem  
>> is, IMHO, that (citing the page) "In digital type, the relationship of  
>> the height of particular letters to the em is arbitrarily set by the  
>> typeface designer. However, as a very rough guideline, an "average"  
>> font might have a cap height of 70% of the em, and an x-height of 48%  
>> of the em". These differences could account for the numbers Frantisek  
>> found...
> 
> Thanks. So one basically cannot guess how many lines will fit from the 
> point size alone, it depends on specific font and its designer. Quite 
> confusing but nevermind :-)
> 
> As for the first mystery - I found the solution.
> 
> vte-0.12.2/src/vte-private.h
> #define VTE_PAD_WIDTH 1
> 
> When changing to 0 and rebuilding libvte4 it fits. Sadly same constant 
> is used for padding width and height which is pretty unfortunate. Left 
> border padding would be nice, without border there is no space and 
> letters touch black LCD border and look a bit strange. Top and bottom 
> border doesn't look so bad. I think splitting VTE_PAD_WIDTH into 
> VTE_PAD_X and VTE_PAD_Y would be useful. And making it variable would be 
> event better. Both for user customization and for computing it at 
> runtime for proper centering when font size doesn't fit exactly.

Sounds good. Have you filed an enhancement request at bugzilla.gnome.org? 
Should 
be easy to fix.

Stefan

> 
> Frantisek
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Can you play mp3 files in mplayer command line as wget ftp.... / pipe mplayer ?

2008-08-16 Thread Stefan Kost
Darius Jack schrieb:
> Please test the following example it doesn't work for me.
> mp3 is always saved.
> Mayby memory problem./

gst-launch playbin uri=ftp://micorsops.com/something.avi

That should use gnomevfssrc and its ftp handler.

Stefan

> 
> Darius
> __
> "
> MPlayer can read from stdin (not named pipes). This can for example be used 
> to play from FTP:
> 
> wget ftp://micorsops.com/something.avi -O - | mplayer -
> 
> Note
> 
> It is also recommended to enable -cache when playing from the network:
> 
> wget ftp://micorsops.com/something.avi -O - | mplayer -cache 8192 -
> "
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How do you receive video in maemo application?

2008-08-16 Thread Stefan Kost
hi,

can you ask this on gstreamer-devel. Its no maemo specific. One comment below 
still.

Stefan

Merrick Fonnesbeck schrieb:
> I have built a GTK application that sends video to another device to 
> play around with and get familiar with Gstreamer.  I am now trying to 
> get a similar GTK application built for the client/receiving side to 
> accept and receive the incoming video and play it in a window.  I got 
> the following GStreamer command line application to run, but I'm having 
> trouble putting the pipeline elements together to get it to work in my 
> windowed application.
> 
> gst-launch udpsrc port=5434 
> caps=application/x-rtp,clock-rate=9 ! rtph263depay ! hantro4100dec ! 
> Xvimagesink
> 
> The problem seems to exist in the caps and setting the clock-rate 
> value.  When I compile it and run it on my N810 it complains with the 
> following error:
> 
>GLIB ERROR ** default - GST error: gstbasertpdepayload.c(265) : 
> gst_base_rtp_depayload_chain () :  no clock rate was specified, likely 
> incomplete input caps.
> 
> Any ideas or help would be appreciated.  Appended is my function that 
> creates the pipeline and sets up the elements.  Thanks.
> 
> MFonnesbeck
> 
> /*--  Code ---*/
> pipeline = gst_pipeline_new("test-camera");
>
> input_udp = gst_element_factory_make("udpsrc", "input_udp");
> g_object_set (G_OBJECT (input_udp), "port", 5434, NULL);
> csp_filter = gst_element_factory_make("ffmpegcolorspace", "csp_filter");
> input_rtp = gst_element_factory_make("rtph263depay", "input_rtp");
> input_decoder = gst_element_factory_make("hantro4100dec", "input_decoder");
> input_screen_queue = gst_element_factory_make("queue", 
> "input_screen_queue");
> input_screen_sink = gst_element_factory_make("xvimagesink", 
> "input_screen_sink");
> 
> if(!(pipeline && input_udp && csp_filter && input_rtp && input_decoder 
> && input_screen_queue && input_screen_sink))
> {
> g_critical("Couldn't create pipeline elements");
> return FALSE;
> }
> 
> gst_bin_add_many(GST_BIN(pipeline), input_udp, input_rtp, input_decoder, 
> input_screen_queue, csp_filter, input_screen_sink, NULL);
> 
> caps = gst_caps_new_simple("application/x-rtp", "clock-rate", 
> G_TYPE_INT, 9, NULL);
> 
> if(!gst_element_link_filtered(csp_filter, input_screen_sink, caps))
> {
> return FALSE;
> }
> gst_caps_unref(caps);

why are you using a caps filter? The element has a caps property. Can you try 
this and link normal?

g_object_set(input_udp,"caps",caps,NULL);

> 
> if(!gst_element_link_many(input_udp, input_rtp, input_decoder, 
> input_screen_queue, csp_filter, input_screen_sink, NULL))
> 
> {
> return FALSE;
> }  
> 
> gst_element_set_state(pipeline, GST_STATE_PLAYING);
> /*--  Code ---*/
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Signal processing on N800

2008-05-17 Thread Stefan Kost
Hi,
Sarah Newman schrieb:
> Do you think that is significantly more efficient than kiss fft?  We 
> have been considering using FFTs optimized for arm but platform 
> independence is always nice.
 >
GStreamer has a copy of kiss-fft included. Would be nice to know how it 
compares 
  to the CMU one.

Stefan

> 
> David Huggins-Daines wrote:
>> On Wed, 2008-04-23 at 14:15 -0500, nisha jain wrote:
>>
>>> to port it to N800 later on...Please let me know if some one has
>>> developed such 
>>> application and used fft calculation for discrete signals... 
>> If you are dealing with real-valued data (e.g. audio), you can use the
>> fixed-point FFT routine in CMU Sphinx if you like.  It's not
>> specifically optimized for the ARM but it's pretty fast.  Browse the
>> code at:
>>
>> http://cmusphinx.svn.sourceforge.net/viewvc/cmusphinx/trunk/sphinxbase/src/libsphinxbase/fe/fe_sigproc.c?view=markup
>>
>> The functions you need are fe_create_twiddle() and fe_fft_real().  They
>> come in 16 and 32-bit versions, based on the FIXED16 preprocessor
>> symbol.  The 32-bit version is a bit confusing since it uses 20.12
>> fixed-point format, so I'd recommend the 16-bit one (which is faster
>> anyway).
>>
>> You'll have to do a bit of work to separate it from the rest of the
>> front end processing, but that shouldn't be hard.
>>
>> Better would be to use TI's dsplib on the DSP core, but I still haven't
>> gotten around to figuring that out.
>>
>> ___
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://lists.maemo.org/mailman/listinfo/maemo-developers
>>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Recording audio in python

2008-05-11 Thread Stefan Kost
Mark Chang schrieb:
> Sorry for the ignorance -- I just got this thing :).
> 
> We are trying to do recording from the microphone input and playback
> using Python. The archives tell me that I can do playback through
> osso-media-server or through gstreamer, and that the osso thing is the
> native playback mechanism. I saw some demo playback code in Kagu here:
> 
> http://kagumedia.com/projects/kagu/browser/trunk/src/kagu/ossoplayer.py
> 
> and some gstreamer code there as well. The archives also tell me that
> I should record using gstreamer.
> 
> Questions:
>  1) is there a canonical tutorial/example for using osso-media-server,
> or shall I learn from Kagu?
>  2) is there the same for audio recording using gstreamer?
> 
> I am new to the gstreamer thing, so be gentle ;)
> 

Use gstreamer for both. Osso-media-server is not public api. Just look at 
general python gstreamer ressources and then use dsppcmsrc/sink instead of 
alsasrc/sink. Be also aware that the src is made for voip add and only support 
8khz (yes, thats a pity).

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Icecast2, ogg theora and os2008

2008-03-20 Thread Stefan Kost

Asmo Koskinen schrieb:
> Is there any player for N800/OS2008 that can handle ogg theora stream 
> from ezstream/icecast2?
> 
> I can hear but not see...
> 
> http://www.arkki.info/howto/VDR/N800_Icecast2.png
> http://www.arkki.info/howto/VDR/N800_MPlayer.png
> 
> Best Regards Asmo Koskinen.


Do you know a public stream for testing?

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: gstreamer question

2008-03-20 Thread Stefan Kost
Kwan Hong Lee schrieb:
> Hi,
> 
> So I guess Adder is part of the solution.  Another question is how to go 
> about adding multiple mono streams and output a stereo stream with 
> variable contribution to left and right gain.  I see that audioop 
> provides some functions like that, but I can see to find out what 
> gstreamer element can do mono to stereo or stereo to mono and change 
> gain values for left and right channel.  Any pointers?

come on, audiopanorama is not that hard to find.

> 
> Finally, on the maemo platform, gstreamer supports ilbc.  Is there any 
> way I can mix ilbc streams? 
I don't think you can do. You can mix raw streams. Just mix before you encode.

Stefan

> It deosn't seems like adder supports this.  
> Any insights on how to go about this?
> 
> Thank you!
> 
> -kwan
> 
> On Sat, Feb 23, 2008 at 4:03 PM, Stefan Kost <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
> Kwan Hong Lee schrieb:
>  > Hi,
>  >
>  > I am trying to combine multiple streams of audio both from a file and
>  > from the network and mix them and output them into single stream.
>  > I see that there's tee and n-to-1 but not sure how to utilize
> them.  Any
>  > examples that has details on how to handover buffers of data between
>  > these components?
> There is no ready written code. Adder (mixing) is easy to use. Just
> link your
> n-soures to it. Regarding the data-flow - the components do that by
> them self.
> Please read gstreamer documentation and study the examples in the
> source tar-balls.
> 
> Stefan
>  >
>  > Does anybody have any insights or guidance in how to manage this?
>  Also
>  > has anybody tried doing ilbc decoding and getting a raw audio packets
>  > out of it?
>  >
>  > Thank you!
>  >
>  > -kwan
>  >
>  > --
>  > http://www.media.mit.edu/~kwan/info.html
> <http://www.media.mit.edu/%7Ekwan/info.html>
>  >
>  >
>  >
> 
>  >
>  > ___
>  > maemo-developers mailing list
>  > maemo-developers@maemo.org <mailto:maemo-developers@maemo.org>
>  > https://lists.maemo.org/mailman/listinfo/maemo-developers
> 
> 
> 
> 
> -- 
> http://www.media.mit.edu/~kwan/info.html

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OS2008 and gstreamer

2008-02-23 Thread Stefan Kost
hi

Fadi Almasalha schrieb:
> Hi ,
> 
> I am trying to download these libs on n800 tablet , I have openSSH and
> root access
> 
>   o gst-plugins-farsight
>   o gstreamer-tools
>   o gstreamer0.10-3gp-osso
>   o gstreamer0.10-adpcm-osso
>   o gstreamer0.10-ffmpeg-osso
>   o gstreamer0.10-gnomevfs
>   o gstreamer0.10-hantro
>   o gstreamer0.10-id3lib-osso
>   o gstreamer0.10-mpeg1demux-osso
>   o gstreamer0.10-mpegstream-osso
>   o gstreamer0.10-plugins-base
>   o gstreamer0.10-plugins-base-extra
>   o gstreamer0.10-plugins-good
>   o gstreamer0.10-plugins-good-dbg
>   o gstreamer0.10-plugins-good-extra
>   o gstreamer0.10-plugins-good-extra-dbg
>   o gstreamer0.10-tools
>   o gstreamer0.10-wma

Most of them are already installed. For the e.g. -tool or -extra, just get them
on scratchbox and copy them over.

Stefan

> 
> I have no idea how to download them , I have tried the manager but there
> are not exist there
> 
>  
> 
>  
> 
> So please any help how to get them on n800 device , and what should I do
> if I want to change some code on them and download it to n800 again
> 
>  
> 
>  
> 
>  
> 
> Yours
> 
>  
> 
> Fadi
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: gstreamer question

2008-02-23 Thread Stefan Kost
Kwan Hong Lee schrieb:
> Hi,
> 
> I am trying to combine multiple streams of audio both from a file and
> from the network and mix them and output them into single stream.
> I see that there's tee and n-to-1 but not sure how to utilize them.  Any
> examples that has details on how to handover buffers of data between
> these components?
There is no ready written code. Adder (mixing) is easy to use. Just link your
n-soures to it. Regarding the data-flow - the components do that by them self.
Please read gstreamer documentation and study the examples in the source 
tar-balls.

Stefan
>
> Does anybody have any insights or guidance in how to manage this?  Also
> has anybody tried doing ilbc decoding and getting a raw audio packets
> out of it?
> 
> Thank you!
> 
> -kwan
> 
> -- 
> http://www.media.mit.edu/~kwan/info.html
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: ogg-support breaks gtalk audio?

2008-02-04 Thread Stefan Kost
Hi Tuomas,

Tuomas Kulve schrieb:
> Armin M. Warda wrote:
>> are you aware of these reports?
>>
>> http://www.internettablettalk.com/forums/showthread.php?goto=newpost&t=15366
>>
>> http://www.internettablettalk.com/forums/showthread.php?t=15347
> 
> No :(
> 
> Does anybody have ideas what might cause this?

Sorry for late reply. Could it maybe missing/broken dayloaders/depayloaders for
speex (rtp plugin in gstreamer). I belive there have been some fixes in
gstreamer cvs. I would still mean that the voip app or the peer voip app are
somewhat broken as they don't renegotiate.

Stefan

> 
> The ogg-support adds libraries, couple of gst plugins, couple of desktop
> files and some mimetypes. The only things it changes is the extractor
> list for metalayer crawler and that shouldn't affect the google talk in
> any way.
> 
> I don't know how google talk negotiate the call but maybe the extra
> codecs somehow change that? Somebody could take tcpdumps (available from
> SDK repo) from a call with and without the ogg support and see if there
> are any changes. Or are the calls encrypted?
> 
> Does the google talk break for all ogg support users?
> 
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Ogg Streams / Media player

2008-01-18 Thread Stefan Kost
Hi,

Timo Hoenig schrieb:
> Hi!
> 
> I was playing around with Tuomas' packages [1] and the stock media
> player.  Unfortunately it failed playback Ogg streams like [2].
> 
> The media player seams to load the stream but it doesn't play it.  It's
> just buffering.  While it sits there and does nothing than buffering I
> captured the network traffic.  Indeed it does receive the stream.
> 
> To my surprise, the following works nicely:
> 
> $ gst-launch-0.10 gnomevfssrc 
> location=http://listen.fm4.amd.co.at:31337/fm4-lq.ogg ! application/ogg ! 
> tremor ! dsppcmsink

why do you enforce application/ogg and skip the demuxer? does zthis play?

$ gst-launch-0.10 gnomevfssrc
location=http://listen.fm4.amd.co.at:31337/fm4-lq.ogg ! oggdemux ! tremor !
dsppcmsink

Stefan

> 
> or,
> 
> $ gst-launch-0.10 playbin uri=http://listen.fm4.amd.co.at:31337/fm4-lq.ogg
> 
> Thus, I'm asking:  Is there a way to convince the media player to not
> only buffer but also to playback the stream? :-)
> 
> Thanks,
> 
>Timo
> 
> [1] http://ogg.garage.maemo.org/
> [2] http://fm4.amd.co.at/m3us/listen-low.m3u
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: OGG support

2007-12-20 Thread Stefan Kost
Pavel Rojtberg schrieb:
> Hi,
> 
> I'm using the gstreamer ogg plugins from ogg-support for my music
> player. while writing
> it I've run into the following problems:
> 
> 1.) I'm using the playbin element for playback. For switching songs I
> simply change the "uri" property. This works fine with mp3 files, but
> messes up the pipeline when I try to put an ogg in it.
> 
> theres a example for this attached.
> 
> 2.) even when I manage to get the ogg pipline for playback I dont get
> the messages for tags.


> print "\nogg:"
> player.set_state(gst.STATE_NULL) # reset player FIXME: doesnt work
this is wrong, it destroys the object. use STATE_READY

> # I have to recreate player here to make it work:
> # player = gst.element_factory_make("playbin")
> player.set_property("uri", "file://%s/test.ogg" % base)
> player.set_state(gst.STATE_PLAYING)
> return False



Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: midi support os2008?

2007-12-12 Thread Stefan Kost
Hi,

Yury Petrov schrieb:
> Is there any way to play midi files in os2008? Does GStreamer support midi 
> playback? Was timidity ported? I'd love to port some ear-training and karaoke 
> apps on os2008!


GStreamer has midi-playback support. In gst-plugins-bad is a plugin which has
timidity and wildmidi based elements. Both libraries use the same sounds, but
the later sound a bit nicer. Unfortunately both libraries are kind of 
unmaintained.
You could try to make a package similar to Tuomas Kulves ogg-support and package
timidity/wildmidi + a patch + the gstreamer plugin + desktop file + sharedmime
support.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: make mp3mixer works on bora

2007-12-09 Thread Stefan Kost
Hi,

Георгий Войт schrieb:
> Can somebody help me with running attached program? This is simple
> textmode mp3 mixer, it makes few mpg123 streams and mixing it with
> advanced options such as pitch control etc. I 've compile it, but it
> staticaly use /dev/dsp with SNDCTL_DSP_* ioctls. I've trying to change
> /dev/dsp on some other - /dev/dsptask/pcm3 and many others, but this
> prog say that there is  "unknown error 515"  when it  try  to  query 
> first  dsp  ioctl.  I've  trying install some alsa-plugins/esd (esddsp)
> / sdl and other stuff , but no result... could you explain, how can i
> run it?   mpg123 works fine standalone /i take prebuilded mpg123 version
> from XFCE-port on nokia and i've build it myself too /
> 
It looks like it is using oss for playback, which does not work. You can use
alsa, esd or gstreamer.


> 
> I have nokia N800 with latest (last) OS2007 firmware.
> 
> mp3mixer homepage: http://szyzyg.arm.ac.uk/~spm/mp3mixer.html
> 
> 

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Video decode capability of N810

2007-12-09 Thread Stefan Kost
Hi,

g c schrieb:
> Can someone tell me what frame rate and screen resolutions the N810 can
> decode? Specifically, can it handle MPEG4 at 30fps at VGA resolution?

30 fps is too much. Around 20 is doable with the included gstreamer decoder. Be
aware that it does not support MPEG4 ASP (aka lots of DivX).

>  
> Can you also point me to the API I would use for decoding video? I would
> normally use ffmpeg or XviD but I assume the N810 uses some form of
> accelerator that isn't supported by standard opensource decoder.
>

Since OS2008 you can use the gstreamers decodebin2 and playbin elements which
makes it really easy.

Stefan

>  
> Regards
>  
> Graham
> 
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: How to add ogg to the supported codecs/containers list?

2007-12-09 Thread Stefan Kost
Hi,

Tuomas Kulve schrieb:
> Tuomas Kulve wrote:
> 
>> Another question: When does it show the meta data (artist etc.) for ogg?
>> It seems to show them sometimes, sometimes not. I haven't yet figured
>> out the pattern.
> 
> Or is the meta data actually totally up to the metalayer crawler? MP
> shows them if the music is played from the Library and the metalayer
> crawler has added the meta data to the Library? And if the file was
> opened from the File Manager, then the MP doesn't show any meta data
> (unless the file is also in the Library)?
> 
The media player quite likely only shows metadata for files that are in the
database already. The filemanager has its own metadata handling, which does not
handle ogg at all.

Slightly off-topic, but related to ogg-support package:
* Instead of adding the ogg-types to the media-player desktop-file, what about
making a copy of the media-player.desktop file (as mediaplayer.ogg.desktop) and
replacing the files there. This makes it independend from eventual updates that
would overwrite the mediaplayer.desktop file.
* Can you also package flac?

Keep up the good work!

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: gftp port to maemo: some questions

2007-12-09 Thread Stefan Kost
Hi,

Nicolas schrieb:
> New screenshot with smaller fonts, much more usable:
> 
> http://www.screenshots.cc/view_image/847fe1309/shot-2007-11-28-13-46-15.png
> 
Looks great already. Some thoughts:
* can make those [V] button in the title-bar smaller (changing the icon,
removinf padding).
* can you remove the GtkHandleBox from the toolbar (noone will drag the toolbar
somewhere)
* the two file-areas seem to have a frame with extra padding

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Audio in on N800 and N810

2007-10-23 Thread Stefan Kost
Hi,

Klaus Rotter schrieb:
> Hello,
> 
> for a application I port I need a audio in source on the N800 and the
> N810 IT.
> 
> The N800 has a 3,5 mm jack with stereo out and audio in (microphone
> level). Does the N810 also has this jack?
> 
> How can I use this jack? I have some problems to get anything other work
> than the supplied headset. I use transformers to separate the N800 from
> my HF equipment (a Ft817 amateur radio transceiver) and some resistors
> to reduce the audio level so I can directly input line level. But it
> won't work. Is there any resistor magic that will enable the audio in?
> 
> Sampling rates: Is it true, that the N800 just supports 8 KHz sampling
> rate with the microphone in? If yes, is it the same with the N810?
> The N810 would be nice because of its build in keyboard. The PSK31
> software isn't really that usable with a on screen keyboard.

Besides 8 KHz also 16KHz should work for recording.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: GStreamer PCM sink stuttering/dropouts...

2007-10-20 Thread Stefan Kost
Hi,

Nils Faerber schrieb:
> Hi!
> I am playing around with some GStreamer hacking and try to output a
> simply WAV file. In general this works even on commandline:
> 
> gst-launch-0.10 filesrc location=./wsh.wav \! wavparse \! dsppcmsink
>
any wav? or is it specific format? whats the samplingrate?

> 
> (run as root via ssh commandline)
> 
> But strangely this behaves differently than the shipped media player. If
> running the above commandline almost *any* UI action causes dropouts in
> playback - you tap on a menu button, playback stops for some ms, menu
> pops-up and playback continues. This does not happen with the media player.
> 
> I also tried various options of the filesrc and dsppcmsink but with not
> better result.
> 
> Is there an additional Gst plugin which I can use for some
> pre-buffering? Or can I somehow else increase the priotity? Or what does
> media player do what I obviously miss here?
>
It should work fine as you run it.

Stefan

> 
> Any hint would really be welcome...
> Thanks!
> 
> Cheers
>   nils faerber
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Does dspmp3sink not exist on the SDK

2007-10-20 Thread Stefan Kost
hi,

George Nachman schrieb:
> Hi Maemo Developers,
> 
> I'm writing an app that needs to play MP3s. This function call is
> returning NULL when I run it on my PC in my development environment (in
> contradistinction to running it on an actual device):
> 
>  gst_element_factory_make ("dspmp3sink", "sink");
>
Yes dspmp3sink only exist on the target. Its a dspplugin which cannot run on x86
or even in satchbox (unless you volunteer to write a dsp emulator),

You can use mad ! {alsa,oss,esd}sink on the x86 platform

Stefan

> 
> I suspect that I may not have the GStreamer elements installed on my
> system. For example, look what I get when I run this command:
> 
>> gst-launch-0.10 filesrc location=test.mp3 '!' dspmp3sink
> WARNING: erroneous pipeline: no element "dspmp3sink"
> 
> Is there something I need to install? Or is it a lost cause because only
> the actual device has MP3s, so I'll need to do all my testing on it?
> Hoping not!
> 
> Thanks,
> George
> 
> 
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Camera boot errors

2007-09-02 Thread Stefan Kost
Hi,

Mark Gallop wrote:
> Hi All,
> 
> Has anyone seen the following error on booting a n800?
> 
> tcm825xsensor_init(): Failed to detect TCM825x sensor chip
> omap24xxcam: cannot initialize sensor
> 
> The camera doesn't work with provided software and also no /dev/radio0 
> is created. What device node should I expect to find for the camera?

The camera should appear under /dev/video0. /dev/radio0 is comming froma
diferent chip. SO if also that is missing, I suspect some hardware failure, time
for warranty :(
> 
> I am using the latest firmware. Could anyone hazard a guess as to 
> whether this is a severe hardware issue, or maybe some suggestion for 
> things I could try?
> 
> Many thanks for any responses.
> 
> Mark

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Python and GStreamer

2007-09-02 Thread Stefan Kost
Hi,
Jesse Guardiani wrote:
> Tony Maro wrote:
>> On 8/27/07, *Leonardo Sobral Cunha* <[EMAIL PROTECTED]
>> > wrote:
>>
>> hi tony,
>>
>> there is a bug in your code, you dont need to call createGSTPlayer in
>> the start method, so you will reuse the pipeline that is already
>> created in the constructor (__init__).
>>
>>
>> Interesting - every implementation I've looked at appears to recreate
>> the pipeline for every song instead of reusing the old one.  I'll give
>> that a shot and see what happens.  Let me qualify that statement: The
>> two similar implementations I've looked at both seemed to do that.
>>
>> I guess what's most frustrating is it happens randomly, one out of every
>> 20 to 50 executions of the program.  It's not every time.  Kind of makes
>> it hard to track down specifics.
> 
> 
> gstreamer is poo. plain and simple. Yes, you need to recreate the
> pipeline. If you don't, bad things happen, like hanging and such after
> EOS. And no, EOS detection still doesn't work well in that class despite
> my many tries. We abandoned gstreamer support in Kagu for a reason. It's
> poo. It's much easier to just use OSSO Media Server via dbus and let
> *it* deal with gstreamer for us.
That is not wise. Its not a public API. It will change and maybe disappear. 2nd
I wouldn't conclude in the quality of gstreamer from how it behaves on the
device. Non working EOS detections could also be a bug in the dsp sinks, which
are not under quality control of the open-source project.

> 
> Just the opinion of a developer who hung out on the #gstreamer IRC
> channel while writing gstplayer.py and saw every suggestion by the folks
> on that channel go up in smoke under one condition or another until the
> API was so riddled with inconsistencies that it was a smoking pile of
> garbage.
> 
> And no, before you ask, I don't think it's not Nokia's fault. gstreamer
> is just unexpectedly buggy. Too bad ALSA doesn't support inline mp3
> decoders... life would be easier for all of us...
> 
Now you've lost me. I don't think GStreamer is that buggy. Unfortunately the
GSTreamer in the current SDK is not exactly new. Second you want a mp3 decoder
for ALSA? Imho that is not a good idea either.

My recommandation. Nail down bugs to reproducable testcases and file bugs. Is a
good idea to post bug-number here as a reminder.

Stefan


___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: file manager: file and application associations

2007-08-25 Thread Stefan Kost
Hi,

is the ebook, html detectable. Then it might make snse to use some different
mimetype for it (text/html+ebook). You would need a matching rule for the
shared-mime database.

Stefan

Danny Milosavljevic wrote:
> Hi,
> 
> Since the issue came up with FBReader again 
> ,
>  I thought I'd repost an earlier request for clarification:
> 
> FBReader supports, among other things, HTML files. There are many books in 
> HTML form. However, there are also websites in HTML form, etc.
> 
> Now FBReader would like to associate with the text/html file type, but if it 
> does that, a user who wants to open websites will have problems.
> 
> If, on the other hand, FBReader doesn't associate with the text/html file 
> type, a user who wants to open books will have problems.
> 
> Hence, it would be best if the file manager / gnome vfs supported associating 
> "open this file with FBReader, but open that file with The Web Browser".
> 
> Every file type that is standardized (XML, ...) will have similar issues, so 
> there really is no way this can be left out and still be usable.
> 
> Please have a look at 
>  and reply here 
> what you think.
> 
> If possible, I'd like to hear the opinion of the maintainer of the file 
> manager especially.
> 
> I'd implement this myself (I did, partly, for maemo's "gnome-vfs"; but that 
> doesn't help much), but alas, the file manager's source is not available.
> 
> cheers,
>Danny
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Some weird questions about speech2text, text2speech, GPS ...

2007-07-16 Thread Stefan Kost
Hi David,


> 
> Stuff I would appreciate some help with includes:
> 
>  * GStreamer.

feel free to send gstreamer related stuff to
[EMAIL PROTECTED] or come to gstreamer irc channel or just
write back to me.

Stefan

>  * How to create a new input method.
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: g.729 in itos 4.2007.26-8

2007-07-09 Thread Stefan Kost
Krischan Keitsch wrote:
> Hi 
> 
> I just saw that the voice codec g.729 ships with the new firmware 
> 4.2007.26-8. 
> 
> Does anyone know if skype uses this codec?

http://www.google.com/search?q=Skype%20G.729&ie=UTF-8&oe=UTF-8
klick the first hit
http://forum.skype.com/lofiversion/index.php/t24317.html

Stefan
> 
> Regards Krischan
> 
> 
> Nokia-N800-26:/usr/lib# gst-inspect |grep dsp
> ...
> dspg729:  dspg729src: DSP G729 Src
> dspg729:  dspg729sink: DSP G.729 Sink
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers


Re: Using gstreamer to add flac audio to Media Player on Maemo 3.0/N800

2007-06-09 Thread Stefan Kost
hi mark,

its very unfortunate, but the media player has a hard-coded extension filter. If
you name the files .flac.mp3 it will play in media player. This will be
fixed in the future.

Stefan

Mark Cannon wrote:
> I am trying to add the audio type ."flac" to Media Player.
> I roughly followed the instructions for Maemo 2.2.
> 
> I am able to use
> 
> "gst-launch-0.10 filesrc location=song.flac !flacdec !audioconvert!dsppcmsink"
> 
> to play the songs, so I have both libraries (flac & gstreamer-1.0) set up 
> correctly. 
> 
> I have the icons set up and when I click the song twice, Media_Player 
> starts up and does nothing. It still cannot see files that end in .flac.
> 
> Looking at /etc/gconf/schemas/osso_media_server.schema, it appears 
> some sort of indirection is occurring using the file 
> osso-thumbnail-libid3.entries
> (the osso_media_server.schema entries refer to x-id3)
> 
> Anyways, I am not sure what I should be doing to get media_server to process 
> flac files (if it is possible.)
> 
> The schema I tried was osso_media_server_flac.schema,
> 
> gconfschemafile>
>
>   
>  
> /schemas/apps/osso/osso_media_server/audio/application_x-id3
>  
> /apps/osso/osso_media_server/audio/application_x-id3
>  osso_media_server
>  list
>  string
>  
> [application/application/x-id3,flacdec,audioconvert,dsppcmsink]
>   
>   
>
> 
> 
> with the osso-thumbnail-libid3.entries changed to 
> 
> 
>   
> 
>   
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
> 
>   [EMAIL PROTECTED]/command
>   /usr/bin/osso-thumb-libid3
> 
> 
>   
> 
> 
> 
> 
> I am not sure how you process the entries file, gconftool-2 does not
> like process them directly.
> 
> I tried a few other schema changes/ideas, but to no avail.
> 
> Has anyone successfully added flac or other media to media_player?
> 
> Thanks,
> Mark
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] More missing source

2007-05-07 Thread Stefan Kost
hi,

the sources are there:



Stefan


Quoting Paul Brook <[EMAIL PROTECTED]>:

> Where can I find the source for libgst0.10-dsp 0.63-1
> (http://repository.maemo.org/pool/bora/free/binary/libgst0.10-dsp_0.63-1_armel.deb)
>
> ?
> The corresponding source repository only has the 0.62-1 source.
>
> Also, this source package build-depends osso-dsp-headers-rx-34 (>=   
> 2006.40.1).
> Where can I find these?
>
> Paul
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
>


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: Timer function

2007-05-06 Thread Stefan Kost
hi,

I work on a whole music composer [1] built on gstreamer and there you can use
gst-controller to trigger notes or change sound-parameters. GStreamer cares
about the timing, you just schedule changes with a timestamp. Come to #gstreamer
irc on freenode.org if you have questions.

Stefan

[1] http://www.buzztard.org

Fred Lefévère-Laoide wrote:
> Hi,
> 
> I plan to write a software metronome and I wonder what would be the best
> way to get a timer precise enough for that purpose ?
> 
> The other problem is what's the best way to make a short sound
> (eventually corresponding to a note ...)
> 
> Thanks for your help.
> 
> Fred
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: Gstreamer and mpeg4 decoder elements

2007-05-06 Thread Stefan Kost
hi,

Justino Santos wrote:
> Hi,
> 
> I'm trying to develop an application able to receive mp4 streams from
> the network using gstreamer but I'm  lacking on pipeline elements. I've
> done some test and what i get is this:
> 
> PC
> 
> gst-launch-0.10 filesrc location=/home/jsantos/Desktop/Vídeo023.3gp ! 
> ffdemux_mov_mp4_m4a_3gp_3g2_mj2 name=d d. ! queue ! ffdec_h263 !
> ffenc_mpeg4 ! rtpmp4vpay ! udpsink host=10.11.5.115 port=9090 d.
> 
> (I know, I'm complicating but in the middle of so many tries this is
> what have in my console buffer :) )
> 
> Nokia 800
> 
> gst-launch-0.10 udpsrc port=9090 ! application/x-rtp,clock-rate=9 !
> rtpmp4vdepay ! hantro4100dec !  xvimagesink 
> Setting pipeline to PAUSED ...
> Pipeline is live and does not need PREROLL ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> ERROR: from element /pipeline0/hantro4100dec0: Could not decode stream.
> Additional debug info:
> gsthantro4100dec.c(1059): gst_hantro_4100_dec_chain ():
> /pipeline0/hantro4100dec0:
> unsupported bitstream
> Execution ended after 865976 ns.

"unsupported bitstream" means you mpeg4 stream is using Advanced Simple Profile
(ASP) where this is not entirely supported by the decoder. You can try:
  hantro4100dec tolerant-mode=true
If it still does not play, you need to re-configure the streaming source.

> 
> Shouldn't hantro4100 be able to handle mpeg4? Also tried with h263p and
> got the same problem. Wasn't able to use h263 since there is no
> depayloader...
> 
> Best regards,
> 
> Justino Santos
Ciao
  Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: gstreamer's playbin

2007-02-28 Thread Stefan Kost
Hi,

there is a reason playbin is not shipped by default. It does not work with the
dsp elements (e.g. dspmp3sink) except dsppcmsink. We'Re working with the
GStreamer community on a solution for the future.

Stefan

Neal H. Walfield wrote:
> The following works for me:
> 
>  gst-launch-0.10 -v file:///home/user/MyDocs/.sounds/Take_Me_Down.mp3 \
>! dspmp3sink
> 
> But this:
> 
>  gst-launch-0.10 -v playbin \
>uri=file:///home/user/MyDocs/.sounds/Take_Me_Down.mp3
> 
> just *hangs* at "Pipeline is PREROLLING ...".  Someone mentioned on
> irc that playbin is simply broken on maemo.  Is that the case?  Do I
> have to hand code my pipelines and implement my own file type
> detection?
> 
> For what it is worth, I'm using OS2006-3.
> 
> Thanks,
> Neal
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Multiple Choice Response Form (Re: How to learn DSP development for N800?)

2007-02-15 Thread Stefan Kost
Hi,

I did't rest before I got an answer

Hanno Zulla wrote:
> Hi,
> 
>> I want to learn how to add new codecs to Maemo. So: Yes, I want direct
>> access to the DSP.
>>
>> Basically, I'm asking for what Frantisek just described in his message
>> "Maemo roadmap, SDK improvements..." to this list:
>>
>>> - example of simple hello world dsp task with working makefile
>>> including linking phase with dsp bios used on device
>>> - source of example audio/video sink - i.e. how to produce audio/video
>>> from the dsp task (=what code to call in dsp bios)
> 
> This is not meant as a flame.
> 
> I know that you guys from Nokia read this list. I know that you are
> bound to some legal mumbo-jumbo and cannot reply to anything suggested
> here. I also know that the open source community is a group of grumpy
> people with questionable social skills, so you've been flamed to hell
> and back on this list and you have lost interest in replying to the
> ungrateful crackpots writing here... ;-)
> 
> However, SOME sort of response would be REALLY kind, even if [1] hasn't
> been hired, yet.
> 
> So, Nokia guys, please select one or more of the following multiple choices:
> 
> [ ] "Good idea, we might provide this some time in the future, but we
> cannot promise a date for that, so please be patient."
> 
> [ ] "Good idea, but we cannot provide this due to legal reasons, please
> understand."
> 
> [ ] "Good idea, but you have to sign this NDA first to receive this
> information."
> 
> [ ] "Sorry, not a good idea, it's too much work for the Nokia developers
> to provide you with some definitive guide to DSP development and we
> prefer working on Maemo development. Here are some helpful links to get
> you started, but you have to find out this stuff on your own."
> 
> [X] "Sorry, not a good idea, we don't want to you to hack the hardware
> and will not provide direct access to the DSP. Please stay at the
> application level when developing for Maemo devices."

You can use the information that is available on
http://dspgateway.sourceforge.net/
Right now there is nothing more that we can offer.

Stefan

> 
> [ ] "Sorry, no idea. We haven't made up our mind on this, yet."
> 
> [ ] Other: ___
> 
> Thank you,
> 
> Hanno
> 
> 
> [1]
> http://careers.nokia.com/nokia/hr/recrsyst.nsf/WB2RR/B18285E672815A72C225726000399BAA
> 
> (Great idea! I hope that the documentation manager will improve
> discussions like this one and really look forward to his work!)
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Ogg Vorbis and the N800 - Theora encoding

2007-02-12 Thread Stefan Kost
hi,

Krischan Keitsch wrote:
> After failing to combine theora and tremor I played with the n800 web cam.
> Theora encoding can be done by (as example)
> 
> gst-launch-0.10 v4l2src ! 
> ffmpegcolorspace ! "video/x-raw-yuv",width=640,height=480,framerate=30/1 ! 
> theoraenc bitrate=100 ! oggmux ! filesink location=target.ogg   
> 
> Well, playback is in fast forward mode then ;-) Do I need to add some kind of 
> a 'timeoverlay' ?
> 
> Raw video encoding (I420) is done by
> 
> gst-launch-0.10 v4l2src ! 
> ffmpegcolorspace ! "video/x-raw-yuv",width=352,height=288,framerate=30/1 ! 
> avimux ! filesink location=target.avi
> 
> Cpu usage is below 45%.
> 
> Regards Krischan

the camera supports only the following resolution

SQCIF : width=128,height=96,framerate='(fraction)'15/1
QCIF  : width=176,height=144,framerate='(fraction)'15/1
CIF   : width=352,height=288,framerate='(fraction)'15/1
VGA   : width=640,height=480,framerate='(fraction)'15/1

stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Ogg Vorbis and the N800 - Theora

2007-02-10 Thread Stefan Kost
Hi Krischan,

Krischan Keitsch wrote:
> Am Samstag, 10. Februar 2007 schrieb Stefan Kost:
>> Hi,
>>
>> there is
>> http://bugzilla.gnome.org/show_bug.cgi?id=357055
>> which you could try.
>>
>> Stefan
> Hi Stefan
> 
> I applied the patch. It compiled okay. However, gst-inspect will not register 
> the tremor plug in anymore. Why is that?
Thanks for trying it. You can do:
GST_DEBUG="GST_PLUGIN_LOADING:4" gst-inspect-0.10

I suspect there is a missing symbol. This will tell, although it needs a
gstreamer core that is build using --enable-gst-debug. It's probably easier to
try on x86.

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Ogg Vorbis and the N800 - Theora

2007-02-10 Thread Stefan Kost
Hi,

there is
http://bugzilla.gnome.org/show_bug.cgi?id=357055
which you could try.

Stefan


MoRpHeUz wrote:
> Hi !
> 
>> > > If it is possible to let the tremor plugin do the audiodecoding, what
>> > > would be the right gst-lanuch string?
> 
> Changing vorbisdec for tremor in that line doesnt work because tremor
> expects application/ogg and vorbisdec expects audio/x-vorbis. So, the
> line below doesnt work...
> Gst gurus ? =P
> 
> gst-launch-0.10 gnomevfssrc location=http://localhost:8080 ! oggdemux
> name=demuxer ! {queue ! theoradec ! xvimagesink} {demuxer.! queue !
> tremor ! audioconvert ! dsppcmsink}
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Does camera in N800 support X11 Xv extension?

2007-02-04 Thread Stefan Kost
hi tim,

Tim Teulings wrote:
> Hallo!
> 
> Subject says it all:
> 
> Does the camera in the N800 support the X11 Xv extension, that mean can
> I use this extension for displaying images of the camera or must I use
> v4l V2 (what about the V1 interface) or gstreamer?

v4l (1) is deprecated. Thus we only support v4l2. The v42lsrc gstreamer element
is included, but also directly accessing v4l2 woiuld work.

stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Play online mp3

2007-01-27 Thread Stefan Kost
hi,

[EMAIL PROTECTED] wrote:
> Hello,
> 
> I want, in a C program, to play mp3 onlines. If, by example, a mp3 is on
> http://foo.org/toto.mp3, what method is the best to play it.

use gstreamer:
gst-launch gnomevfssrc location="http://foo.org/toto.mp3"; ! dspmp3sink

check the gstreamer docs (http://gstreamer.freedesktop.org) how to do that from
within an application.

Stefan


> 
> Thanks,
> 
> Jean-Luc Biord
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] vorbis and musepack support roadmap ?

2007-01-19 Thread Stefan Kost
hi,

Jorge Salamero Sanz wrote:
> hi all,
> 
> are next releases (770 and 800) going to support vorbis and musepack ?

https://garage.maemo.org/projects/mogg/

> this is a killer feature still missing ...

Thats why gstreamer is used. New codecs can be installed and applications can
use them. Simillar packages can be made by the community for other formats, like
e.g. for modplug or for the musepack format you mentioned.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] N800 as a webcam

2007-01-14 Thread Stefan Kost
hi,

[EMAIL PROTECTED] wrote:
> Why do it via USB when you have both bluetooth and
> WiFi?  There are a number of fairly lame
> self-contained net/web cameras and most run some kind
> of embedded Linux.  I assume you could put some kind
> of web-server with a live video object or a
> refreshing gif/png/jpeg (and more interesting things
> with the new GPS API).
> 
> Even if you do use USB, a network device would work.
>
The idea I guess is that the host pC detects the connected N800 as a usb camara
device. Means the solution would need a N800 part and a v4l2 driver for the 
host.

Stefan

> 
> This is actually the sort of thing I am thinking of
> doing with other hardware (but the N800 is a very
> good match in many ways based on the specifications).
> 
> 
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: Proper documentation (was Re: [maemo-developers] HildonProgram input to gtk_widget_show()?)

2006-12-01 Thread Stefan Kost

Hi,

Mike Frantzen wrote:
>> ...


I think it's even worse than that.  There are enough differences to the
usual linux/gtk development environment that the N770 is very
frustrating to develop for.  The usual embedded linux target gives the
developer the freedom to choose the methods to his madness.  The N770
forces developer do it Nokia's way or not at all.


We (Nokia) don't enforce stuff. But if you want to use some stuff, then you need 
to use it the way it has to be used ;)



 Most embedded linux
targets are just as mature as the underlying linux system.  The N770
used enough bleeding edge technology that it has some very sharp edges;
and as a developer I really don't like the bleeding part.

The big ones that immedietly come to mind are:
  1) gstreamer which I understand if you want to offload multimedia to
 the DSP.  It's just too bad that it's not stable.
What do you consider so unstable here? The way the DSPPlugins (decoder sinks) 
work right now is now perfect - we know that and we are going to improve it step 
by step.



  2) dbus/libosso.  blech, complex solution to a simple problem.  very
 "Windows" like
Personaly I like DBus. I don't see how this relates to Windows. Please enlighten 
us :)



  3) hildon-specific gtk widgets instead of just modifying the stock GTK
 widgets to work well on the N770 platform
The plan here, was *not* to fork gtk. Please remember that there was no ready 
made receipie for us. We know that its not perfect, but still I like what we 
achived so far.




Porting existing applications to the N770 involves rewriting some things
and kludging the hell out of others.  Both which make it much less likely
that the diffs will be accepted back into the main application's source
tree.  Which means the porter has to maintain his diffs out of the tree
which is a big PITA.

>
Then please point out such things. Many things can be abstracted, but sometimes 
it needs some time to get the right ideas. We had to start somewhere.


Writing new applications for the N770 locks your application into the
N770 platform or you implement a lot of things twice, once for the N770
and once for everything else.  You end up doing things twice since it's
much more pleasant to debug outside of a N770 or a scratchbox.

I'm not happy with the N770 software.  The hardware is great and the
platform does have some serious potential if it ever matures under the
hood.

>
It will and its up to you to decide wheter you wanna help or sulk.
 
.mike


Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Bluetooth headset?

2006-11-25 Thread Stefan Kost
Hi George,
> On Thu, 2006-23-11 at 17:55 +0200, Tommi Komulainen wrote:
>   
>> On Mon, 2006-11-20 at 15:13 +0200, ext Tommi Komulainen wrote:
>> 
>>>   * 
>>> http://maemo.org/pipermail/maemo-developers/2006-November/006248.html
>>> Bluetooth headset?
>>> 
>>> What are [we] doing to enable support for bluetooth headsets?
>>>   
>> We don't have concrete plans at the moment. Please bring this up after
>> next release, in case we forget it.
>>
>>
>> 
>
> There have already been requests for the last three releases.  Is there
> no way to push this forward a step so we can get this support in for the
> NEXT release?
>   

To make it a bit more clear: If there are plans, we would not be allowed
to talk about it :(. So you'll have to wait. But be assured it if is
technically doable its quite likly that we are going to support it. Now
please let it rest.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Bluetooth headset?

2006-11-25 Thread Stefan Kost
Hi George,

George Farris wrote:
> On Thu, 2006-23-11 at 20:31 +0200, Stefan Kost wrote:
>   
>> Hi George,
>>
>> George Farris wrote:
>> 
>>> On Tue, 2006-14-11 at 18:42 +0200, Tommi Komulainen wrote:
>>>   
>>>   
>>>> On Mon, 2006-11-13 at 09:50 -0800, ext George Farris wrote:
>>>> 
>>>> 
>>>>> On Mon, 2006-13-11 at 11:47 +0200, Tommi Komulainen wrote:
>>>>>   
>>>>>   
>>>>>> Here is a list of issues raised on this list I think have not been
>>>>>> concluded so far, in no particular order. The easiest way to get off the
>>>>>> list is to provide answers, but you can also try convincing me other
>>>>>> ways.
>>>>>> 
>>>>>> 
>>>>> Please also include working Bluetooth headset support or lack there of.
>>>>> http://maemo.org/maemowiki/BluetoothHeadset
>>>>>   
>>>>>   
>>>> Please try to phrase it as a question, the more specific the better (I
>>>> don't really have any clue about Bluetooth and related issues.) To me it
>>>> seems somewhat like an advertisement for a howto or something, which I
>>>> don't believe is what you mean.
>>>>
>>>>
>>>> 
>>>> 
>>> Well from the web page in the link:
>>>
>>> Note: It appears that, due to limitations in Nokia's current Bluetooth
>>> driver on the 770, you can not actually use a bluetooth headset.
>>> Everything will appear to work, except that you won't get any audio out:
>>> [WWW]http://maemo.org/pipermail/maemo-developers/2005-December/002191.html
>>>
>>> Please provide a working driver for bluetooth audio, both in and out.
>>>   
>>>   
>> Please consider that we are not stupid. If it would be that easy we
>> would have done it. Having working bluetooth headset support is so dead
>> obviously useful, that it is impossible that we have overlooked it. Have
>> you ever tried to get it running under linux? Yes it needs work. So
>> please be patient, its done when its done. If you want to speed it up,
>> join the bluez guys and help them out.
>> 
>
> I'm sorry, did I insult someone here?  I didn't think so.  I merely
> provided data and a link reference.  I at no time suggested or made any
> personal or derogatory comments.  
>
> You, said you didn't have any clue about bluetooth and I merely pointed
> you to the information, which is what I thought you wanted.  In fact I
> treated you with competence and intelligence to read the information and
> go from there.
>   
Then I am sorry. The "Please provide a working driver for bluetooth
audio, both in and out." phrase is a bit demanding and I thought ti can
from you.

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Re: Re: RE: Re: Please include osso-media.server ogg probs

2006-11-25 Thread Stefan Kost
Hi Danny,

> Hi,
>
> On Mon, 20 Nov 2006 17:47:11 +0200, Tommi Komulainen wrote:
>   
>> On Sun, 2006-11-19 at 22:42 +, ext Danny Milosavljevic wrote:
>> 
>>> configure: error: no gstreamer-0.10 >= 0.10.10.1 (GStreamer) found
>>>   
>> Any particular reason you're checking against a version that has not
>> been released yet even in upstream?
>>
>> Did you mean gstreamer-0.10 >= 0.10.1 ?
>> 
>
> 'I' am checking? :) Well, Andrea said to use "the latest version from CVS
> of gst-plugins-bad", which I did, which did that.
>
> I guess I should backtrack cvs to an earlier version, but I'm not sure
> whether that will work. 
> Or should I update _all_ of gstreamer to current cvs?
>   
That bad :( Two ideas though:
* find the revision where the ivorbisfile has been changed last and use
that one
  http://webcvs.freedesktop.org/gstreamer/gst-plugins-bad/ext/ivorbis/
* build whole gst and replace files on the device.

I would go for the first option :)

Stefan/ensonic



___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Bluetooth headset?

2006-11-23 Thread Stefan Kost
Hi George,

George Farris wrote:
> On Tue, 2006-14-11 at 18:42 +0200, Tommi Komulainen wrote:
>   
>> On Mon, 2006-11-13 at 09:50 -0800, ext George Farris wrote:
>> 
>>> On Mon, 2006-13-11 at 11:47 +0200, Tommi Komulainen wrote:
>>>   
 Here is a list of issues raised on this list I think have not been
 concluded so far, in no particular order. The easiest way to get off the
 list is to provide answers, but you can also try convincing me other
 ways.
 
>>> Please also include working Bluetooth headset support or lack there of.
>>> http://maemo.org/maemowiki/BluetoothHeadset
>>>   
>> Please try to phrase it as a question, the more specific the better (I
>> don't really have any clue about Bluetooth and related issues.) To me it
>> seems somewhat like an advertisement for a howto or something, which I
>> don't believe is what you mean.
>>
>>
>> 
>
> Well from the web page in the link:
>
> Note: It appears that, due to limitations in Nokia's current Bluetooth
> driver on the 770, you can not actually use a bluetooth headset.
> Everything will appear to work, except that you won't get any audio out:
> [WWW]http://maemo.org/pipermail/maemo-developers/2005-December/002191.html
>
> Please provide a working driver for bluetooth audio, both in and out.
>   
Please consider that we are not stupid. If it would be that easy we
would have done it. Having working bluetooth headset support is so dead
obviously useful, that it is impossible that we have overlooked it. Have
you ever tried to get it running under linux? Yes it needs work. So
please be patient, its done when its done. If you want to speed it up,
join the bluez guys and help them out.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Summary of my ogg adventures (still unresolved)

2006-11-09 Thread Stefan Kost
Hi Sebastian,

Sebastian Spaeth wrote:
> Tigert recommended to post to the developers list and have this issue
> taken in the unresolved issues list if nobody knows the answer. I've
> talked to three people which all ran in the exact same problem when
> following the maemo.org documentation instructions. So here it goes:
>
> I would like some Nokians to help me to understand how
> osso_media_server uses gconfkeys to determine the gst plugins to use
> for a certain media type (the instructions on the maemo.org page seem
> to be wrong).I don't need them to explain to me the secret nature of
> DSP hardware etc.
>
> I try to install ogg support according to:
> http://maemo.org/platform/docs/multimedia/getting_started.html
>
> After installing libgstivorbis.so and libvorbisidec.so (and the
> gstreamer-tools) *I am able to play oggs from the command line*.
>
> "gst-launch-0.10 filesrc location=blah.ogg ! tremor ! dsppcmsink"
>
> works just fine and plays the ogg file with a little over 20% CPU
> usage (according to top). I also installed the mime-type for ogg and
> the file manager recognizes ogg files as "audio/x-vorbis". (Clicking
> on it in file manager opens the music player). So far so good.
> --
> Now comes the problem:
> This schema file is supposed to tell osso_media_streamer to launch
> ...!tremor!dsppcmsink for ogg files. But it doesn't work.
>
> 
> /schemas/apps/osso/osso_media_server/audio/application_ogg
> /apps/osso/osso_media_server/audio/application_ogg
> osso_media_server
> list
> string
> [application/ogg,tremor,dsppcmsink]
> 
> 
>
> I get a playback error and osso_media_server consumes 100% CPU until
> killed. So obviously it is doing different things than just calling
> "gst-launch filesrc location=blah.ogg ! tremor ! dsppcmsink" (again,
> this works on the 770 command line) but I cannot see why it would get
> stuck like this.
> -
> Help would be appreciated. More specifically:
>
> 1) How does osso_media_streamer decide which audio schema to use for a
> file? (e.g. how does it get from mime-type: audio/x-vorbis to the
> application/ogg schema. That connection seems to be never made)
The media engine runs a typefind on this. The media-type (although it
looks like a mime-type it is not one, it is the gstreamer internal media
type!) serves as a lookup key for the gconf database. The tremor plugin
is a oggdemuxer + vorbisdecoder in one elements. Normaly one uses
oggdemux ! vorbisdec.
You can run the typefind yourself :
> gst-typefind test.ogg
test.ogg - application/ogg

So the above schema is just fine : [application/ogg,tremor,dsppcmsink]

> 2) Is there a debug way to see what gst plugins are actually called in
> what order if it starts playing a file?
Build gstreamer using debug and copy that onto your device. Then restart
the media-engine:
GST_DEBUG="*:3" /etc/osso-af-init.d/osso-media-engine restart

Please refer to the gstreamer gst-launch man page for more details about
log levels and log-domains.
>
> Thanks
> sebastian

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Unresolved issues (Week 43)

2006-11-06 Thread Stefan Kost
Hi,

Michael Wiktowy wrote:
> On 10/30/06, Tommi Komulainen <[EMAIL PROTECTED]> wrote:
>>
>>   *
>> http://maemo.org/pipermail/maemo-developers/2006-October/005742.html
>> microphone recording quality
>> 3rd mention
>>
>> GStreamer 0.8 recording sampling rate is limited to 8kHz? Can it
>> be increased?
>>
>
> This was answered on the Week 41 list.
>
> I'll cut-and-paste the response here too:
> Stefan Kost <[EMAIL PROTECTED]> to Tommi, maemo-develope.
> 1:27 pm
> Hi,
> Due to some constraints on the DSP side, this can't be changed right
> now. So for the dsppcmsrc and also the alsasrc on the device the
> sampling rate for recording s is limited to 8 kHz. This is not a limit
> of GStreamer 0.8 or 0.10.
> 
>
> As I was one of the interested parties in that conversation, thanks
> for the reply, Stefan .
> I hope this means that it can be fixed with a firmware update rather
> than a hardware update. If this is the case, I also hope that it will
> be increased in future N770 OS releases.
I don't know all the details, but the message from the DSP developers
was that this won't be changed with the current hardware. Lets just hope
that for future hardware its been not planned this short-sighted in this
case.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Nokia Media Streamer - How it is done?.

2006-10-30 Thread Stefan Kost
hi,

Beth wrote:
> Hi to all ;).
>
> I have doubts about how the media streamer is programmed. Not the
> internal functions of the streaming or the UPnP, etc, etc.
>
> I wish to know if some caritative soul could illuminate my stupidity,
> with which widget toolkit is done?, gtk?, proprietary "hand drawn"?
It uses gtk+ with own theming. And yes, it looks good.

> maybe the Spanish expression will be "a pelo" :D (please don't try to
> translate it, jijiji).
>
> I think that the "look" is well done in this application, the scroll
> made between the sections, etc,etc.
>
> Thankksss boys and girls for your support. Regarddsss
Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Unresolved issues (Week 41)

2006-10-30 Thread Stefan Kost
Hi,


Tommi Komulainen wrote:
> Here is a list of issues raised on this list I think have not been
> concluded so far, in no particular order. The easiest way to get off the
> list is to provide answers, but you can also try convincing me other
> ways.
> ...
>   * http://maemo.org/pipermail/maemo-developers/2006-October/005742.html
> microphone recording quality
>   
> GStreamer 0.8 recording sampling rate is limited to 8kHz? Can it
> be increased?
>   
Due to some constraints on the DSP side, this can't be changed right
now. So for the dsppcmsrc and also the alsasrc on the device the
sampling rate for recording s is limited to 8 kHz. This is not a limit
of GStreamer 0.8 or 0.10.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] microphone recording quality

2006-10-14 Thread Stefan Kost
hi,

Michael Wiktowy wrote:
> 
> I am always baffled by the lack of support of ogg speex and vorbis in
> the 770 apps though.
>   
Its not that Nokia does not support the xiph codes. Have you read this page?
http://maemo.org/platform/docs/multimedia/getting_started.html#plugins

The same way you can add support for all kind of formats to the device.
Would be cool if someone from the community can make .deb packages for
additional codecs and put them on garage.

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Maemo: Context-Aware Applications

2006-10-14 Thread Stefan Kost
Hi Kris,

Kris McGlinn wrote:
> Hi Amrin,
>
> A context-aware application takes in some type of contextual
> information, e.g. location, and then adapts its behaviour according to
> that information. Would the Nokia 770 have any applications that uses
> location information to adapt its behaviour? (maybe even just given
> the location of freinds etc.)
We thinking about something like that too. Have a look at:
http://live.gnome.org/GeoClue

Cu
  Stefan
>
> Thanks,
>
> Kris.
>
> Armin M. Warda wrote:
>> What are "context-aware applications"?
>>
>>--- May the Source be with you! Linux. ------ secure eMail:
>> http://www.gnupg.de/ ------ My Homepage http://armin-warda.de/ ---
>>
>> - Original message -
>> From: Kris McGlinn <[EMAIL PROTECTED]>
>> To: maemo-developers@maemo.org
>> Sent: Di., 10. Okt. 2006 21:40:35 CEST
>> Subject: [maemo-developers] Maemo: Context-Aware Applications
>> Hi There,
>>
>> I am looking at running some tests on context-aware applications, I
>> currently have a Nokia 770, and have Maemo set up on Ubuntu. I was
>> wondering if there are currently any context-aware applications that I
>> could use, or if there are any on the way?
>>
>> Thanks,
>>
>> Kris.
>>
>>
>> ___
>> maemo-developers mailing list
>> maemo-developers@maemo.org
>> https://maemo.org/mailman/listinfo/maemo-developers
>>
>>
>>   
>
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] ALSA

2006-10-13 Thread Stefan Kost
Hi Brad,

Brad Midgley wrote:
> Devesh
>
>   
>> https://garage.maemo.org/plugins/scmsvn/viewcvs.php/alsa-plugin/?root=dsp-alsa
>>
>> If I understood this correct, this provides the ALSA interface through
>> ALSA-DSP PCM plugin.
>> 
>
> would this help with integrating userspace output plugins? I have been
> working on alsa plugins for a2dp audio but I haven't spent the time on
> gst plugins.
>
> I really need to get going with gstreamer. A gst plugin could pass mp3
> files as-is to a headset like my r35 with its own mp3 decoder. but I'm
> not totally sure the maemo apps can be told to use a different gst output...
>   
The can, the pipelines are dynamically build from snippets stored in
gconf. So for testing you could replace dspmp3sink in the gconf with you
bluemp3sink

Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Future features for Maemo Desktop (TaskNavigator, Home, Status bar)?

2006-08-27 Thread Stefan Kost
hi,

Ted Gould wrote:
> 
> - Accelerometer.  I'm not sure exactly what this would be used for,
> but I think it has interesing applications.  Perhaps use with GPS to
> over time get more exact coordinates?  Maybe take "gesture" based
> browsing to the next level?
>
I second that. Some ideas:
* landscape/portrait mode: automatic switching when rotating the device
(pdf,ebook, picture viwer)
* real marble-maze games
* flip gestures for news/mail reader

Stefan


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] problem with gstreamer

2006-08-20 Thread Stefan Kost
hi,

Pavan Krishnamurthy wrote:
> Hi,
>  
> Firstly excuse me if I am reporting this problem in a wrong group. But
> since there are people who have worked on gstreamer in this group I am
> posting this problem.
>  
> I tried to run the "helloworld" program given in the gstreamer-10.8
> documentation on my linux machine. It played back the .ogg file
> without any problem.
>  
> But I needed to play a wave file. So I modified the helloworld code as
> follows:
> 1. instead of oggdemux and vorbis parser elements, I created wavparse
> element.
> 2. Added "filesrc", "wavparse", "alsasink" to the pipeline and linked
> them.
for some file you might need to have "audioconvert" between wavparse and
alsasink/dsppcmsink

As already suggested install gstreamer-tools and try with gst-launch
first. It might be also worth to make the pipeline run on x86 linux and
then try on the device.
>  
> Now when I ran the program, it doesnt output the sound, it hangs in
> the gmainloop and never returns from it.
>  
> Can anybody pls tell me whats wrong with this.
>  
> Thanks and Regards,
> Pavan
Stefan

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] gStreamer in 2.0 release

2006-07-14 Thread Stefan Kost
Hi,

ThomasBambrough wrote:
> I'm trying to use the gStreamer interface in version 2 of maemo and I
> keep getting the following error when I call gst_init
>
> test[2840]: GLIB CRITICAL ** GStreamer -
> gst_element_class_set_details: assertion `GST_IS_ELEMENT_DETAILS
> (details)' failed
>
> ERROR: Caught a segmentation fault while loading plugin file:
> /usr/lib/gstreamer-0.10/libgstrtpjitterbuffer.so
>
is that element part of the distribution or have you added it? The glib
critical error terminates the application, because the plugin inside
libgstrtpjitterbuffer.so calls gst_element_class_set_details() with
something that should be a GstElementDetails object but isn't. This
smells like memory corruption.

> Can anyone tell me what i might be doing wrong.
If this is your own app, try building in on linux/x86 and run it under
valgrind.

Stefan
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] gstreamer 0.10

2006-05-26 Thread Stefan Kost
hi Bart,

Am Montag, den 15.05.2006, 00:22 +0300 schrieb cmonst:
> Hi!
> 
> I would like to know if I install gstreamer 0.10 (from gstreamer.org)
> on Nokia 770 will dsp sink plugins  work with this gstreamer version?
> (ie. plugins from 0.8 gstreamer, because I think that there is no dsp
> sinks in official gstreamer release). Are anywhere avilable packages
> or sources of gstreamer 0.10 with dsp support for 770???
gstreamer-0.10 is parallel installable to gstreamer-0.8. The installed
dsp-plugins will not work with gst-0.10. The new software edition uses
gstreamer-0.10 and includes the plugin.

> This issue is very important for me.
> 
> Bart

Stefan


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] apt-get: failure to resolve repository

2006-04-25 Thread Stefan Kost
hi,

wasn't there a problem with a broken /etc/resolv.conf in scratchbox for
some people? Murray, can you verify that this file is okay.

Stefan

Am Montag, den 24.04.2006, 13:13 +0200 schrieb Murray Cumming:
> I seeing a strange problem with apt-get in scratchbox today. It can't
> resolve repository.maemo.org, though I can wget just fine:
> 
> [sbox-SDK_maemo_686: ~] > fakeroot apt-get update
> Err http://repository.maemo.org maemo1.1/free Packages
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/free Release
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/non-free Packages
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/non-free Release
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/free Sources
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/free Release
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/non-free Sources
>   Temporary failure resolving 'repository.maemo.org'
> Err http://repository.maemo.org maemo1.1/non-free Release
>   Temporary failure resolving 'repository.maemo.org'
> Failed to fetch
> http://repository.maemo.org/dists/maemo1.1/free/binary-i386/Packages.gz
> Temporary failure resolving 'repository.maemo.org'
> 
> [snip]
> 
> [sbox-SDK_maemo_686: ~] > wget
> http://repository.maemo.org/dists/maemo1.1/free/binary-i386/Packages.gz
> --12:32:41--
> http://repository.maemo.org/dists/maemo1.1/free/binary-i386/Packages.gz
>=> `Packages.gz'
> Resolving repository.maemo.org... 195.27.240.158, 194.109.218.35
> Connecting to repository.maemo.org[195.27.240.158]:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 71,463 [text/plain]
> 
> 100%[==>]
>  71,463   184.95K/s
> 
> 12:32:42 (184.23 KB/s) - `Packages.gz' saved [71463/71463]
> 
> 

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] Adding swapon/off to Jakub's Load-Plugin applet

2006-02-28 Thread Stefan Kost

hi,

instead of

if (swapname && strncmp(swapname, "", 1) != 0) {

just write

if (swapname && *swapname) {

Stefan

Henry Tan1g wrote:

Hi,

I tried your version of the Load-Plugin applet. Unfortunately it makes 
de device reboot everytime I click on the applet. I could repeat the 
problem inside scratchbox. After going through the source, I found out 
that the problem is swapname not being initialized the first time. 
Here's a small patch to make it work.


diff -Naur loadapplet-aw/load-plugin.c loadapplet-henry/load-plugin.c
--- loadapplet-aw/load-plugin.c 2006-02-28 00:32:41.0 +0100
+++ loadapplet-henry/load-plugin.c  2006-02-27 22:50: 01.0 +0100
@@ -536,7 +536,7 @@
 gtk_menu_shell_append(GTK_MENU_SHELL(info->menu),
 info->menu_separator);
/* Swap */
-   if (strncmp(swapname, "", 1) != 0) {
+   if (swapname && strncmp(swapname, "", 1) != 0) {
  if (swapisactive())
sprintf(label, "swapoff %s (%d MB used)", swapname, 
(swapused+512)/1024);

  else

Regards,

Henry




___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


Re: [maemo-developers] hello-world-app-0.2

2005-12-23 Thread Stefan Kost
hi,

you need to setup an ARM target in scratchbox, as written in the
tutorial and use this target to build the .deb

Stefan

rh wrote:
>> Hi,
>>
>> On Fri, Dec 23, 2005, rh wrote:
>> 
>>> I already download hello-world-app_0.2.tar.gz app from maemo website.
>>>   
> Then I read the README file, they say that I can build it like any other
> Debian package using "$ dpkg-buildpackage -rfakeroot" command.
>   
>>> But when I try to build using that command, error occured
>>>
>>> CFLAGS=" -Wall -g -02" ./configure --prefix=/usr --disable-static
>>> /bin/sh: line 1: ./configure: No such file or directory
>>> make: *** [configure-stamp] Error 127
>>>
>>> What should I do now ?
>>>   
>> Run ./autogen.sh before building the package. This should have been done
>> before building the tarball.
>>
>> Johan.
>> 
>
> Thanks, it works now.
> The problem is about permission at app folder.
>
> But when I try to install hello-world-app_0.2_i386.deb package file to N770,
> error occured,
> Unable to install. Incompatible package.
>
> And then I try to install maemopad_1.1_i386.deb package, error occured,
> Unable to install maemopad.
> Component is built-in.
>
> Please help again...
>
> Ronny
>
> ___
> maemo-developers mailing list
> maemo-developers@maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
>   

___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers


[maemo-developers] additional deb repositories for the N770

2005-12-21 Thread Stefan Kost
hi,

I am new to the list, so I sorry if it is an FAQ. I was looking for
extra repositories for N770 packages for ARM and PC: I am also
unfortunately new to debian (using gentoo and suse). Thus telling me how
to add a new repository would be kind.

It would be cool if anyone could add the information to the wiki. e.g. under
*http://maemo.org/maemowiki/DeveloperInfo
*
Thanks at lot,

Stefan

*
*
___
maemo-developers mailing list
maemo-developers@maemo.org
https://maemo.org/mailman/listinfo/maemo-developers