maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   any way for n900 to play .smil file? (https://talk.maemo.org/showthread.php?t=59583)

TorstenT 2010-08-07 16:27

Re: any way for n900 to play .smil file?
 
Quote:

Originally Posted by extendedping (Post 778461)
smil file

<smil>
<body>
<seq>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal534-30-11-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" clip-begin="0:41:00"/>
<prefetch src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal535-30-12-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" mediaTime="30s" bandwidth="512000" />
</par>
...

It seems that .smil is an XML file which links to the media content.

RTSP is the real time streaming protocol. You can filter the rtsp-links with the following command:

Code:

grep rtsp myfile.smil | sed 's/.*\(rtsp:[^"]*\).*/\1/g'
You can play the rtsp stream with mplayer:
Code:

# play with full screen and 2000 kb buffer
mplayer -fs -cache 2000 "rtsp://..."

# save the stream as file: stream.dump
mplayer -dumpstream "rtsp://..."

Maybe kmplayer can do this too. But I only have tested the rtsp with mplayer from the command line.

koos 2010-08-07 20:27

Re: any way for n900 to play .smil file?
 
Quote:

Originally Posted by TorstenT (Post 778887)
Maybe kmplayer can do this too. But I only have tested the rtsp with mplayer from the command line.

Yes, kmplayer supports SMIL.

ilovemmgo1 2010-08-07 20:34

---
 
that is a test...

koos 2010-08-07 21:20

Re: any way for n900 to play .smil file?
 
Quote:

Originally Posted by koos (Post 779034)
Yes, kmplayer supports SMIL.

Btw. it might be a copy&paste problem, but the rtsp links report a 'source not found' error.
You need to use gstreamer (osso-media-server), mplayer doesn't really support rtsp.

extendedping 2010-08-07 21:52

Re: any way for n900 to play .smil file?
 
its all greek to me...

TorstenT 2010-08-09 21:42

Re: any way for n900 to play .smil file?
 
Quote:

Originally Posted by extendedping (Post 779093)
its all greek to me...

There is a dictionary for greek called "Wikipedia".

http://en.wikipedia.org/wiki/Rtsp
http://en.wikipedia.org/wiki/Mplayer..._media_formats
http://en.wikipedia.org/wiki/Synchro...ation_Language

Meanwhile, I tried kmplayer. It filters the RTSP-links from the SMIL file but does not start playing when you click on the links.

Therefore you need to start the X Terminal on the N900 and use the command line. Kmplayer is a graphical front-end for mplayer. mplayer is the program for the command line. You can add parameters behind the program name. -fs means full screen. -cache means buffer the movie before playing. rtsp://... is the link to the streaming server and the file name.

Check on your PC that an RTSP-Link is working. If it is working then you can check the link on the N900.

Code:

mplayer -fs -cache 2000 "rtsp://..."
This is a command line that you can enter in the X Terminal on the N900. rtsp://... has to be replaced with the real RTSP-link.

A manual with the different options of mplayer is here:
http://tivo-mplayer.sourceforge.net/...layer-man.html

extendedping 2010-08-10 04:20

Re: any way for n900 to play .smil file?
 
thanks will look at this tomorrow.

koos 2010-08-10 21:08

Re: any way for n900 to play .smil file?
 
Quote:

Originally Posted by TorstenT (Post 780850)
Meanwhile, I tried kmplayer. It filters the RTSP-links from the SMIL file but does not start playing when you click on the links.

Did you select osso-media-server (gstreamer), from main window menu, option 'Select Player'?
Firstly I suspect mplayer doesn't support these rtsp links, secondly it was reported to be working on Ubuntu (which makes me guess that totem plays it)
Note that the pasted smil file is probably corrupted, eg contains spaces in the urls.


All times are GMT. The time now is 00:03.

vBulletin® Version 3.8.8