FAQ  •  Register  •  Login

Creating or modifying comment/summary of a video

<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Tue Oct 16, 2012 11:07 am

Creating or modifying comment/summary of a video

Dear All,

I'm new on Serviio and I would like to install it as a streaming server for a own film collection that we have in our school.
The films we have are not related to existing movies and I am looking for a way to add comments/Summary about the videos.
I would like to know as well if it is possible to modify the Genre of a video.

So my question is: Is there a possible way to customize video summary and genre in Serviio? And how?

Many thanks in advance for your help and have a nice day :D
Proth63
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue Oct 16, 2012 3:56 pm

Re: Creating or modifying comment/summary of a video

You can Add a NFO file for each video
http://wiki.xbmc.org/index.php?title=Im ... _nfo_Files
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Wed Oct 17, 2012 9:46 am

Re: Creating or modifying comment/summary of a video

Dear Illico,

Thank you very much for this information, I'm gonna try ;)

With my best regards,
Proth63
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Wed Oct 17, 2012 1:42 pm

Re: Creating or modifying comment/summary of a video

Hello,

I had a look on online help.
I created a .nfo file for a movie, but it is not recognize by Serviio.

For instance:
I have a video named "catering.mp4", this video is placed in a folder defined in Serviio.
I created a .nfo file named "catering.nfo" placed into the same folder as catering.mp4

I understood that I have to create a .nfo file for each video file.

In serviio, I can access the video, but have no description...

Here is the catering.nfo file

  Code:
<?xml version="1.0" encoding="windows-1252"?>
   <movie>
        <title>Catering for Health</title>
        <originaltitle>FOODCRAFT 8. Catering for Health</originaltitle>
        <sorttitle>Catering for Health</sorttitle>
        <set>FOODCRAFT</set>
        <year>1998</year>
        <outline>The video starts with an explanation of how the average diet has changed, and the harm caused by eating too much fat, sugar and salt, and not enough fibre.</outline>
        <plot>A look at the role of the Buckeye State in the 2004 Presidential Election.</plot>
        <runtime>33</runtime> //runtime in minutes
        <genre>F&B</genre>
        <credits>Hotel & Catering Training Board</credits>
    </movie>


So, where is my mistake?

In serviio, I set Metadata/descriptive Metadata to XBMX .nfo (is ir right?)

Many thanks in advance for your kind help and best regards,
proth63
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 18, 2012 3:53 pm

Re: Creating or modifying comment/summary of a video

Is the title displayed properly?

Description is usually not displayed by the devices, but you should see it in MediaBrowser.
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Fri Oct 19, 2012 4:09 pm

Re: Creating or modifying comment/summary of a video

Hello,

The Title (name of the file without extension) is shown properly in the Media Browser, but there is no other information about the video, even with the .nfo file in the same folder with the video file...

Also, maybe I'm wrong, but I created the .nfo file manually, and just placed it in the folder... Right? Wrong?

Many thanks in advance for your help and kind regards :)
<<

teknos

Streaming enthusiast

Posts: 29

Joined: Thu Oct 18, 2012 2:09 am

Post Sat Oct 20, 2012 12:29 am

Re: Creating or modifying comment/summary of a video

Try it without the first line.

Removing:
  Code:
<?xml version="1.0" encoding="windows-1252"?>


I am assuming you are using notepad.exe to create the NFO file. If you are make sure you are actually saving it with the ".nfo" extension and that the Encoding in the save file dialog is set to UTF-8.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Oct 22, 2012 9:33 pm

Re: Creating or modifying comment/summary of a video

That looks ok, Serviio will pick up the <plot> element for the description metadata.

You should see the description when you click on the video in MediaBrwoser, the player window opens. It should be underneath the video player.
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Tue Oct 23, 2012 3:18 pm

Re: Creating or modifying comment/summary of a video

Dear all,

Thank you very much for your kind help.

I checked everything, as you sait it should work, but not...

So, Here I placed some pictures to explain a bit more.

The folder where I have the video and related .nfo file
Image


The .nfo file itself, I saved it as .txt, renamed as .nfo and verified encoding as UTF-8

Image

What I configured in the console
Image

Here is what I see in the Media Browser
Image

And when I open the video, as you can see there is no description shown...
Image

Is there a bug or something?
This is done on Windows XP, Dell Dimension 3000. I did the same on MacOS X and have the same issue...

Many thanks for everything and have a nice evening.
Philippe
Last edited by proth63 on Wed Oct 24, 2012 9:31 am, edited 4 times in total.
<<

teknos

Streaming enthusiast

Posts: 29

Joined: Thu Oct 18, 2012 2:09 am

Post Tue Oct 23, 2012 4:28 pm

Re: Creating or modifying comment/summary of a video

proth63 wrote:So, Here I placed some pictures to explain a bit more.


No pictures.
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Wed Oct 24, 2012 9:33 am

Re: Creating or modifying comment/summary of a video

It should be OK now, I know pictures are big... Sorry...

Thank you again :)
Phil
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Oct 24, 2012 1:02 pm

Re: Creating or modifying comment/summary of a video

Can you enable detailed logging, then click on Refresh video metadata and then Force refresh? Then post the log, especially the part where it mentions Catering.MP4.
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Wed Oct 24, 2012 2:03 pm

Re: Creating or modifying comment/summary of a video

Hello,

I don't know exactly how to enable detailed logging mode, Is it from the console?

Anyway, I had a look in the log and found the followings:

  Code:
2012-10-24 15:47:56,844 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -ss 120 -i C:\SERVIIO_Files\VIDEO_Files\F&B\Catering.MP4 -an -frames:v 1 -f image2 pipe:
2012-10-24 15:47:57,219 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: VideoMetadata [title=Catering, filePath=C:\SERVIIO_Files\VIDEO_Files\F&B\Catering.MP4, fileSize=515667588, audioBitrate=119, audioCodec=AAC, audioStreamIndex=1, bitrate=1631, channels=2, container=MP4, contentType=UNKNOWN, coverImage=org.serviio.library.local.metadata.ImageDescriptor@9df04e, duration=2528, episodeNumber=null, fps=25, frequency=48000, h264Level=3, h264Profile=BASELINE, mkvHeaderCompression=null, ftyp=mobi, height=576, seasonNumber=null, seriesName=null, timestampType=null, videoBitrate=1507, videoCodec=H264, videoStreamIndex=0, width=720]
2012-10-24 15:47:57,219 DEBUG [XBMCExtractor] Checking if file 'Catering.nfo' is a XBMC NFO file
2012-10-24 15:47:57,234 ERROR [XBMCExtractor] File 'C:\SERVIIO_Files\VIDEO_Files\F&B\Catering.nfo' couldn't be parsed:null
2012-10-24 15:47:57,234 DEBUG [VideoService] Updating video in database: Catering


Result is Catering.nfo' couldn't be parsed:null...

I think my .nfo is not recognized...

Thanks again for helping me.

Cheers,
Phil
<<

teknos

Streaming enthusiast

Posts: 29

Joined: Thu Oct 18, 2012 2:09 am

Post Wed Oct 24, 2012 4:53 pm

Re: Creating or modifying comment/summary of a video

Remove comment:

  Code:
//runtime in minutes


So it should look like:

  Code:
<movie>
        <title>Catering for Health</title>
        <originaltitle>FOODCRAFT 8. Catering for Health</originaltitle>
        <sorttitle>Catering for Health</sorttitle>
        <set>FOODCRAFT</set>
        <year>1998</year>
        <outline>The video starts with an explanation of how the average diet has changed, and the harm caused by eating too much fat, sugar and salt, and not enough fibre.</outline>
        <plot>A look at the role of the Buckeye State in the 2004 Presidential Election.</plot>
        <runtime>33</runtime>
        <genre>F&B</genre>
        <credits>Hotel & Catering Training Board</credits>
</movie>


If you want to keep the comment, I believe it should be written as such
  Code:
<!-- runtime in minutes -->
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Thu Oct 25, 2012 5:31 am

Re: Creating or modifying comment/summary of a video

Thank you very much for your kind help. I'll check that and let you know :)

Cheers,
Phil
<<

proth63

Serviio newbie

Posts: 9

Joined: Tue Oct 16, 2012 10:51 am

Post Thu Oct 25, 2012 2:06 pm

Re: Creating or modifying comment/summary of a video

So... I found the problem...

It seems that characters like " & " are not supported if included in the .nfo file...
For instance, in my preceding script, I had the following tag
  Code:
<genre>F&B</genre>

And then, the file was not supported...
If I changed " & " by " and ", Like here
  Code:
<genre>Food and Beverage</genre>

Then the file is supported and the description is shown below the video.

Also, if anywhere in the .nfo file, there is this " & " sign, as well the file is not supported...

It came to my attention when I wanted to see what happened if I only had the description, <plot></plot> and it appeared in the Media Browser...

Is there any way to allow this character " & " to be supported in .nfo files?

Here is the modified script

  Code:
<movie>
    <title>Catering for Health</title>
    <originaltitle>FOODCRAFT 8. Catering for Health</originaltitle>
    <sorttitle>Catering for Health</sorttitle>
    <set>FOODCRAFT</set>
    <year>1998</year>
    <outline>The video starts with an explanation of how the average diet has changed, and the harm caused by eating too much fat, sugar and salt, and not enough fibre.</outline>
    <plot>The video starts with an explanation of how the average diet has changed, and the harm caused by eating too much fat, sugar and salt, and not enough fibre.</plot>
    <runtime>33</runtime>
    <genre>Food and Beverage</genre>
    <credits>Hotel and Catering Training Board</credits>
</movie>


Here is the result in the Media Browser

Image

Also, what are the tags really used in servio? As tags like <title></title> are not shown in the Media Browser?...

Many thanks again :D,
Phil
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 25, 2012 3:30 pm

Re: Creating or modifying comment/summary of a video

It uses genre, title, plot, releaseDate, actor, director.

You have to XML encode the file, & is a special character. To actually use '&' in the data you have to encode it as

  Code:
&amp;


So your F&B would become F&amp;B
<<

teknos

Streaming enthusiast

Posts: 29

Joined: Thu Oct 18, 2012 2:09 am

Post Thu Oct 25, 2012 5:37 pm

Re: Creating or modifying comment/summary of a video

proth63 wrote:It seems that characters like " & " are not supported if included in the .nfo file...


Nice catch... I totally overlooked in the .nfo file.

I saw it in your file path "C:\SERVIIO_Files\VIDEO_Files\F&B\" and ignored it since the error was in parsing the .nfo.

I try to avoid using Ampersand as much as possible.

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 30 guests

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