Page 1 of 1

Creating or modifying comment/summary of a video

PostPosted: Tue Oct 16, 2012 11:07 am
by proth63
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

Re: Creating or modifying comment/summary of a video

PostPosted: Tue Oct 16, 2012 3:56 pm
by Illico
You can Add a NFO file for each video
http://wiki.xbmc.org/index.php?title=Im ... _nfo_Files

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 17, 2012 9:46 am
by proth63
Dear Illico,

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

With my best regards,
Proth63

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 17, 2012 1:42 pm
by proth63
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

Re: Creating or modifying comment/summary of a video

PostPosted: Thu Oct 18, 2012 3:53 pm
by zip
Is the title displayed properly?

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

Re: Creating or modifying comment/summary of a video

PostPosted: Fri Oct 19, 2012 4:09 pm
by proth63
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 :)

Re: Creating or modifying comment/summary of a video

PostPosted: Sat Oct 20, 2012 12:29 am
by teknos
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.

Re: Creating or modifying comment/summary of a video

PostPosted: Mon Oct 22, 2012 9:33 pm
by zip
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.

Re: Creating or modifying comment/summary of a video

PostPosted: Tue Oct 23, 2012 3:18 pm
by proth63
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

Re: Creating or modifying comment/summary of a video

PostPosted: Tue Oct 23, 2012 4:28 pm
by teknos
proth63 wrote:So, Here I placed some pictures to explain a bit more.


No pictures.

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 24, 2012 9:33 am
by proth63
It should be OK now, I know pictures are big... Sorry...

Thank you again :)
Phil

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 24, 2012 1:02 pm
by zip
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.

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 24, 2012 2:03 pm
by proth63
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

Re: Creating or modifying comment/summary of a video

PostPosted: Wed Oct 24, 2012 4:53 pm
by teknos
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 -->

Re: Creating or modifying comment/summary of a video

PostPosted: Thu Oct 25, 2012 5:31 am
by proth63
Thank you very much for your kind help. I'll check that and let you know :)

Cheers,
Phil

Re: Creating or modifying comment/summary of a video

PostPosted: Thu Oct 25, 2012 2:06 pm
by proth63
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

Re: Creating or modifying comment/summary of a video

PostPosted: Thu Oct 25, 2012 3:30 pm
by zip
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

Re: Creating or modifying comment/summary of a video

PostPosted: Thu Oct 25, 2012 5:37 pm
by teknos
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.