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

2007-02-12 Thread Krischan Keitsch
Am Montag, 12. Februar 2007 schrieb Kalle Vahlman:
 2007/2/11, Krischan Keitsch [EMAIL PROTECTED]:
  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

 You might want to limit the framerate, at least if you plan on playing
 it back on the N800... ;)

  Well, playback is in fast forward mode then ;-) Do I need to add some
  kind of a 'timeoverlay' ?

 My guess would be that at that size and framerate the encoding is not
 keeping up with the stream. Do you see this with say [EMAIL PROTECTED]

Thanks for the reply.
This works better:
gst-launch-0.10 v4l2src ! 
ffmpegcolorspace ! video/x-raw-yuv,width=160,height=120,framerat=10/1 ! 
theoraenc bitrate=100 ! oggmux ! filesink location=target.ogg

As soon as I have some more spare time I might where the limits are concerning 
resolution, framerate and bitrate. 

Regards Krischan


pgp5c3kITmc7T.pgp
Description: PGP signature
___
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 encoding

2007-02-11 Thread Krischan Keitsch
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



pgp08s1TStqMY.pgp
Description: PGP signature
___
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-11 Thread Kalle Vahlman

2007/2/11, Krischan Keitsch [EMAIL PROTECTED]:

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


You might want to limit the framerate, at least if you plan on playing
it back on the N800... ;)


Well, playback is in fast forward mode then ;-) Do I need to add some kind of
a 'timeoverlay' ?


My guess would be that at that size and framerate the encoding is not
keeping up with the stream. Do you see this with say [EMAIL PROTECTED]

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
___
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] Ogg Vorbis and the N800 - Theora

2007-02-10 Thread Krischan Keitsch
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?

I also tried the low mem version of tremor. Same problem.

Interesting: I used mplayer (which has tremor compiled in) to play a theora 
ogg file (video and audio file). Of course it coud not play the theora part. 
But mplayer was able to play the vorbis stream. Conclusion: The tremor 
implementation from mplayer is able to play vorbis streams.  
Siarhei did a great job porting and optimizing mplayer for 770  n800. Maybe 
he could add theora support to mpayer ?

Regards Krischan


pgpLPXTgh2Ibv.pgp
Description: PGP signature
___
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-09 Thread MoRpHeUz

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


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

2007-02-08 Thread Krischan Keitsch
Am Donnerstag, 8. Februar 2007 schrieb MoRpHeUz:
 This ogg files you're playing contain video ? I was just able to play
 audio until now...


 Best Regards,


 MoRpHeUz

Yes, I also build the theora plugin. 

I did a short test this morning:

Theora and vorbis on n800
I transcoded the Discovery.avi with ffmpeg2theora with the default settings.

Theora video:
352x208

1) theora video only
gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux ! theoradec ! 
xvimagesink

cpu: ~45%
The theora video is beeing played in a window not full screen. The video 
playback is good. No skips. :-) Looks promissing. I will try some higher 
resolutions  frame rates soon.


2) theora video and vfp-vorbis decoding
gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux name=demuxer ! 
{queue ! theoradec ! xvimagesink} {demuxer.!queue ! vorbisdec ! 
audioconvert ! dsppcmsink}

cpu: ~ 80 (45%  35%)
Vorbis playback using the vfp causes ~35% cpu. Theora decoding is like in 1). 
It adds up to ~80% and I experienced many  skips. Playback is not in sync, 
halts, skips ...  :-(


However when I try to use tremor (just takes ~12% cpu) based audio decoding I 
am out of luck. 

If it is possible to let the tremor plugin do the audiodecoding, what would be 
the right gst-lanuch string? 

I need some advice from you gst gurus!

Regards Krischan

PS: 770  n800 are not _just_ internet tablets. They are a hell of a 
multimedia device. The more time I spend using my n800 and 770 the more 
impressed I get! 



pgpCSuGuqoqCU.pgp
Description: PGP signature
___
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-08 Thread MoRpHeUz

Krischan,

 Can you provide the theora plugin for us, so I can do some tests also ?

If we could use theora for video decoding and tremor for audio
decoding would be wonderful ! =) We just need to make it (theora) also
use vfp...

Doing that we will be able to watch some streaming without the need of
mplayer...

MoRpHeUz

PS: I can help you with tests and buildings...I'm online all day
([EMAIL PROTECTED] and at #maemo)

On 2/8/07, Krischan Keitsch [EMAIL PROTECTED] wrote:

Am Donnerstag, 8. Februar 2007 schriKrischan KeitsKrischan Keits eb MoRpHeUz:
 This ogg files you're playing contain video ? I was just able to play
 audio until now...


 Best Regards,


 MoRpHeUz

Yes, I also build the theora plugin.

I did a short test this morning:

Theora and vorbis on n800
I transcoded the Discovery.avi with ffmpeg2theora with the default settings.

Theora video:
352x208

1) theora video only
gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux ! theoradec !
xvimagesink

cpu: ~45%
The theora video is beeing played in a window not full screen. The video
playback is good. No skips. :-) Looks promissing. I will try some higher
resolutions  frame rates soon.


2) theora video and vfp-vorbis decoding
gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux name=demuxer !
{queue ! theoradec ! xvimagesink} {demuxer.!queue ! vorbisdec !
audioconvert ! dsppcmsink}

cpu: ~ 80 (45%  35%)
Vorbis playback using the vfp causes ~35% cpu. Theora decoding is like in 1).
It adds up to ~80% and I experienced many  skips. Playback is not in sync,
halts, skips ...  :-(


However when I try to use tremor (just takes ~12% cpu) based audio decoding I
am out of luck.

If it is possible to let the tremor plugin do the audiodecoding, what would be
the right gst-lanuch string?

I need some advice from you gst gurus!

Regards Krischan

PS: 770  n800 are not _just_ internet tablets. They are a hell of a
multimedia device. The more time I spend using my n800 and 770 the more
impressed I get!


___
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

2007-02-08 Thread Krischan Keitsch
Am Donnerstag, 8. Februar 2007 schrieb MoRpHeUz:
 Krischan,

   Can you provide the theora plugin for us, so I can do some tests also ?


Of course I could, but Simon Pickering already wrapped the plugins up to a 
archiv:
http://people.bath.ac.uk/enpsgp/temp/vorbis-stuff.tar.gz
Since we used the same compiler flags it should be the same.

 If we could use theora for video decoding and tremor for audio
 decoding would be wonderful ! =) We just need to make it (theora) also
 use vfp...
I don't know what the theora plug in is using. I guess it also uses the vfp 
yet. My intention was to use tremor for audio decoding since it uses less cpu 
cycles than the floating point vorbis plugin. I just did't figure out the 
right gst-launch syntax yet.

 Doing that we will be able to watch some streaming without the need of
 mplayer...

The mogg people integrated the tremor plug-in into the audio player on the 770 
just perfect. As soon as we know more about a working combination betwen 
theora and tremor we could ask them for help :-)

 MoRpHeUz

 PS: I can help you with tests and buildings...I'm online all day
 ([EMAIL PROTECTED] and at #maemo)

More testing would be good. 
I wish I had more time. Too bad I have to work for food ;-)

Krischan

 On 2/8/07, Krischan Keitsch [EMAIL PROTECTED] wrote:
  Am Donnerstag, 8. Februar 2007 schriKrischan KeitsKrischan Keits eb 
MoRpHeUz:
   This ogg files you're playing contain video ? I was just able to play
   audio until now...
  
  
   Best Regards,
  
  
   MoRpHeUz
 
  Yes, I also build the theora plugin.
 
  I did a short test this morning:
 
  Theora and vorbis on n800
  I transcoded the Discovery.avi with ffmpeg2theora with the default
  settings.
 
  Theora video:
  352x208
 
  1) theora video only
  gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux ! theoradec !
  xvimagesink
 
  cpu: ~45%
  The theora video is beeing played in a window not full screen. The video
  playback is good. No skips. :-) Looks promissing. I will try some higher
  resolutions  frame rates soon.
 
 
  2) theora video and vfp-vorbis decoding
  gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux name=demuxer !
  {queue ! theoradec ! xvimagesink} {demuxer.!queue ! vorbisdec !
  audioconvert ! dsppcmsink}
 
  cpu: ~ 80 (45%  35%)
  Vorbis playback using the vfp causes ~35% cpu. Theora decoding is like in
  1). It adds up to ~80% and I experienced many  skips. Playback is not in
  sync, halts, skips ...  :-(
 
 
  However when I try to use tremor (just takes ~12% cpu) based audio
  decoding I am out of luck.
 
  If it is possible to let the tremor plugin do the audiodecoding, what
  would be the right gst-lanuch string?
 
  I need some advice from you gst gurus!
 
  Regards Krischan
 
  PS: 770  n800 are not _just_ internet tablets. They are a hell of a
  multimedia device. The more time I spend using my n800 and 770 the more
  impressed I get!
 


pgp0g8zEg5Yv7.pgp
Description: PGP signature
___
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-08 Thread MoRpHeUz

Of course I could, but Simon Pickering already wrapped the plugins up to a
archiv:
http://people.bath.ac.uk/enpsgp/temp/vorbis-stuff.tar.gz
Since we used the same compiler flags it should be the same.


That's perfect, already downloaded it! =)


cycles than the floating point vorbis plugin. I just did't figure out the
right gst-launch syntax yet.


I'll ask some people here at work to try a gst-launch syntax so we can
try this...


The mogg people integrated the tremor plug-in into the audio player on the 770
just perfect. As soon as we know more about a working combination betwen
theora and tremor we could ask them for help :-)


Perfect =)


More testing would be good.
I wish I had more time. Too bad I have to work for food ;-)


Well, my work depends on this, so...I'm working for food right now ahaha =P


Best regards,




 On 2/8/07, Krischan Keitsch [EMAIL PROTECTED] wrote:
  Am Donnerstag, 8. Februar 2007 schriKrischan KeitsKrischan Keits eb
MoRpHeUz:
   This ogg files you're playing contain video ? I was just able to play
   audio until now...
  
  
   Best Regards,
  
  
   MoRpHeUz
 
  Yes, I also build the theora plugin.
 
  I did a short test this morning:
 
  Theora and vorbis on n800
  I transcoded the Discovery.avi with ffmpeg2theora with the default
  settings.
 
  Theora video:
  352x208
 
  1) theora video only
  gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux ! theoradec !
  xvimagesink
 
  cpu: ~45%
  The theora video is beeing played in a window not full screen. The video
  playback is good. No skips. :-) Looks promissing. I will try some higher
  resolutions  frame rates soon.
 
 
  2) theora video and vfp-vorbis decoding
  gst-launch-0.10 filesrc location=Discovery.ogg ! oggdemux name=demuxer !
  {queue ! theoradec ! xvimagesink} {demuxer.!queue ! vorbisdec !
  audioconvert ! dsppcmsink}
 
  cpu: ~ 80 (45%  35%)
  Vorbis playback using the vfp causes ~35% cpu. Theora decoding is like in
  1). It adds up to ~80% and I experienced many  skips. Playback is not in
  sync, halts, skips ...  :-(
 
 
  However when I try to use tremor (just takes ~12% cpu) based audio
  decoding I am out of luck.
 
  If it is possible to let the tremor plugin do the audiodecoding, what
  would be the right gst-lanuch string?
 
  I need some advice from you gst gurus!
 
  Regards Krischan
 
  PS: 770  n800 are not _just_ internet tablets. They are a hell of a
  multimedia device. The more time I spend using my n800 and 770 the more
  impressed I get!
 

___
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