Comskip Support Forum

Comskip is a free commercial detector, browse the forum for more information
It is currently Tue Sep 18, 2018 6:04 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: File naming in .vprj
PostPosted: Thu Jul 25, 2013 4:55 pm 
Offline

Joined: Sun Mar 11, 2012 5:14 am
Posts: 4
With VAP and VideoReDo I processed a file named Chef Roblé & Co._BRAVOHD_2013_07_24_20_00_00.wtv. It was turned into Chef Roblé & Co._BRAVOHD_2013_07_24_20_00_00.mpg. Using Donator Comskip 0.81.056 on it the file Chef Roblé & Co._BRAVOHD_2013_07_24_20_00_00.vprj was produced. When VAP/VideoReDo tried to remove the commercials using the .vprj it failed as file not found. Examining the .vprj shows the first few lines as...

<Version>2
<Filename>S:\VAtemp\Chef Roblé & Co._BRAVOHD_2013_07_24_20_00_00.mpg
<Cut>0:72405667
<Cut>7234227000:8627285333
<Cut>14817135667:15566551000

Somehow the "é" got mis-translated into "é".


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Thu Jul 25, 2013 5:56 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
Problem is Videoredo doesn't support Unicode filenames yet. Comskip outputs all VPrj containing special characters to UTF-8 without BOM. To make it work you must convert your VPrj to ANSI first before loading it in VRD. Or, if you're not in a hurry, ask around on Videoredo forum when they plan to Unicode their software.


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Fri Jul 26, 2013 5:36 pm 
Offline

Joined: Sun Mar 11, 2012 5:14 am
Posts: 4
Thank you so much for the insight. I'm surprised I haven't run into this previously.
I went to the Videoredo forum and I see that the topic of Unicode has come up quite a bit and there have been some heated posts sent. They say it's on their to-do list. I'll accept it at that because it may be years before it affects me again. I could see where I'm one of the lucky ones using US English. Those that live in places where using Unicode is common aren't so lucky with Videoredo. They really need to up the priority of that on the to-do list. It's a big world out there.


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Thu Mar 26, 2015 1:54 am 
Offline

Joined: Tue May 01, 2007 3:46 am
Posts: 3
Same problem here with a filename in the .vprj xml file. After talking to the VideoRedo help they suggested the following:

Quote:
So in the project XML it needs to be replaced with &amp; VideoReDo does this automatically when it saves a project, so I'm guessing this project came form some 3rd party software.


In my case the generated .vprj xml was:
<Filename>D:\PVR\Recordings\TVShows\Secrets and Lies\Secrets & Lies.S04E67.The Affair.ts</Filename><CutList>
which fails.

However, when manually changed to:
<Filename>D:\PVR\Recordings\TVShows\Secrets and Lies\Secrets &amp; Lies.S04E67.The Affair.ts</Filename><CutList>
it works.

Can comskip replace all '&' in the filename xml tag with '&amp;' ?


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Thu Mar 26, 2015 12:04 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
There are a few more special XML chars besides the ampersand that has to be escaped:

Code:
for key, val in [["&", "&amp;"], [">", "&gt;"], ["<", "&lt;"], ["%", "&#37;"]]      ;Escape special XML characters
        StringReplace, ParamEsc, ParamEsc, % val.1, % val.2, All

Interesting thing is what has changed in Videoredo 5 and why? Opening projects with ampersand in filenames works fine in V4. Why cant the Videoredo guys do the escaping in V5 as they did in V4?


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Thu Mar 26, 2015 12:21 pm 
Offline
Site Admin

Joined: Sun Aug 21, 2005 3:49 pm
Posts: 3209
Thanks, when my build environment is working again I will adapt.


Top
 Profile  
Reply with quote  
 Post subject: Re: File naming in .vprj
PostPosted: Thu Mar 26, 2015 5:38 pm 
Offline

Joined: Wed Dec 07, 2011 12:37 am
Posts: 130
erik wrote:
Thanks, when my build environment is working again I will adapt.

Erik, you should know escaping of special XML chars breaks support for the videoredo2 format (the format used for videoredo v4). Since V4 definitely are using an escape routine when opening projects putting in already escaped file names makes V4 throw the dredded unknow file error. So, this should only be used for the videoredo3 format.

Man, these guys at videoredo seems to be quite moronic. Its bad enough they havent managed to Unicode it yet. Im starting to doubt they know how to do it. Now to make things even worse they seem to have problems to throw on a simple filename escape routine for V5. Dont know the reasons behind it, but for a company who very much likes to sell their software to Europeans (where most of the languages are full of special chars) they are comming across as very dumb and unserious.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group