PDA

View Full Version : any way for n900 to play .smil file?


extendedping
08-01-2010, 08:39 PM
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
08-06-2010, 07:17 PM
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:

file mystrangefile.smil

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

extendedping
08-06-2010, 07:25 PM
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
08-06-2010, 07:44 PM
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
08-06-2010, 07:57 PM
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
08-06-2010, 08:01 PM
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
08-06-2010, 08:46 PM
Do you have a link to that smil-file ?

sent pm thanks...

Swirnoff
08-06-2010, 09:08 PM
whats the size of the file?

extendedping
08-06-2010, 09:26 PM
.rm says 175 (bites) and .smil says 2.7k using ls -lSh.

extendedping
08-06-2010, 10:10 PM
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:

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
08-07-2010, 12:27 PM
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:


grep rtsp myfile.smil | sed 's/.*\(rtsp:[^"]*\).*/\1/g'


You can play the rtsp stream with mplayer:

# 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
08-07-2010, 04:27 PM
Maybe kmplayer can do this too. But I only have tested the rtsp with mplayer from the command line.
Yes, kmplayer supports SMIL.

ilovemmgo1
08-07-2010, 04:34 PM
that is a test...

koos
08-07-2010, 05:20 PM
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
08-07-2010, 05:52 PM
its all greek to me...

TorstenT
08-09-2010, 05:42 PM
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#Supported_media_formats
http://en.wikipedia.org/wiki/Synchronized_Multimedia_Integration_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.

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/docs/mplayer-man.html

extendedping
08-10-2010, 12:20 AM
thanks will look at this tomorrow.

koos
08-10-2010, 05:08 PM
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.