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)

extendedping 2010-08-02 00:39

any way for n900 to play .smil file?
 
I have tried playing it in the default media player and in mplayer as well. mplayer says "missing codec". It does play on my ubuntu destkop however...

TorstenT 2010-08-06 23:17

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

Originally Posted by extendedping (Post 772505)
I have tried playing it in the default media player and in mplayer as well. mplayer says "missing codec". It does play on my ubuntu destkop however...

Are you sure you know what you are doing :confused: ?

I have read that SMIL is a text file. Maybe you can check what kind of file you have. Open a terminal and type:

Code:

file mystrangefile.smil
If it is a text/XML document look into it and post what is in the document.

extendedping 2010-08-06 23:25

Re: any way for n900 to play .smil file?
 
I am sure I don't know what I am doing. I have since found out it is a real media file, and it does not play. it is www.my-home-tv.com, which is macedonian tv (my wife wants our 2 year old to learn macedonian, her native language).

TorstenT 2010-08-06 23:44

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

Originally Posted by extendedping (Post 778352)
I am sure I don't know what I am doing. I have since found out it is a real media file, and it does not play. it is www.my-home-tv.com, which is macedonian tv (my wife wants our 2 year old to learn macedonian, her native language).

Do you have a link to that smil-file ?

jakiman 2010-08-06 23:57

Re: any way for n900 to play .smil file?
 
SMIL as far as I know is a subtitle file. (Just a SMI file with L at the end) If you have a video file that needs subtitles, sometimes you can get a SMIL file for it. Just rename the extension to SMI instead. (remove the L) Then video player will display the video with the subtitles that is inside the SMI file.

extendedping 2010-08-07 00:01

Re: any way for n900 to play .smil file?
 
I cant' find it but as soon as my wife gets back I will go on the site and see what happens when I download a file (I don't have the login).

btw thanks, I didn't think anyone was going to look into this.

extendedping 2010-08-07 00:46

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

Originally Posted by TorstenT (Post 778371)
Do you have a link to that smil-file ?

sent pm thanks...

Swirnoff 2010-08-07 01:08

Re: any way for n900 to play .smil file?
 
whats the size of the file?

extendedping 2010-08-07 01:26

Re: any way for n900 to play .smil file?
 
.rm says 175 (bites) and .smil says 2.7k using ls -lSh.

extendedping 2010-08-07 02:10

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

Originally Posted by TorstenT (Post 778347)
Are you sure you know what you are doing :confused: ?

I have read that SMIL is a text file. Maybe you can check what kind of file you have. Open a terminal and type:

Code:

file mystrangefile.smil
If it is a text/XML document look into it and post what is in the document.

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>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal535-30-12-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" />
<prefetch src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal536-30-13-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" mediaTime="30s" bandwidth="512000" />
</par>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal536-30-13-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" />
<prefetch src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal537-30-14-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" mediaTime="30s" bandwidth="512000" />
</par>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal537-30-14-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" />
<prefetch src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal538-30-15-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" mediaTime="30s" bandwidth="512000" />
</par>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal538-30-15-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" />
<prefetch src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal539-30-16-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" mediaTime="30s" bandwidth="512000" />
</par>
<par title="MyHomeTV - kanal5">
<video src="rtsp://www.my-home-tv.com:554/Archive/kanal5/kanal539-30-16-6-8-2010.rm?mhtvsession=NzQuNzIuMjA5LjEwODo5MTg2MjI6Mj AxMC0wOC0yNjo0OTMxMzA1Y2NiZjM0ZTgzNTY1N2U5NDFmYjhi NTI1NA==" />
</par>
</seq>
</body>
</smil>
~
~
~
(END)

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