FAQ  •  Register  •  Login

Link to the AVI movie to RSS feeds

Moderator: martyn

<<

smoce

User avatar

Serviio newbie

Posts: 11

Joined: Mon Apr 30, 2012 7:11 pm

Location: Czech Republic

Post Mon Apr 30, 2012 7:23 pm

Link to the AVI movie to RSS feeds

Hi, please, I need a simple example of how I do that in the RSS file as a link to avi wwww.xxxx.cz/movie.avi + thumbnail. I tried another, and always wrote some errors.

movies are on a remote server!

  Code:
<?php
echo '<?xml version="1.0" encoding="utf-8"?>
';
?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
   xmlns:media="http://search.yahoo.com/mrss/"
   xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Smoce - TV program</title>
    <link>http://www.smoce.net/</link>
    <description>Soukromq Filmova Galerie</description>
    <language>en-us</language>
    <itunes:category text="TV" />
    <itunes:explicit>no</itunes:explicit>
    <itunes:summary>  a bad movie again.</itunes:summary>
    <itunes:subtitle>Film  e again.</itunes:subtitle>
    <itunes:author>Smoce</itunes:author>
    <itunes:owner>
      <itunes:email>lgtv@smoce.net</itunes:email>
      <itunes:name>Smoce</itunes:name>
    </itunes:owner>
    <itunes:image href="http://downwithfilm.com/wp-content/uploads/2012/03/cinema1.png" />
    <itunes:keywords>Filmy, Serialy</itunes:keywords>
    <image>
      <title>Smoce - TV Program</title>
      <width>100</width>
      <height>100</height>
      <link>http://smoce.net/</link>
      <url>http://downwithfilm.com/wp-content/uploads/2012/03/cinema1.png</url>
    </image>
    <atom:link rel="self" type="application/rss+xml" title="Smoce - TV program" href="http://lgtv.smoce.net/lgtv/" />
   
    <?php
       $nasm = 'C:\Filmy_Nove/normalni/2010 - 2011/';
          if(file_exists($nasm)){
            $dir = dir($nasm);
            $int = 0;
            while (($file =  $dir->read()) !== false)
            {
               if ($file != ".." and $file != "." )
               {
            echo '
               <item>
      <title>'.$file.'</title>
      <link>http://www.smoce.net</link>
      <description>
        Film
      </description>
      <content:encoded>
              blabla
      </content:encoded>
      <author>lgtv@smoce.net (Smoce)</author>
      <pubDate>Fri, 27 Apr 2012 16:00:00 GMT</pubDate>
      <itunes:image href="http://downwithfilm.com/wp-content/uploads/2012/03/cinema1.png" />
      <itunes:duration>554</itunes:duration>
      <itunes:explicit>no</itunes:explicit>
      <itunes:keywords>cosmopolis trailer, robert pattinson, paul giamatti, david cronenberg, magic mike, channing tatum, ruby sparks, paul dano, little miss sunshine, rat, giant, future, the avengers, weird</itunes:keywords>
      <itunes:author>Smoce</itunes:author>
      <itunes:subtitle>
On todays episode we bust out trailers for Ruby Sparks, Magic Mike and Cosmopolis starring Robert Pattinson!
      </itunes:subtitle>
      <guid isPermaLink="false">http://lgtv.smoce.net/lgtv/a.avi</guid>
      <enclosure url="http://lgtv.smoce.net/lgtv/a.avi" length="133242612" type="video/x-msvideo" />
      <media:content duration="554" medium="video" fileSize="133242612" url="http://lgtv.smoce.net/lgtv/a.avi" type="video/x-msvideo">
        <media:title>Filmy</media:title>
        <media:description>
On today&apos;s epn!
        </media:description>
        <media:thumbnail url="http://www.sg.hu/kep/2007_12/amanda.jpg" width="100" height="100" />
        <media:player url="" />
        <media:rating>nonadult</media:rating>
        <media:keywords>cosmopolis trailer, robert pattinson, paul giamatti, david cronenberg, magic mike, channing tatum, ruby sparks, paul dano, little miss sunshine, rat, giant, future, the avengers, weird</media:keywords>
      </media:content>
    </item>
            ';
              }
            }
            $dir->close(); 
            }
            ?>
     
  </channel>
</rss>



thank you in advance for your help
I am from Czech and apologize for any errors in language.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Apr 30, 2012 9:04 pm

Re: Link to the AVI movie to RSS feeds

just add enclosure element with url to the file.
<<

smoce

User avatar

Serviio newbie

Posts: 11

Joined: Mon Apr 30, 2012 7:11 pm

Location: Czech Republic

Post Tue May 01, 2012 6:46 am

Re: Link to the AVI movie to RSS feeds

Thumbnail and the list is good, but when I let a movie, so I writing "The device has been disconnected"

  Code:
 <item>
         <title>Avanger Serviio</title>
         <description>blablablablablabablabla</description>
         <media:thumbnail url="http://upload.wikimedia.org/wikipedia/en/thumb/f/f9/TheAvengers2012Poster.jpg/220px-TheAvengers2012Poster.jpg"/>
         <enclosure url="http://lgtv.smoce.net/lgtv/a.avi" type="video/x-msvideo"/>
      </item>


and the entire PHP:
  Code:
<?php
echo '<?xml version="1.0" encoding="utf-8"?>
';
?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
   xmlns:media="http://search.yahoo.com/mrss/"
   xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Smoce - TV program</title>
    <link>http://www.smoce.net/</link>
    <description>Soukromq Filmova Galerie</description>
    <language>en-us</language>
   
    <image>
      <title>Smoce - TV Program</title>
      <width>100</width>
      <height>100</height>
      <link>http://smoce.net/</link>
      <url>http://downwithfilm.com/wp-content/uploads/2012/03/cinema1.png</url>
    </image>
   
    <atom:link rel="self" type="application/rss+xml" title="Smoce - TV program" href="http://lgtv.smoce.net/lgtv/" />
   
    <?php
       $nasm = 'C:\Filmy_Nove/normalni/2010 - 2011/';
          if(file_exists($nasm)){
            $dir = dir($nasm);
            $int = 0;
            while (($file =  $dir->read()) !== false)
            {
               if ($file != ".." and $file != "." )
               {
            echo '
               
      <item>
         <title>'.$file.'</title>
         <link>http://lgtv.smoce.net/lgtv/a.avi</link>
         <description>blablablablablabablabla</description>
         <media:thumbnail url="http://upload.wikimedia.org/wikipedia/en/thumb/f/f9/TheAvengers2012Poster.jpg/220px-TheAvengers2012Poster.jpg"/>
         <enclosure url="http://lgtv.smoce.net/lgtv/a.avi" type="video/x-msvideo"/>
      </item>
            ';
              }
            }
            $dir->close(); 
            }
            ?>
     
  </channel>
</rss>


Thanks for the info otherwise.
I am from Czech and apologize for any errors in language.
<<

smoce

User avatar

Serviio newbie

Posts: 11

Joined: Mon Apr 30, 2012 7:11 pm

Location: Czech Republic

Post Tue May 01, 2012 7:52 am

Re: Link to the AVI movie to RSS feeds

and when I let http://lgtv.smoce.net/lgtv/b.mp4, that has only 8Mb, so it goes.
I am from Czech and apologize for any errors in language.
<<

smoce

User avatar

Serviio newbie

Posts: 11

Joined: Mon Apr 30, 2012 7:11 pm

Location: Czech Republic

Post Wed May 02, 2012 1:49 pm

Re: Link to the AVI movie to RSS feeds

Small files it loads, but it rejects large files with the message "device has been disconnected"

do not know how to solve it?


Or at least a hint how to solve ?
I am from Czech and apologize for any errors in language.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri May 04, 2012 10:58 am

Re: Link to the AVI movie to RSS feeds

turn on detailed logging and post the bit when it fails
<<

smoce

User avatar

Serviio newbie

Posts: 11

Joined: Mon Apr 30, 2012 7:11 pm

Location: Czech Republic

Post Sat May 05, 2012 1:49 pm

Re: Link to the AVI movie to RSS feeds

The problem is that it does not load large files.
When loading movie a.avi after a while it reports an "devices are disconnected"

Try, the RSS feed and if you it makes too .. according to the log I see the problem: (

Thanks for the info...


  Code:
2012-05-05 15:34:38,837 INFO  [MediaServer] ------------------------------------------------------------------------
2012-05-05 15:34:38,840 INFO  [MediaServer] Serviio DLNA media streaming server v 0.6.2 (rev. aec3abd196d6+)
2012-05-05 15:34:38,841 INFO  [MediaServer] Petr Nejedly 2009-2011
2012-05-05 15:34:38,841 INFO  [MediaServer] http://www.serviio.org
2012-05-05 15:34:38,841 INFO  [MediaServer]
2012-05-05 15:34:38,841 INFO  [MediaServer] Java 1.6.0_29-Sun Microsystems Inc.
2012-05-05 15:34:38,841 INFO  [MediaServer] OS Windows 7 x86 6.1
2012-05-05 15:34:38,842 INFO  [MediaServer] File encoding: windows-1250
2012-05-05 15:34:38,843 INFO  [MediaServer] Headless mode enabled: true
2012-05-05 15:34:38,844 INFO  [MediaServer] User home dir: C:\
2012-05-05 15:34:38,844 INFO  [MediaServer] Temp dir: C:\Windows\TEMP\
2012-05-05 15:34:38,844 INFO  [MediaServer] ------------------------------------------------------------------------
2012-05-05 15:34:39,313 INFO  [RestletServer] Starting Restlet server exposed on port 23423
2012-05-05 15:34:39,723 INFO  [DBSchemaUpdateExecutor] Checking if DB schema needs to be updated
2012-05-05 15:34:46,891 INFO  [ProfilesDefinitionParser] Parsing Profiles definition
2012-05-05 15:34:49,006 INFO  [ProfilesDefinitionParser] Added profile 'Generic DLNA profile' (id=1)
2012-05-05 15:34:50,579 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (B-series)' (id=2)
2012-05-05 15:34:51,688 INFO  [ProfilesDefinitionParser] Added profile 'Xbox 360' (id=3)
2012-05-05 15:34:52,280 INFO  [ServiioConsole] Starting Serviio Console
2012-05-05 15:34:52,959 INFO  [ServiioConsole] Connecting to Serviio REST on localhost:23423
2012-05-05 15:34:53,233 INFO  [ProfilesDefinitionParser] Added profile 'Playstation 3' (id=4)
2012-05-05 15:34:53,999 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV (A-series)' (id=5)
2012-05-05 15:34:54,457 INFO  [ProfilesDefinitionParser] Added profile 'DirecTV HD-DVR' (id=6)
2012-05-05 15:34:57,953 INFO  [ProfilesDefinitionParser] Added profile 'Samsung TV / player (C/D-series)' (id=7)
2012-05-05 15:34:58,275 INFO  [ProfilesDefinitionParser] Added profile 'LG TV / player' (id=8)
2012-05-05 15:35:00,220 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2011)' (id=9)
2012-05-05 15:35:02,543 INFO  [ProfilesDefinitionParser] Added profile 'Sony BD Player / SMP' (id=10)
2012-05-05 15:35:03,660 INFO  [ProfilesDefinitionParser] Added profile 'Panasonic Viera' (id=12)
2012-05-05 15:35:04,595 INFO  [ProfilesDefinitionParser] Added profile 'Toshiba REGZA' (id=13)
2012-05-05 15:35:05,190 INFO  [ProfilesDefinitionParser] Added profile 'WDTV Live' (id=14)
2012-05-05 15:35:05,316 INFO  [ProfilesDefinitionParser] Added profile 'LaCie LaCinema Media Player' (id=15)
2012-05-05 15:35:05,734 INFO  [ProfilesDefinitionParser] Added profile 'Manta WIFI Centre' (id=16)
2012-05-05 15:35:05,934 INFO  [ProfilesDefinitionParser] Added profile 'Pure Flow' (id=17)
2012-05-05 15:35:06,670 INFO  [ProfilesDefinitionParser] Added profile 'Sharp Aquos' (id=18)
2012-05-05 15:35:07,075 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2010)' (id=19)
2012-05-05 15:35:07,960 INFO  [ProfilesDefinitionParser] Added profile 'Philips' (id=20)
2012-05-05 15:35:08,504 INFO  [ProfilesDefinitionParser] Added profile 'Sony Bravia TV (2009)' (id=21)
2012-05-05 15:35:10,774 INFO  [WebServer] Socket buffer set to 65535 bytes
2012-05-05 15:35:10,776 INFO  [Device] Created UPnP Device with UUID: b860b956-69d7-3c30-a31c-beb5ca5db24c, bound address: 192.168.99.250
2012-05-05 15:35:10,852 INFO  [PluginCompilerThread] Looking for plugins at C:\Program Files\Serviio\bin\..\plugins
2012-05-05 15:35:10,854 INFO  [PluginCompilerThread] Started looking for plugins
2012-05-05 15:35:11,489 INFO  [AbstractTranscodingDeliveryEngine] Cleaning transcode engine and its data
2012-05-05 15:35:11,624 INFO  [WebServer] WebServer starting on port 8895
2012-05-05 15:35:11,659 INFO  [EventDispatcher] Starting EventDispatcher
2012-05-05 15:35:11,667 INFO  [DiscoveryAdvertisementNotifier] Starting DiscoveryAdvertisementNotifier
2012-05-05 15:35:11,670 INFO  [EventSubscriptionExpirationChecker] Starting EventSubscriptionExpirationChecker
2012-05-05 15:35:11,685 INFO  [RendererExpirationChecker] Starting RendererExpirationChecker
2012-05-05 15:35:11,685 INFO  [RendererSearchSender] Searching for Renderer devices
2012-05-05 15:35:11,878 INFO  [DiscoverySSDPMessageListener] Starting DiscoverySSDPMessageListener using interface eth3 (Atheros AR8132 PCI-E Fast Ethernet Controller (NDIS 6.20)) and address 192.168.99.250, timeout = 0
2012-05-05 15:35:14,468 INFO  [RendererManager] Stored a new renderer: uuid='c8e4b92d-e675-4266-9f02-e64370260eea', name = 'LG TV / player', ipAddress='192.168.99.251', profile = '8'
2012-05-05 15:35:15,728 INFO  [RendererManager] Stored a new renderer: uuid='70064f90-1dd2-11b2-9d7b-db63be6ce7cf', name = 'MediaRenderer', ipAddress='192.168.99.251', profile = '1'
2012-05-05 15:35:19,875 INFO  [Messages] Loaded console message bundle for locale: en
2012-05-05 15:35:19,905 INFO  [UpdateChecker] Checking if a new version is available
2012-05-05 15:35:21,522 INFO  [ContentDirectoryDefinitionParser] Parsing ContentDirectory definition
2012-05-05 15:35:24,182 INFO  [BrowsingCategoriesMessages] Loaded browsing categories message bundle for locale: en
2012-05-05 15:35:39,560 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2012-05-05 15:35:39,568 INFO  [FeedUpdaterThread] Started looking for information about online resources
2012-05-05 15:35:39,585 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files
2012-05-05 15:36:21,770 INFO  [LibraryAdditionsCheckerThread] Finished looking for newly added files
2012-05-05 15:36:21,870 INFO  [LibraryUpdatesCheckerThread] Finished looking for updates to currently shared files
2012-05-05 15:36:21,974 INFO  [LibraryAdditionsCheckerThread] Started looking for newly added files
2012-05-05 15:36:21,974 INFO  [LibraryUpdatesCheckerThread] Started looking for updates to currently shared files


Image

RSS File:

http://lgtv.smoce.net/lgtv/

a.avi - 700Mb movie ERROR
b.mp4 - 8Mb movie OK
I am from Czech and apologize for any errors in language.

Return to Video feeds

Who is online

Users browsing this forum: No registered users and 9 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.