Page 1 of 1

profiles.xml editing issue

PostPosted: Tue Jan 06, 2015 4:11 pm
by lockdown
Everytime I try to edit the xml profile and then restart I always get the 'Cannot start' until I install the serviio program all over again.

Whats going on here?

thanks

:cry:

Re: profiles.xml editing issue

PostPosted: Tue Jan 06, 2015 4:28 pm
by Illico
What changes have you made in the profiles.xml file?

Re: profiles.xml editing issue

PostPosted: Tue Jan 06, 2015 4:33 pm
by lockdown
removed a line that a remark said was OK to remove.

Re: profiles.xml editing issue

PostPosted: Tue Jan 06, 2015 6:12 pm
by Illico
Could you be more explicit ?

Re: profiles.xml editing issue

PostPosted: Wed Jan 07, 2015 1:08 am
by lockdown
sure..

I removed the line in the panasonic 2013 profile that said 'if your tv supports xvid delete this'


also is there anyway to make these changes permanent instead of changing them after every install?

what about having seperate profiles for each device?

thanks

Re: profiles.xml editing issue

PostPosted: Wed Jan 07, 2015 7:51 am
by Illico
I suppose you talk about this
  Code:
            <!-- AVI files will be transcoded into mpeg-ts, mpeg2 video and ac3 audio. 
         This section is NOT inherited by other Panasonic profiles  -->
            <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
                <Matches container="avi" />
                <!-- Remove this line for models that natively support AVI's with Xvid video (some ST60's) -->
                <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
                <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
                <Matches container="avi" vCodec="dvvideo" />
            </Video>


If your device supports avi/xvid video, change by this :
I suggest to use Notepad++ text editor (file should be UTF8 encoded)
  Code:
            <!-- AVI files will be transcoded into mpeg-ts, mpeg2 video and ac3 audio. 
         This section is NOT inherited by other Panasonic profiles  -->
            <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
                <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
                <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
                <Matches container="avi" vCodec="dvvideo" />
            </Video>

Save file, then restart serviio service or reboot pc to reload profiles.


After a serviio update, a profiles.xml backup is done, then you can merge your previous profile modification with latest profiles.xml release.
Seperate profiles for each device was already requested https://bitbucket.org/xnejp03/serviio/i ... r-profiles

Re: profiles.xml editing issue

PostPosted: Wed Jan 07, 2015 9:51 am
by lockdown
where is the backup saved to?

Re: profiles.xml editing issue

PostPosted: Wed Jan 07, 2015 10:49 am
by Illico
In same place after the serviio update.
For windows:
C:\Program Files\Serviio\config\profiles.xml.bak

Re: profiles.xml editing issue

PostPosted: Thu Jan 08, 2015 5:06 am
by lockdown
OK. That worked.

How do I merge the profiles together when upgrading?

Re: profiles.xml editing issue

PostPosted: Thu Jan 08, 2015 9:49 am
by Illico
profiles.xml is an XML text file.

Then you can use, compare text tool to compare both "profiles.xml" and "profile.xml.bak" files, then merge modifications.
Look at:
- WinMerge (OpenSource) : http://winmerge.org/
- ExamDiff (freeware) : http://www.prestosoft.com/edp_examdiff.asp
- KDiff3 (windows/linux) : http://kdiff3.sourceforge.net
- Beyond compare (pay) but very complete : http://www.scootersoftware.com/features.php

Re: profiles.xml editing issue

PostPosted: Thu Jan 08, 2015 10:39 am
by lockdown
thanks..

I for one, will be counting down the days till when the profiles are separated into their own 'cannot be over-ridden' directory.