maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Video Center - *.vcfg file format (https://talk.maemo.org/showthread.php?t=14734)

badger 2008-01-09 21:18

Video Center - *.vcfg file format
 
I have been looking into the ability to easily add video podcasts to the Video Center application.

Within the Nokia Service Catalogue site there are a number of links which automate and configure the application with different video services - but what if I wanted to make my own video podcast have provide my viewers the ability to have my stream added to the video center application?

Well why not use the Nokia *.vcfg file format?

Its as easy as adding some an XML file to your webserver containing the details of your videocast and renaming it *.vcfg - you will also need to ensure that the correct MIME type has been added to the webserver.

Using the template below you can do just this.

Code:

<nv:ServiceProvider xmlns:nv="www.nokia.com/multimedia/video-service" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nokia.com/multimedia/video-service" Version="1.0">
    <nv:Service Type="VC" Protocol="RSS2.0" ProviderID="http://www.podshow.com/feeds/nokia-n800.xml">
        <nv:ServiceDetails>
            <nv:Text>
                <nv:Title>Podshow N800</nv:Title>
                <nv:Description>Podshow N800 content</nv:Description>
            </nv:Text>
        </nv:ServiceDetails>
        <nv:ServiceURI>http://www.podshow.com/feeds/nokia-n800.xml</nv:ServiceURI>
        <nv:IconURI>http://www.podshow.com/images/defaults/shows/small/default.jpg</nv:IconURI>
        <nv:serviceAccountURI>
        </nv:serviceAccountURI>
        <nv:Auth>
            <nv:UserName></nv:UserName>
            <nv:Password></nv:Password>
        </nv:Auth>
        <nv:IAP></nv:IAP>
    </nv:Service>
</nv:ServiceProvider>

Save the file as MyFile.vcfg and copy it to your webserver.

The webserver will need to be configured to force the download of this filetype - .htaccess etc

Code:

AddType application/vcfg vcfg
Now all that left to do is create a HTML page with a hyperlink to the *.vcfg file and away you go - navigate to the HTML on the tablet and click on the link - you will now be asked if you want to add the videocast to the video center application.

http://farm3.static.flickr.com/2349/...aa5fa5.jpg?v=0

Anyone up for hacking together a website where users can submit their own links? A kind of user generated Service Catalogue?

zerojay 2008-01-09 21:41

Re: Video Center - *.vcfg file format
 
Er... you mean like what I started about two months ago (and will be redone in a little while)? http://www.jablet.net/videocenter/

It was just a beta, so ignore the horrid looks.

It uses Mysql as a backend. When I add links to it, the site automatically creates the .vcfg files for me and adds them to the DB.

Bundyo 2008-01-09 22:07

Re: Video Center - *.vcfg file format
 
Also Andrew Flegg's mediaserv can transcode videos on the fly and also generates vcfgs (which is actually a video RSS feed)

badger 2008-01-09 22:40

Re: Video Center - *.vcfg file format
 
Quote:

Originally Posted by zerojay (Post 124307)
Er... you mean like what I started about two months ago (and will be redone in a little while)? http://www.jablet.net/videocenter/

It was just a beta, so ignore the horrid looks.

It uses Mysql as a backend. When I add links to it, the site automatically creates the .vcfg files for me and adds them to the DB.

Kinda like that...

I was thinking of having the ability for users to submit their own links and urls for tested streams...

in fact virtually identical to the Gronmyer repo db. Great first effort zerojay.

MoxFulder 2008-01-14 12:13

Re: Video Center - *.vcfg file format
 
I'm using mediaserv 0.5 and I would like to add the rss feed to videocenter but I get an error 'Service address invalid'. Any idea how add the mediaserv feed to videocenter? I also tried with the vcfg file but the app hang...

aflegg 2008-01-14 13:54

Re: Video Center - *.vcfg file format
 
I've not tested with OS 2008 yet (both Video Center and microb have had updates), but I seem to remember an issue with Video Center and spaces.

What is the RSS address which has been generated?

Sorry for the inconvenience, BTW.

chilli_peppa 2008-01-20 23:39

Re: Video Center - *.vcfg file format
 
I was having the same problem MoxFulder reported, so I modified the mediaserv .vcfg file using the template posted by badger as a guide. The result was:

Code:

<nv:ServiceProvider xmlns:nv="www.nokia.com/multimedia/video-service" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nokia.com/multimedia/video-service" Version="1.0">
    <nv:Service Type="VC" Protocol="RSS2.0" ProviderID="http://192.168.1.200:8090/rss/">
        <nv:ServiceDetails>
            <nv:Text>
                <nv:Title>MediaServ</nv:Title>
                <nv:Description>On-demand media from mediaserv</nv:Description>
            </nv:Text>
        </nv:ServiceDetails>
        <nv:ServiceURI>http://192.168.1.200:8090/rss/</nv:ServiceURI>
        <nv:serviceAccountURI>
        </nv:serviceAccountURI>
        <nv:Auth>
            <nv:UserName></nv:UserName>
            <nv:Password></nv:Password>
        </nv:Auth>
        <nv:IAP></nv:IAP>
    </nv:Service>
</nv:ServiceProvider>

This seems to work fine.

Anyways, mediaserv is a great piece of software! I do have a couple of feature requests, though:
  • Kill mencoder if the stream is no longer required,
  • Allow me to move forward in the video stream (to skip commercials)

aflegg 2008-01-24 13:50

Re: Video Center - *.vcfg file format
 
Quote:

Originally Posted by chilli_peppa (Post 131175)
I was having the same problem MoxFulder reported, so I modified the mediaserv .vcfg file using the template posted by badger as a guide.

Thanks for this, I'll try and get it in the next version.

Quote:

Anyways, mediaserv is a great piece of software! I do have a couple of feature requests, though:
  • Kill mencoder if the stream is no longer required,
  • Allow me to move forward in the video stream (to skip commercials)

1) Should already happen, unless you've got keepResults = 1. If not, it's a bug and needs fixing.

2) is impossible; unless anyone has a moment of technical geniousity. It *might* be possible to use a separate player which tells mediaserv to kill mencoder and restart it at a new position. But you're probably better off then with the VLC-based knots solution.

chilli_peppa 2008-01-26 16:45

Re: Video Center - *.vcfg file format
 
Quote:

1) Should already happen, unless you've got keepResults = 1. If not, it's a bug and needs fixing.
I do have keepResults = 0. To confirm this, I let the encoding process run to completion and it did indeed remove the file in .mediaserv/data/.

Closing Media Player, Video Center or even turning off the N800 completely didn't stop the encoding (nor did killing the Mediaserv processes).

I'm running on Feisty and am using Mediaserv strictly to access Mythtv recordings. I'm using .05 of MediaServ and 2.16 for tablet-encode.

aflegg 2008-01-28 13:27

Re: Video Center - *.vcfg file format
 
Doh. Thanks - I'll try and investigate. Could you send me the log?

chilli_peppa 2008-02-03 22:12

Re: Video Center - *.vcfg file format
 
1 Attachment(s)
I zipped up mediaserv.log as well as the console output on the terminal where I launched mediaserv and the syslog entries from about the same time.

I closed Media Server, Video Center and then shut down my N800, all within 2 minutes of starting the download.

Hope there's enough information there to figure out what's up.


All times are GMT. The time now is 04:35.

vBulletin® Version 3.8.8