[maemo-developers] Streaming video through Gstreamer

From: Merrick Fonnesbeck MFonnesbeck at sorenson.com
Date: Thu Jul 10 18:04:53 EEST 2008
Sorry about my last post, I was editing my email to send out and Outlook decided I was done and sent it.  What I was trying to say was this ... 
 
On the Nokia N800 I installed an x-terminal command window environment and launched Gstreamer, using the commands I showed before, from there.  I have another command line script that I run through a terminal window on my other N800 device which listens for incoming connections and launches a graphical window on the device displaying a box that shows what the first N800 camera is capturing.  So I'm not streaming a video file, but video from the camera.  I want to do this through code in a GTK/Hildon windowed application, and not through the terminal window.  The two commands that I found that work are shown below, one started one one device for listening for incoming input and one started afterward on another device for video output.
 
Mfonnesbeck
 
 
Listening for Input:
gst-launch udpsrc port=5434 caps=application/x-rtp,clock-rate=90000 ! rtph263depay ! hantro4100dec ! xvimagesink
 
Sending Video Output:
gst-launch v4l2src ! video/x-raw-yuv,width=352,height=288,framerate=8/1 ! hantro4200enc ! rtph263pay ! udpsink host=<other N800's ip> port=5434


________________________________

From: Darius Jack [mailto:dariusjack2006 at yahoo.ie]
Sent: Thu 7/10/2008 8:35 AM
To: maemo-developers at maemo.org; Merrick Fonnesbeck
Subject: Re: Streaming video through Gstreamer



Hi,

today I tested Media Streamer (in player)
and it works fine with mp3 files.
Some problems with avi files, failed to open any.
Can you tell me what video file format, codecs are supported ?
Just downloaded some demo avi files from the net and none opened in
Media Streamer, buferring was ok and then error message.

btw
is Media Streamer a stream player or both (run from a command line).
If the first option is valid , as I assume.
How to run Media Streamer from a command line ,
or how to make Mplayer to play audio files from Samba server (ftp)
It opens http:/...../*.mp3
but can't play ftp://....?*.mp3
Ok.
Another open option is to use Media Streamer in command line
is option is open.
Please refer me to a nice place, providing more details
(already visited Google).

Darius
Darius



--- On Thu, 10/7/08, Merrick Fonnesbeck <MFonnesbeck at sorenson.com> wrote:

> From: Merrick Fonnesbeck <MFonnesbeck at sorenson.com>
> Subject: Streaming video through Gstreamer
> To: maemo-developers at maemo.org
> Date: Thursday, 10 July, 2008, 3:57 PM
> Hello,
>
> I have found the command line arguments to gst-launch that
> allow you to send streaming video data to another N800/N810
> device and I have gotten that working between two devices.
> But how do you code that in C with Gstreamer code? I've
> gotten the following command line stuff to work:
>
> gst-launch v4l2src !
> video/x-raw-yuv,width=176,height=144,framerate=8/1 !
> hantro4200enc ! rtph263pay ! udpsink host=<remote
> device> port=5434
>
> But what code do I use, as in combination of plugins, to do
> the same thing through Gstreamer in my GTK/Hildon
> application that I am building?
>
> I've looked through the test3v.c file in farsight's
> library test code and it doesn't seem to be using the
> Gstreamer pipline elements as the command line seems to
> use. If someone will please guide me on the right track I
> would appreciate it. I am trying to get into this new world
> of programming for Nokia devices and it's all very
> overwhelming. Thanks.
>
> Mfonnesbeck_______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers

Send instant messages to your online friends http://uk.messenger.yahoo.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maemo.org/pipermail/maemo-developers/attachments/20080710/4731b20e/attachment.htm 
More information about the maemo-developers mailing list